|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openbandy.io.storage.Storage
public abstract class Storage
TODO describe purpose and usage
(c) Copyright Philipp Bolliger 2008, ALL RIGHTS RESERVED.
Constructor Summary | |
---|---|
Storage()
|
Method Summary | |
---|---|
void |
closeAllConnections()
|
boolean |
delete(Serializable serializable)
Deletes the serializable and all the objects it references. |
abstract boolean |
deleteShallow(Serializable serializable)
Deletes the serializable object, but not the reference objects. |
abstract int |
existsInStorage(Serializable serializable)
Return 0 if databaseSerializable does not already
exist in database. |
abstract boolean |
isEmpty()
Returns true if no object is contained within the storage. |
boolean |
removeConnection(StorageConnection connection)
Returns true if the connection was removed |
abstract void |
reset()
Reset the storage with all it's meta structures and caches. |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Storage()
Method Detail |
---|
public abstract int existsInStorage(Serializable serializable)
databaseSerializable
does not already
exist in database. If databaseSerializable
exist,
this method returns the id according to databaseSerializable.getIdName()
.
serializable
-
public abstract boolean deleteShallow(Serializable serializable)
serializable
-
public boolean delete(Serializable serializable)
serializable
-
public int size()
public boolean removeConnection(StorageConnection connection)
connection
-
public void closeAllConnections()
public abstract void reset()
public abstract boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |