public class JSelectListProt extends java.lang.Object implements JBaseSerializable
A serializable list of jBASE file records.
JBaseSerializable.TYPE
Modifier and Type | Field and Description |
---|---|
protected java.nio.charset.CharsetDecoder |
_decoder |
protected java.nio.charset.CharsetEncoder |
_encoder |
protected boolean |
hasRecords |
protected int |
id |
protected java.util.List<java.lang.String> |
keys |
protected int |
position |
protected java.util.List<JDynArray> |
records |
protected java.util.HashSet<java.lang.Integer> |
updatedRecords |
Constructor and Description |
---|
JSelectListProt()
Constructs an empty list
|
JSelectListProt(JDynArray keys)
Constructs a select list from specified dynamic array.
|
JSelectListProt(JSelectListProt sl,
boolean copyModifiedOnly)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getId()
Returns the ID of this select list.
|
java.lang.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(java.nio.charset.CharsetDecoder decoder) |
void |
setCharsetEncoder(java.nio.charset.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
|
protected int id
protected int position
protected boolean hasRecords
protected java.util.List<java.lang.String> keys
protected java.util.List<JDynArray> records
protected java.util.HashSet<java.lang.Integer> updatedRecords
protected java.nio.charset.CharsetEncoder _encoder
protected java.nio.charset.CharsetDecoder _decoder
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.public void setCharsetEncoder(java.nio.charset.CharsetEncoder encoder)
public void setCharsetDecoder(java.nio.charset.CharsetDecoder decoder)
public int getId()
public int size()
public boolean hasRecordData()
public void setHasRecordData(boolean hasRecords)
hasRecords
- public java.lang.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 java.io.IOException
writeObject
in interface JBaseSerializable
java.io.IOException
public void readObject(JBaseObjectReader reader, int version) throws java.io.IOException, java.lang.ClassNotFoundException
readObject
in interface JBaseSerializable
java.io.IOException
java.lang.ClassNotFoundException
public int getType()
getType
in interface JBaseSerializable
public int getVersion()
getVersion
in interface JBaseSerializable