|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.storage.BlackberryRecordEnumeration
public class BlackberryRecordEnumeration
Constructor Summary | |
---|---|
BlackberryRecordEnumeration(BlackberryRecordStore records,
net.rim.device.api.util.IntVector valueSortedKeys,
boolean keepUpdated)
|
Method Summary | |
---|---|
void |
destroy()
|
javax.microedition.rms.RecordComparator |
getParentRecordComparator()
|
javax.microedition.rms.RecordFilter |
getParentRecordFilter()
|
boolean |
hasNextElement()
|
boolean |
hasPreviousElement()
|
boolean |
isKeptUpdated()
|
void |
keepUpdated(boolean keepUpdated)
|
byte[] |
nextRecord()
Returns a copy of the next record in this enumeration. |
int |
nextRecordId()
Returns the next recordId in this enumeration. |
int |
numRecords()
Returns the number of records available in this enumeration. |
byte[] |
previousRecord()
Returns a copy of the previous record in this enumeration. |
int |
previousRecordId()
Returns the recordId of the previous record in the enumeration. |
void |
rebuild()
Rebuilds the current enumeration to reflect changes in the record store. |
void |
recordAdded(int recordId)
|
void |
recordChanged(int recordId)
|
void |
recordDeleted(int recordId)
|
void |
recordStoreClosing()
|
void |
reset()
|
void |
setParentRecordComparator(javax.microedition.rms.RecordComparator parentRecordComparator)
|
void |
setParentRecordFilter(javax.microedition.rms.RecordFilter parentRecordFilter)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlackberryRecordEnumeration(BlackberryRecordStore records, net.rim.device.api.util.IntVector valueSortedKeys, boolean keepUpdated)
Method Detail |
---|
public void destroy()
destroy
in interface javax.microedition.rms.RecordEnumeration
public boolean hasNextElement()
hasNextElement
in interface javax.microedition.rms.RecordEnumeration
public boolean hasPreviousElement()
hasPreviousElement
in interface javax.microedition.rms.RecordEnumeration
public boolean isKeptUpdated()
isKeptUpdated
in interface javax.microedition.rms.RecordEnumeration
public void keepUpdated(boolean keepUpdated)
keepUpdated
in interface javax.microedition.rms.RecordEnumeration
public byte[] nextRecord() throws javax.microedition.rms.InvalidRecordIDException, javax.microedition.rms.RecordStoreNotOpenException, javax.microedition.rms.RecordStoreException
nextRecord
in interface javax.microedition.rms.RecordEnumeration
javax.microedition.rms.InvalidRecordIDException
- When no more records are available
javax.microedition.rms.RecordStoreNotOpenException
- If the record store is not open
javax.microedition.rms.RecordStoreException
public int nextRecordId() throws javax.microedition.rms.InvalidRecordIDException
nextRecordId
in interface javax.microedition.rms.RecordEnumeration
javax.microedition.rms.InvalidRecordIDException
- When no more records are availablepublic int numRecords()
numRecords
in interface javax.microedition.rms.RecordEnumeration
public byte[] previousRecord() throws javax.microedition.rms.InvalidRecordIDException, javax.microedition.rms.RecordStoreNotOpenException, javax.microedition.rms.RecordStoreException
previousRecord
in interface javax.microedition.rms.RecordEnumeration
javax.microedition.rms.InvalidRecordIDException
- When no more records are available
javax.microedition.rms.RecordStoreNotOpenException
- When the parent record store is closed
javax.microedition.rms.RecordStoreException
- If a general record store exception occurspublic int previousRecordId() throws javax.microedition.rms.InvalidRecordIDException
previousRecordId
in interface javax.microedition.rms.RecordEnumeration
javax.microedition.rms.InvalidRecordIDException
- when no more records are available;spublic void rebuild()
rebuild
in interface javax.microedition.rms.RecordEnumeration
public void reset()
reset
in interface javax.microedition.rms.RecordEnumeration
public void recordAdded(int recordId)
public void recordChanged(int recordId)
public void recordDeleted(int recordId)
public void recordStoreClosing()
public javax.microedition.rms.RecordFilter getParentRecordFilter()
public void setParentRecordFilter(javax.microedition.rms.RecordFilter parentRecordFilter)
public javax.microedition.rms.RecordComparator getParentRecordComparator()
public void setParentRecordComparator(javax.microedition.rms.RecordComparator parentRecordComparator)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |