|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mobileservices.isync.midp.FastRecordEnumeration
Enumerate over a FastRecordStore, provides a similar interface to javax.microedition.rms.FastRecordStore.
FastRecordStore
,
Index
Method Summary | |
void |
destroy()
Frees internal resources used by this FastRecordEnumeration. |
boolean |
hasNextElement()
More elements beyond our current location? |
boolean |
hasPreviousElement()
More elements prior to our location? |
boolean |
isKeptUpdated()
Not supported |
byte[] |
nextRecord()
Returns a copy of the next record in this enumeration, where next is defined by the comparator and/or filter supplied in the constructor of this enumerator. |
int |
nextRecordId()
Returns the recordId of the next record in this enumeration, where next is defined by the comparator and/or filter supplied in the constructor of this enumerator (comparators and filters not currently supported by FastRecordEnumeration). |
int |
numRecords()
Returns the number of records available in this enumeration's set. |
byte[] |
previousRecord()
Returns a copy of the previous record in this enumeration |
int |
previousRecordId()
Returns the recordId of the previous record in this enumeration, where previous is defined by the comparator and/or filter supplied in the constructor of this enumerator. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void destroy()
public boolean hasNextElement()
public boolean hasPreviousElement()
public boolean isKeptUpdated() throws java.lang.Exception
java.lang.Exception
- "Method not supported"public byte[] nextRecord() throws javax.microedition.rms.InvalidRecordIDException, javax.microedition.rms.RecordStoreNotOpenException, javax.microedition.rms.RecordStoreException, java.lang.Exception
javax.microedition.rms.InvalidRecordIDException
- if there are no more records to return
javax.microedition.rms.RecordStoreNotOpenException
- if the record store is not open.
javax.microedition.rms.RecordStoreException
- general exception
java.lang.Exception
- internal errorpublic int nextRecordId() throws javax.microedition.rms.InvalidRecordIDException
javax.microedition.rms.InvalidRecordIDException
- if there are no more records left.public int numRecords() throws java.lang.Exception
java.lang.Exception
- internal errorpublic byte[] previousRecord() throws javax.microedition.rms.InvalidRecordIDException, javax.microedition.rms.RecordStoreNotOpenException, javax.microedition.rms.RecordStoreException, java.lang.Exception
javax.microedition.rms.InvalidRecordIDException
- if there are no more records to return
javax.microedition.rms.RecordStoreNotOpenException
- if the record store is not open.
javax.microedition.rms.RecordStoreException
- general exception
java.lang.Exception
- internal errorpublic int previousRecordId() throws javax.microedition.rms.InvalidRecordIDException
javax.microedition.rms.InvalidRecordIDException
- if there are no more records to return
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |