public class JCursorImpl extends JSelectListImpl implements JCursor
A cursor to a jBASE file.
This object represents a list of jBASE file records.connection, cursorStartPos, data, FETCH_BACKWARD, FETCH_FORWARD, fetchSize
Constructor and Description |
---|
JCursorImpl(AbstractJRemoteConnection connection,
JSelectListProt data)
Constructs a cursor from a serializable select list.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close cursor.
|
JDynArray |
getRecord()
Returns the current record.
|
boolean |
hasNext()
Returns whether it is possible to move the cursor forwards.
|
boolean |
hasPrevious()
Returns whether it is possible to move the cursor backwards.
|
boolean |
next()
Move cursor to next item
|
boolean |
previous()
Move cursor to previous item
|
void |
setRecord(JDynArray record)
Modifies the current record.
|
void |
update()
Update changes.
|
fetchNext, fetchPrevious, getData, getFetchSize, getKey, getPosition, goToPosition, hasNext, hasPrevious, iterator, next, previous, setConnection, setFetchSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFetchSize, getKey, getPosition, goToPosition, iterator, setFetchSize
public JCursorImpl(AbstractJRemoteConnection connection, JSelectListProt data)
connection
- Connection handle used to fetch records from the serverdata
- Serializable select listpublic boolean next() throws JRemoteException
next
in interface JSelectList
next
in class JSelectListImpl
JRemoteException
JSelectList.next()
public boolean previous() throws JRemoteException
previous
in interface JSelectList
previous
in class JSelectListImpl
JRemoteException
JSelectList.previous()
public boolean hasNext() throws JRemoteException
hasNext
in interface JSelectList
hasNext
in class JSelectListImpl
JRemoteException
JSelectList.hasNext()
public boolean hasPrevious() throws JRemoteException
hasPrevious
in interface JSelectList
hasPrevious
in class JSelectListImpl
JRemoteException
JSelectList.hasPrevious()
public void close() throws JRemoteException
close
in interface JSelectList
close
in class JSelectListImpl
JRemoteException
JSelectList.close()
public JDynArray getRecord()
JCursor
getRecord
in interface JCursor
JCursor.getRecord()
public void setRecord(JDynArray record)
JCursor
setRecord
in interface JCursor
JCursor.setRecord(com.jbase.jremote.JDynArray)
public void update() throws JRemoteException
JCursor
update
in interface JCursor
JRemoteException
JCursor.update()