org.bsf.remoteIterator.client
Class RemoteIteratorClient

java.lang.Object
  extended byorg.bsf.remoteIterator.client.RemoteIteratorClient
All Implemented Interfaces:
java.io.Serializable

public class RemoteIteratorClient
extends java.lang.Object
implements java.io.Serializable

Wrapper for a remoteIterator. To be used by the clients.

See Also:
RemoteIteratorBean, RemoteIteratorResultTable, Serialized Form

Field Summary
private  boolean _isFirst
           
private  boolean _isLast
           
private  RemoteIterator _remote
           
private  int _rowCount
          Total number of rows, -1 if not computed.
 
Constructor Summary
RemoteIteratorClient(RemoteIterator p_remoteIteratorProxy)
           
 
Method Summary
 java.util.Iterator absolute(int p_position)
           
 java.util.Iterator absolute(int p_position, int p_nbRecords)
           
 java.util.List getColumnMetatData()
           
 int getRecordCount()
           
private  java.util.List getResult(RemoteIteratorResultTable p_riResult)
           
 boolean hasRemoteReference()
           
 boolean isFirst()
           
 boolean isLast()
           
 java.util.Iterator next()
           
 java.util.Iterator next(int p_nbRecords)
           
 java.util.Iterator previous()
           
 java.util.Iterator previous(int p_nbRecords)
           
 void remove()
          Removes a RemoteItarator (releases the ressources).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_isLast

private boolean _isLast

_isFirst

private boolean _isFirst

_rowCount

private int _rowCount
Total number of rows, -1 if not computed.


_remote

private RemoteIterator _remote
Constructor Detail

RemoteIteratorClient

public RemoteIteratorClient(RemoteIterator p_remoteIteratorProxy)
                     throws java.lang.IllegalArgumentException
Method Detail

absolute

public java.util.Iterator absolute(int p_position)
                            throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

absolute

public java.util.Iterator absolute(int p_position,
                                   int p_nbRecords)
                            throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

next

public java.util.Iterator next()
                        throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

next

public java.util.Iterator next(int p_nbRecords)
                        throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

previous

public java.util.Iterator previous()
                            throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

previous

public java.util.Iterator previous(int p_nbRecords)
                            throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getResult

private java.util.List getResult(RemoteIteratorResultTable p_riResult)

remove

public void remove()
            throws java.rmi.RemoteException
Removes a RemoteItarator (releases the ressources).

Throws:
java.rmi.RemoteException
See Also:
hasRemoteReference()

hasRemoteReference

public boolean hasRemoteReference()
Returns:
true if this client has a remote reference, false otherwise. In other words, it returns true if the RemoteIterator has not been removed, false otherwise.
See Also:
remove()

getColumnMetatData

public java.util.List getColumnMetatData()
                                  throws java.rmi.RemoteException
Returns:
a List of ColumnMetaData correpsonding to the executed query.
Throws:
java.rmi.RemoteException

getRecordCount

public int getRecordCount()
                   throws java.rmi.RemoteException
Returns:
the number of records returned by the request. -1 if no remote is set...
Throws:
java.rmi.RemoteException

isLast

public boolean isLast()

isFirst

public boolean isFirst()