|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openbandy.io.storage.Storage org.openbandy.io.rms.RmsStorage
public class RmsStorage
Abtstract and encapsule rms knowlegede (id generation etc.)
TODO überprüfe alle RmsConnections, wo kann ich sparen ??!!!!!
TODO NAMEN vereinfachen und konsequenter verwenden !!
(c) Copyright P. Bolliger 2007, ALL RIGHTS RESERVED.
Field Summary | |
---|---|
static java.lang.String |
TYPE_POSTFIX
|
Method Summary | |
---|---|
RmsConnection |
addObject(Serializable serializable)
This method will create a new entry in the RMS for the serializable object. |
boolean |
deleteShallow(Serializable serializable)
Deletes the serializable object, but not the reference objects. |
int |
existsInStorage(Serializable serializable)
Return 0 if databaseSerializable does not already
exist in database. |
static RmsConnection |
getConnection(java.lang.String objectRecordStoreName)
TODO comment! |
static RmsConnection |
getConnectionForObject(Serializable serializable)
TODO comment! |
static RmsStorage |
getInstance()
TODO comment! |
static java.util.Vector |
getObjectAttributes(Serializable serializable)
TODO comment! |
static java.lang.String |
getRecordStoreName(Serializable serializable)
TODO comment! |
static java.lang.String |
getTypeRecordStoreName(Serializable serializable)
TODO comment! |
boolean |
isEmpty()
Returns true if no object is contained within the storage. |
static int |
numberOfUsedRecordStores()
TODO comment! |
void |
printAllRecordStores()
TODO comment! |
void |
reset()
Reset the storage with all it's meta structures and caches. |
Methods inherited from class org.openbandy.io.storage.Storage |
---|
closeAllConnections, delete, removeConnection, size |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TYPE_POSTFIX
Method Detail |
---|
public static RmsStorage getInstance()
public int existsInStorage(Serializable serializable)
Storage
databaseSerializable
does not already
exist in database. If databaseSerializable
exist,
this method returns the id according to databaseSerializable.getIdName()
.
existsInStorage
in class Storage
public RmsConnection addObject(Serializable serializable)
serializable
-
public static RmsConnection getConnectionForObject(Serializable serializable)
serializable
-
public static RmsConnection getConnection(java.lang.String objectRecordStoreName)
objectRecordStoreName
-
public static java.lang.String getRecordStoreName(Serializable serializable)
serializable
-
public static java.lang.String getTypeRecordStoreName(Serializable serializable)
serializable
-
public static java.util.Vector getObjectAttributes(Serializable serializable)
serializable
-
public void reset()
Storage
reset
in class Storage
public boolean isEmpty()
Storage
isEmpty
in class Storage
public static int numberOfUsedRecordStores()
public boolean deleteShallow(Serializable serializable)
Storage
deleteShallow
in class Storage
public void printAllRecordStores()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |