|
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.protocol.JSelectListProt
public class JSelectListProt
A serializable list of jBASE file records.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.jbase.jremote.io.JBaseSerializable |
---|
JBaseSerializable.TYPE |
Field Summary | |
---|---|
protected CharsetDecoder |
_decoder
|
protected CharsetEncoder |
_encoder
|
protected boolean |
hasRecords
|
protected int |
id
|
protected List<String> |
keys
|
protected int |
position
|
protected List<JDynArray> |
records
|
protected HashSet<Integer> |
updatedRecords
|
Constructor Summary | |
---|---|
JSelectListProt()
Constructs an empty list |
|
JSelectListProt(JDynArray keys)
Constructs a select list from specified dynamic array. |
|
JSelectListProt(JSelectListProt sl,
boolean copyModifiedOnly)
Copy constructor |
Method Summary | |
---|---|
int |
getId()
Returns the ID of this select list. |
String |
getKey()
Obtains the current key. |
int |
getNumModified()
Returns the number if modified records |
int |
getPosition()
Returns the current position. |
JDynArray |
getRecord()
Obtains the current record value. |
int |
getType()
|
int |
getVersion()
|
void |
goToPosition(int position)
Move to the specified position. |
boolean |
hasNext()
Returns whether it is possible to move forward. |
boolean |
hasPrevious()
Returns whether it is possible to move backwards. |
boolean |
hasRecordData()
Indicates whether this select list contains record data. |
boolean |
next()
Move to next item. |
boolean |
previous()
Move to previous item. |
void |
readObject(JBaseObjectReader reader,
int version)
Serialize object |
void |
setCharsetDecoder(CharsetDecoder decoder)
|
void |
setCharsetEncoder(CharsetEncoder encoder)
|
void |
setHasRecordData(boolean hasRecords)
Mark select list to contain record data. |
void |
setRecord(JDynArray record)
Modifies the value of the current record |
int |
size()
Returns the no. |
void |
writeObject(JBaseObjectWriter writer,
int version)
Serialize object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int id
protected int position
protected boolean hasRecords
protected List<String> keys
protected List<JDynArray> records
protected HashSet<Integer> updatedRecords
protected CharsetEncoder _encoder
protected CharsetDecoder _decoder
Constructor Detail |
---|
public JSelectListProt()
public JSelectListProt(JDynArray keys)
keys
- Dynamic array containing keys separated by attribute markers.public JSelectListProt(JSelectListProt sl, boolean copyModifiedOnly)
sl
- copyModifiedOnly
- if true, copies modified items only.Method Detail |
---|
public void setCharsetEncoder(CharsetEncoder encoder)
public void setCharsetDecoder(CharsetDecoder decoder)
public int getId()
public int size()
public boolean hasRecordData()
public void setHasRecordData(boolean hasRecords)
hasRecords
- public String getKey()
public JDynArray getRecord()
public void setRecord(JDynArray record)
record
- public int getNumModified()
public boolean next() throws JRemoteException
JRemoteException
public boolean previous() throws JRemoteException
JRemoteException
public boolean hasNext() throws JRemoteException
JRemoteException
public boolean hasPrevious() throws JRemoteException
JRemoteException
public int getPosition()
public void goToPosition(int position)
position
- public void writeObject(JBaseObjectWriter writer, int version) throws IOException
writeObject
in interface JBaseSerializable
IOException
public void readObject(JBaseObjectReader reader, int version) throws IOException, ClassNotFoundException
readObject
in interface JBaseSerializable
IOException
ClassNotFoundException
public int getType()
getType
in interface JBaseSerializable
public int getVersion()
getVersion
in interface JBaseSerializable
|
jremote jbase5.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |