|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.object.AbstractNakedObjectStore
org.nakedobjects.object.TransientObjectStore
| Constructor Summary | |
TransientObjectStore()
|
|
| Method Summary | |
void |
abortTransaction()
|
void |
addElement(NakedCollection collection,
NakedObject element)
|
boolean |
containsElement(NakedCollection collection,
NakedObject element)
|
void |
destroyObject(NakedObject object)
Removes the specified object from the object store. |
void |
endTransaction()
|
NakedObject |
finderObject(NakedClass type)
|
java.util.Vector |
getNextElements(NakedCollection collection,
NakedObject fromObject,
int size)
Retrieve the next set (the number specified by count) of objects for the specified collection starting from, but not including, the specified object. |
java.util.Vector |
getNextInstances(NakedObject pattern,
NakedObject fromObject,
int size)
Gets the next page of instances. |
NakedObject |
getObject(java.lang.Object oid)
Retrieves the object identified by the specified OID from the object store. |
java.util.Vector |
getPreviousElements(NakedCollection collection,
NakedObject toObject,
int size)
Retrieve the previous set (the number specified by count) of objects for the specified collection starting from the specified object. |
java.util.Vector |
getPreviousInstances(NakedObject pattern,
NakedObject toObject,
int size)
Gets the previous page of instances. |
boolean |
hasInstances(NakedClass expressiveClass)
Checks whether there are any instances of the specified type. |
boolean |
isFirstElement(NakedCollection collection,
NakedObject element)
|
boolean |
isFirstInstance(NakedObject pattern,
NakedObject instance)
Checks whether the specified instance is the first one instance in the set of all instances. |
boolean |
isLastElement(NakedCollection collection,
NakedObject element)
|
boolean |
isLastInstance(NakedObject pattern,
NakedObject instance)
Checks whether the specified instance is the last instance in the set of all instances. |
void |
makePersistent(NakedObject object)
Makes a naked object persistent. |
java.lang.String |
name()
|
java.lang.Object |
newOid()
|
int |
numberOfElements(NakedCollection collection)
|
int |
numberOfInstances(NakedObject pattern)
|
void |
removeElement(NakedCollection collection,
NakedObject element)
|
void |
resolve(NakedObject object)
Re-initialises the fields of an object. |
void |
save(NakedObject object)
Persists the specified object's state. |
long |
serialNumber(java.lang.String id)
Generates a unique serial number for the specified squence set. |
void |
startTransaction()
|
| Methods inherited from class org.nakedobjects.object.AbstractNakedObjectStore |
areObjectsDistributed, areObjectsProxied, broadcastAddUpdate, broadcastObjectUpdate, broadcastRemoveUpdate, classes, createInstance, getCachedObject, getDebugData, getDebugTitle, getLog, init, isLoaded, loaded, log, log, persistenceType, restart, setLog, setUpdateNotifier, shutdown, unloaded |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TransientObjectStore()
| Method Detail |
public boolean isFirstElement(NakedCollection collection,
NakedObject element)
throws NonPersistentObjectException,
ObjectStoreException
NonPersistentObjectException
ObjectStoreException
public boolean isFirstInstance(NakedObject pattern,
NakedObject instance)
throws NonPersistentObjectException
NakedObjectStoretrue if it is, or
false if it isn't.
NonPersistentObjectException
public boolean isLastElement(NakedCollection collection,
NakedObject element)
throws NonPersistentObjectException,
ObjectStoreException
NonPersistentObjectException
ObjectStoreException
public boolean isLastInstance(NakedObject pattern,
NakedObject instance)
throws NonPersistentObjectException
NakedObjectStoretrue if it is, or
false if it isn't.
NonPersistentObjectException
public java.util.Vector getNextElements(NakedCollection collection,
NakedObject fromObject,
int size)
throws ObjectNotFoundException,
NonPersistentObjectException,
ObjectStoreException
NakedObjectStore
ObjectNotFoundException
NonPersistentObjectException
ObjectStoreException
public java.util.Vector getNextInstances(NakedObject pattern,
NakedObject fromObject,
int size)
throws NonPersistentObjectException,
ObjectNotFoundException
NakedObjectStorenull references are to be
ignored;null in which case this
last condition does not apply.
NonPersistentObjectException
ObjectNotFoundException
public NakedObject getObject(java.lang.Object oid)
throws ObjectNotFoundException,
ObjectStoreException
NakedObjectStore
oid - org.nakedobjects.object.Oid
ObjectNotFoundException - when no object corresponding to the oid can be found
ObjectStoreException
public java.util.Vector getPreviousElements(NakedCollection collection,
NakedObject toObject,
int size)
throws ObjectNotFoundException,
NonPersistentObjectException,
ObjectStoreException
NakedObjectStore
ObjectNotFoundException
NonPersistentObjectException
ObjectStoreException
public java.util.Vector getPreviousInstances(NakedObject pattern,
NakedObject toObject,
int size)
throws NonPersistentObjectException
NakedObjectStorenull then the vector should contain the last
NonPersistentObjectExceptionpublic void abortTransaction()
public void addElement(NakedCollection collection,
NakedObject element)
throws NonPersistentObjectException,
ObjectStoreException
NonPersistentObjectException
ObjectStoreException
public boolean containsElement(NakedCollection collection,
NakedObject element)
throws NonPersistentObjectException,
ObjectStoreException
NonPersistentObjectException
ObjectStoreException
public void destroyObject(NakedObject object)
throws NonPersistentObjectException
NakedObjectStore
NonPersistentObjectExceptionpublic void endTransaction()
public NakedObject finderObject(NakedClass type)
public boolean hasInstances(NakedClass expressiveClass)
NakedObjectStoretrue
if there are, or false if there are not.
public void makePersistent(NakedObject object)
throws ObjectStoreException
NakedObjectStoresetOid method). The object, should also be added to the cache as the
object is implicitly 'in use'.
If the object has any associations then each of these, where they aren't already persistent, should also be made persistent by recursively calling this method.
If the object to be persisted is a collection, then each element of that collection, that is not already persistent, should be made persistent by recursively calling this method.
ObjectStoreExceptionpublic java.lang.String name()
public java.lang.Object newOid()
public int numberOfElements(NakedCollection collection)
throws NonPersistentObjectException,
ObjectStoreException
NonPersistentObjectException
ObjectStoreException
public int numberOfInstances(NakedObject pattern)
throws NonPersistentObjectException,
ObjectStoreException
NonPersistentObjectException
ObjectStoreException
public void removeElement(NakedCollection collection,
NakedObject element)
throws NonPersistentObjectException,
ObjectStoreException
NonPersistentObjectException
ObjectStoreException
public void resolve(NakedObject object)
throws ObjectNotFoundException,
ObjectStoreException
NakedObjectStore
ObjectNotFoundException
ObjectStoreException
public void save(NakedObject object)
throws NonPersistentObjectException,
ObjectStoreException
NakedObjectStore
NonPersistentObjectException
ObjectStoreExceptionpublic long serialNumber(java.lang.String id)
NakedObjectStore
public void startTransaction()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||