|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.storage.ObjectStore
com.funambol.storage.NonClosingObjectStore
public class NonClosingObjectStore
This class extends the ObjectStore and changes its behavior in that stores are not closed when the close method is invoken. Open is also redefined so that a Store is opened only once.
Field Summary |
---|
Fields inherited from class com.funambol.storage.ObjectStore |
---|
mutex, name, rs |
Constructor Summary | |
---|---|
NonClosingObjectStore()
|
|
NonClosingObjectStore(java.lang.String name)
|
Method Summary | |
---|---|
void |
close()
Close the current RecordStore, if open. |
boolean |
open()
Open the current RecordStore, or throws an exception if not present. |
boolean |
open(java.lang.String name)
Open an existing RecordStore, or throws an exception if not present. |
protected boolean |
openStore()
private method used by open and create to share code. |
protected boolean |
openStore(java.lang.String name,
boolean create)
private method used by open and create to share code. |
void |
remove()
Removes this object store. |
Methods inherited from class com.funambol.storage.ObjectStore |
---|
addStoreListener, create, createEmptyRecord, getAvaliableStorage, getFirstIndex, getName, getNextIndex, getObjects, remove, removeObjectComparator, removeObjectFilter, removeStoreListener, retrieve, retrieveBytes, setObjectComparator, setObjectFilter, size, store, store |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NonClosingObjectStore()
public NonClosingObjectStore(java.lang.String name)
Method Detail |
---|
public boolean open(java.lang.String name) throws javax.microedition.rms.RecordStoreException
open
in class ObjectStore
name
- is the name of the RecordStore to be managed
javax.microedition.rms.RecordStoreException
public boolean open() throws javax.microedition.rms.RecordStoreException
open
in class ObjectStore
javax.microedition.rms.RecordStoreException
protected boolean openStore(java.lang.String name, boolean create) throws javax.microedition.rms.RecordStoreException
openStore
in class ObjectStore
javax.microedition.rms.RecordStoreException
protected boolean openStore() throws javax.microedition.rms.RecordStoreException
ObjectStore
openStore
in class ObjectStore
javax.microedition.rms.RecordStoreException
public void close() throws javax.microedition.rms.RecordStoreException
ObjectStore
close
in class ObjectStore
javax.microedition.rms.RecordStoreException
public void remove() throws javax.microedition.rms.RecordStoreException
remove
in class ObjectStore
javax.microedition.rms.RecordStoreException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |