|
jremote jbase5.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jbase.jremote.io.JSelectListImpl
public class JSelectListImpl
A select list to a jBASE file.
This object represents a list of record keys to a jBASE file.
Field Summary | |
---|---|
protected AbstractJRemoteConnection |
connection
|
protected int |
cursorStartPos
|
protected JSelectListProt |
data
|
protected static int |
FETCH_BACKWARD
|
protected static int |
FETCH_FORWARD
|
protected int |
fetchSize
|
Constructor Summary | |
---|---|
JSelectListImpl(AbstractJRemoteConnection connection,
JDynArray keys)
Constructs a select list from specified dynamic array. |
|
JSelectListImpl(AbstractJRemoteConnection connection,
JSelectListProt data)
Constructs a select list from a serializable select list. |
Method Summary | |
---|---|
void |
close()
Close select list. |
protected JSelectListProt |
fetchNext(boolean fetchData)
|
protected JSelectListProt |
fetchPrevious(boolean fetchData)
|
JSelectListProt |
getData()
Obtains a reference to the serializable part of the select list |
int |
getFetchSize()
Returns the fetch size. |
java.lang.String |
getKey()
Returns the current key |
int |
getPosition()
Returns the current position. |
void |
goToPosition(int targetPos)
Move to the specified position. |
boolean |
hasNext()
Returns whether it is possible to move forward. |
protected boolean |
hasNext(boolean fetchData)
|
boolean |
hasPrevious()
Returns whether it is possible to move backwards. |
protected boolean |
hasPrevious(boolean fetchData)
|
java.util.Iterator<java.lang.String> |
iterator()
Returns an iterator to the select list |
boolean |
next()
Move to next item |
protected boolean |
next(boolean fetchData)
|
boolean |
previous()
Move to previous item |
protected boolean |
previous(boolean fetchData)
|
void |
setConnection(AbstractJRemoteConnection connection)
Attaches a connection handle to this select list. |
void |
setFetchSize(int fetchSize)
Sets the fetch size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AbstractJRemoteConnection connection
protected JSelectListProt data
protected int fetchSize
protected int cursorStartPos
protected static final int FETCH_FORWARD
protected static final int FETCH_BACKWARD
Constructor Detail |
---|
public JSelectListImpl(AbstractJRemoteConnection connection, JDynArray keys)
connection
- Connection handle used to fetch items from serverkeys
- Dynamic array containing keys separated by attribute markers.public JSelectListImpl(AbstractJRemoteConnection connection, JSelectListProt data)
connection
- Connection handle used to fetch items from serverdata
- Serializable select listMethod Detail |
---|
public java.lang.String getKey()
JSelectList
getKey
in interface JSelectList
JSelectList.getKey()
public int getFetchSize()
JSelectList
getFetchSize
in interface JSelectList
JSelectList.getFetchSize()
public void setFetchSize(int fetchSize)
JSelectList
setFetchSize
in interface JSelectList
fetchSize
- fetch sizeJSelectList.setFetchSize(int)
public void setConnection(AbstractJRemoteConnection connection)
connection
- Connection handlepublic JSelectListProt getData()
public boolean next() throws JRemoteException
JSelectList
next
in interface JSelectList
JRemoteException
JSelectList.next()
public boolean previous() throws JRemoteException
JSelectList
previous
in interface JSelectList
JRemoteException
JSelectList.previous()
public boolean hasNext() throws JRemoteException
JSelectList
hasNext
in interface JSelectList
JRemoteException
JSelectList.hasNext()
public boolean hasPrevious() throws JRemoteException
JSelectList
hasPrevious
in interface JSelectList
JRemoteException
JSelectList.hasPrevious()
protected boolean next(boolean fetchData) throws JRemoteException
JRemoteException
protected boolean previous(boolean fetchData) throws JRemoteException
JRemoteException
protected boolean hasNext(boolean fetchData) throws JRemoteException
JRemoteException
protected boolean hasPrevious(boolean fetchData) throws JRemoteException
JRemoteException
public int getPosition()
JSelectList
getPosition
in interface JSelectList
JSelectList.getPosition()
public void goToPosition(int targetPos) throws JRemoteException
JSelectList
goToPosition
in interface JSelectList
JRemoteException
com.jbase.jremote.JSelectList#goToPosition()
protected JSelectListProt fetchNext(boolean fetchData) throws JRemoteException
JRemoteException
protected JSelectListProt fetchPrevious(boolean fetchData) throws JRemoteException
JRemoteException
public void close() throws JRemoteException
JSelectList
close
in interface JSelectList
JRemoteException
JSelectList.close()
public java.util.Iterator<java.lang.String> iterator()
JSelectList
iterator
in interface JSelectList
iterator
in interface java.lang.Iterable<java.lang.String>
JSelectList.iterator()
|
jremote jbase5.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |