com.funambol.storage
Class RmsRecordStoreWrapper
java.lang.Object
com.funambol.storage.AbstractRecordStore
com.funambol.storage.RmsRecordStoreWrapper
public class RmsRecordStoreWrapper
- extends AbstractRecordStore
Method Summary |
int |
addRecord(byte[] data,
int offset,
int numBytes)
|
void |
closeRecordStore()
|
void |
deleteRecord(int recordId)
|
static void |
deleteRecordStore(java.lang.String recordStoreName)
|
javax.microedition.rms.RecordEnumeration |
enumerateRecords(javax.microedition.rms.RecordFilter filter,
javax.microedition.rms.RecordComparator comparator,
boolean keepUpdated)
|
java.lang.String |
getName()
|
int |
getNextRecordID()
|
int |
getNumRecords()
|
byte[] |
getRecord(int recordId)
|
int |
getRecord(int recordId,
byte[] buffer,
int offset)
|
int |
getRecordSize(int recordId)
|
int |
getSize()
|
int |
getSizeAvailable()
|
static java.lang.String[] |
listRecordStores()
|
static AbstractRecordStore |
openRecordStore(java.lang.String recordStoreName,
boolean createIfNecessary)
|
void |
setRecord(int recordId,
byte[] newData,
int offset,
int numBytes)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
addRecord
public int addRecord(byte[] data,
int offset,
int numBytes)
throws javax.microedition.rms.RecordStoreNotOpenException,
javax.microedition.rms.RecordStoreException,
javax.microedition.rms.RecordStoreFullException
- Specified by:
addRecord
in class AbstractRecordStore
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
javax.microedition.rms.RecordStoreException
javax.microedition.rms.RecordStoreFullException
closeRecordStore
public void closeRecordStore()
throws javax.microedition.rms.RecordStoreNotOpenException,
javax.microedition.rms.RecordStoreException
- Specified by:
closeRecordStore
in class AbstractRecordStore
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
javax.microedition.rms.RecordStoreException
deleteRecord
public void deleteRecord(int recordId)
throws javax.microedition.rms.RecordStoreNotOpenException,
javax.microedition.rms.InvalidRecordIDException,
javax.microedition.rms.RecordStoreException
- Specified by:
deleteRecord
in class AbstractRecordStore
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
javax.microedition.rms.InvalidRecordIDException
javax.microedition.rms.RecordStoreException
deleteRecordStore
public static void deleteRecordStore(java.lang.String recordStoreName)
throws javax.microedition.rms.RecordStoreException,
javax.microedition.rms.RecordStoreNotFoundException
- Throws:
javax.microedition.rms.RecordStoreException
javax.microedition.rms.RecordStoreNotFoundException
enumerateRecords
public javax.microedition.rms.RecordEnumeration enumerateRecords(javax.microedition.rms.RecordFilter filter,
javax.microedition.rms.RecordComparator comparator,
boolean keepUpdated)
throws javax.microedition.rms.RecordStoreNotOpenException
- Specified by:
enumerateRecords
in class AbstractRecordStore
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
getName
public java.lang.String getName()
throws javax.microedition.rms.RecordStoreNotOpenException
- Specified by:
getName
in class AbstractRecordStore
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
getNextRecordID
public int getNextRecordID()
throws javax.microedition.rms.RecordStoreNotOpenException,
javax.microedition.rms.RecordStoreException
- Specified by:
getNextRecordID
in class AbstractRecordStore
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
javax.microedition.rms.RecordStoreException
getNumRecords
public int getNumRecords()
throws javax.microedition.rms.RecordStoreNotOpenException
- Specified by:
getNumRecords
in class AbstractRecordStore
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
getRecord
public byte[] getRecord(int recordId)
throws javax.microedition.rms.RecordStoreNotOpenException,
javax.microedition.rms.InvalidRecordIDException,
javax.microedition.rms.RecordStoreException
- Specified by:
getRecord
in class AbstractRecordStore
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
javax.microedition.rms.InvalidRecordIDException
javax.microedition.rms.RecordStoreException
getRecord
public int getRecord(int recordId,
byte[] buffer,
int offset)
throws javax.microedition.rms.RecordStoreNotOpenException,
javax.microedition.rms.InvalidRecordIDException,
javax.microedition.rms.RecordStoreException,
java.lang.ArrayIndexOutOfBoundsException
- Specified by:
getRecord
in class AbstractRecordStore
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
javax.microedition.rms.InvalidRecordIDException
javax.microedition.rms.RecordStoreException
java.lang.ArrayIndexOutOfBoundsException
setRecord
public void setRecord(int recordId,
byte[] newData,
int offset,
int numBytes)
throws javax.microedition.rms.RecordStoreNotOpenException,
javax.microedition.rms.InvalidRecordIDException,
javax.microedition.rms.RecordStoreException,
javax.microedition.rms.RecordStoreFullException
- Specified by:
setRecord
in class AbstractRecordStore
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
javax.microedition.rms.InvalidRecordIDException
javax.microedition.rms.RecordStoreException
javax.microedition.rms.RecordStoreFullException
getRecordSize
public int getRecordSize(int recordId)
throws javax.microedition.rms.RecordStoreNotOpenException,
javax.microedition.rms.InvalidRecordIDException,
javax.microedition.rms.RecordStoreException
- Specified by:
getRecordSize
in class AbstractRecordStore
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
javax.microedition.rms.InvalidRecordIDException
javax.microedition.rms.RecordStoreException
getSize
public int getSize()
throws javax.microedition.rms.RecordStoreNotOpenException
- Specified by:
getSize
in class AbstractRecordStore
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
getSizeAvailable
public int getSizeAvailable()
throws javax.microedition.rms.RecordStoreNotOpenException
- Specified by:
getSizeAvailable
in class AbstractRecordStore
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
listRecordStores
public static java.lang.String[] listRecordStores()
openRecordStore
public static AbstractRecordStore openRecordStore(java.lang.String recordStoreName,
boolean createIfNecessary)
throws javax.microedition.rms.RecordStoreException,
javax.microedition.rms.RecordStoreFullException,
javax.microedition.rms.RecordStoreNotFoundException
- Throws:
javax.microedition.rms.RecordStoreException
javax.microedition.rms.RecordStoreFullException
javax.microedition.rms.RecordStoreNotFoundException
Copyright © 2001-2009 Funambol.