com.funambol.storage
Class AbstractRecordStore
java.lang.Object
com.funambol.storage.AbstractRecordStore
- Direct Known Subclasses:
- RmsRecordStoreWrapper
public abstract class AbstractRecordStore
- extends java.lang.Object
Method Summary |
abstract int |
addRecord(byte[] data,
int offset,
int numBytes)
|
abstract void |
closeRecordStore()
|
abstract void |
deleteRecord(int recordId)
|
static void |
deleteRecordStore(java.lang.String recordStoreName)
|
abstract javax.microedition.rms.RecordEnumeration |
enumerateRecords(javax.microedition.rms.RecordFilter filter,
javax.microedition.rms.RecordComparator comparator,
boolean keepUpdated)
|
abstract java.lang.String |
getName()
|
abstract int |
getNextRecordID()
|
abstract int |
getNumRecords()
|
abstract byte[] |
getRecord(int recordId)
|
abstract int |
getRecord(int recordId,
byte[] buffer,
int offset)
|
abstract int |
getRecordSize(int recordId)
|
abstract int |
getSize()
|
abstract int |
getSizeAvailable()
|
static java.lang.String[] |
listRecordStores()
|
static AbstractRecordStore |
openRecordStore(java.lang.String recordStoreName,
boolean createIfNecessary)
|
abstract 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 |
AbstractRecordStore
public AbstractRecordStore()
addRecord
public abstract int addRecord(byte[] data,
int offset,
int numBytes)
throws javax.microedition.rms.RecordStoreNotOpenException,
javax.microedition.rms.RecordStoreException,
javax.microedition.rms.RecordStoreFullException
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
javax.microedition.rms.RecordStoreException
javax.microedition.rms.RecordStoreFullException
closeRecordStore
public abstract void closeRecordStore()
throws javax.microedition.rms.RecordStoreNotOpenException,
javax.microedition.rms.RecordStoreException
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
javax.microedition.rms.RecordStoreException
deleteRecord
public abstract void deleteRecord(int recordId)
throws javax.microedition.rms.RecordStoreNotOpenException,
javax.microedition.rms.InvalidRecordIDException,
javax.microedition.rms.RecordStoreException
- 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
openRecordStore
public static AbstractRecordStore openRecordStore(java.lang.String recordStoreName,
boolean createIfNecessary)
throws javax.microedition.rms.RecordStoreException,
javax.microedition.rms.RecordStoreFullException,
javax.microedition.rms.RecordStoreNotFoundException
- Parameters:
recordStoreName
- createIfNecessary
-
- Returns:
-
- Throws:
javax.microedition.rms.RecordStoreException
javax.microedition.rms.RecordStoreFullException
javax.microedition.rms.RecordStoreNotFoundException
listRecordStores
public static java.lang.String[] listRecordStores()
enumerateRecords
public abstract javax.microedition.rms.RecordEnumeration enumerateRecords(javax.microedition.rms.RecordFilter filter,
javax.microedition.rms.RecordComparator comparator,
boolean keepUpdated)
throws javax.microedition.rms.RecordStoreNotOpenException
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
getName
public abstract java.lang.String getName()
throws javax.microedition.rms.RecordStoreNotOpenException
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
getNextRecordID
public abstract int getNextRecordID()
throws javax.microedition.rms.RecordStoreNotOpenException,
javax.microedition.rms.RecordStoreException
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
javax.microedition.rms.RecordStoreException
getNumRecords
public abstract int getNumRecords()
throws javax.microedition.rms.RecordStoreNotOpenException
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
getRecord
public abstract byte[] getRecord(int recordId)
throws javax.microedition.rms.RecordStoreNotOpenException,
javax.microedition.rms.InvalidRecordIDException,
javax.microedition.rms.RecordStoreException
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
javax.microedition.rms.InvalidRecordIDException
javax.microedition.rms.RecordStoreException
getRecord
public abstract int getRecord(int recordId,
byte[] buffer,
int offset)
throws javax.microedition.rms.RecordStoreNotOpenException,
javax.microedition.rms.InvalidRecordIDException,
javax.microedition.rms.RecordStoreException,
java.lang.ArrayIndexOutOfBoundsException
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
javax.microedition.rms.InvalidRecordIDException
javax.microedition.rms.RecordStoreException
java.lang.ArrayIndexOutOfBoundsException
getRecordSize
public abstract int getRecordSize(int recordId)
throws javax.microedition.rms.RecordStoreNotOpenException,
javax.microedition.rms.InvalidRecordIDException,
javax.microedition.rms.RecordStoreException
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
javax.microedition.rms.InvalidRecordIDException
javax.microedition.rms.RecordStoreException
getSize
public abstract int getSize()
throws javax.microedition.rms.RecordStoreNotOpenException
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
getSizeAvailable
public abstract int getSizeAvailable()
throws javax.microedition.rms.RecordStoreNotOpenException
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
setRecord
public abstract 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
- Throws:
javax.microedition.rms.RecordStoreNotOpenException
javax.microedition.rms.InvalidRecordIDException
javax.microedition.rms.RecordStoreException
javax.microedition.rms.RecordStoreFullException
Copyright © 2001-2009 Funambol.