org.bsf.remoteIterator.client
Class RemoteIteratorClient
java.lang.Object
org.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_isLast
private boolean _isLast
_isFirst
private boolean _isFirst
_rowCount
private int _rowCount
- Total number of rows, -1 if not computed.
_remote
private RemoteIterator _remote
RemoteIteratorClient
public RemoteIteratorClient(RemoteIterator p_remoteIteratorProxy)
throws java.lang.IllegalArgumentException
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()