|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
abortTransaction()
|
void |
addElement(NakedCollection collection,
NakedObject element)
|
boolean |
areObjectsDistributed()
|
boolean |
areObjectsProxied()
|
java.util.Enumeration |
classes()
Returns a list of all the classes (as NakedClasses) that this object store can handle. |
boolean |
containsElement(NakedCollection collection,
NakedObject element)
|
NakedObject |
createInstance(NakedClass type)
Deprecated. |
void |
destroyObject(NakedObject object)
Removes the specified object from the object store. |
void |
endTransaction()
|
java.util.Vector |
getNextElements(NakedCollection collection,
NakedObject fromObject,
int count)
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 count)
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 count)
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 count)
Gets the previous page of instances. |
boolean |
hasInstances(NakedClass type)
Checks whether there are any instances of the specified type. |
void |
init()
|
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. |
boolean |
isLoaded(java.lang.Object oid)
Returns true if the system already holds an object with the specific OID |
void |
loaded(NakedObject object)
Called by a client to indicate it has loaded a NakedObject into the system. |
void |
makePersistent(NakedObject object)
Makes a naked object persistent. |
java.lang.String |
name()
|
int |
numberOfElements(NakedCollection collection)
|
int |
numberOfInstances(NakedObject pattern)
|
PersistenceType |
persistenceType()
|
void |
removeElement(NakedCollection collection,
NakedObject element)
|
void |
resolve(NakedObject object)
Re-initialises the fields of an object. |
void |
restart()
|
void |
save(NakedObject object)
Persists the specified object's state. |
long |
serialNumber(java.lang.String sequence)
Generates a unique serial number for the specified squence set. |
void |
setLog(Log newLog)
Specifies the Log that all future logging calls should be made to. |
void |
setUpdateNotifier(UpdateNotifier notifier)
|
void |
shutdown()
|
void |
startTransaction()
|
void |
unloaded(NakedObject object)
Called by a client to indicate it has unloaded a NakedObject from memory. |
Methods inherited from interface org.nakedobjects.utility.DebugInfo |
getDebugData, getDebugTitle |
Method Detail |
public boolean isFirstElement(NakedCollection collection, NakedObject element) throws ObjectStoreException
ObjectStoreException
public boolean isFirstInstance(NakedObject pattern, NakedObject instance) throws ObjectStoreException
true
if it is, or
false
if it isn't.
ObjectStoreException
public boolean isLastElement(NakedCollection collection, NakedObject element) throws ObjectStoreException
ObjectStoreException
public boolean isLastInstance(NakedObject pattern, NakedObject instance) throws ObjectStoreException
true
if it is, or
false
if it isn't.
ObjectStoreException
public java.util.Vector getNextElements(NakedCollection collection, NakedObject fromObject, int count) throws ObjectStoreException
ObjectStoreException
public java.util.Vector getNextInstances(NakedObject pattern, NakedObject fromObject, int count) throws ObjectStoreException
null
references are to be
ignored;null
in which case this
last condition does not apply.
ObjectStoreException
public java.util.Vector getPreviousElements(NakedCollection collection, NakedObject toObject, int count) throws ObjectStoreException
ObjectStoreException
public java.util.Vector getPreviousInstances(NakedObject pattern, NakedObject toObject, int count) throws ObjectStoreException
null
then the vector should contain the last
ObjectStoreException
public void addElement(NakedCollection collection, NakedObject element) throws ObjectStoreException
ObjectStoreException
public void init() throws ObjectStoreException
ObjectStoreException
public void abortTransaction()
public boolean areObjectsDistributed()
public boolean areObjectsProxied()
public java.util.Enumeration classes() throws ObjectStoreException
ObjectStoreException
public boolean containsElement(NakedCollection collection, NakedObject element) throws ObjectStoreException
ObjectStoreException
public void destroyObject(NakedObject object) throws ObjectStoreException
ObjectStoreException
public void endTransaction()
public boolean hasInstances(NakedClass type) throws ObjectStoreException
true
if there are, or false
if there are not.
ObjectStoreException
public NakedObject createInstance(NakedClass type) throws ObjectStoreException
created
method, and ensures the object's initial logical state is stored away.
ObjectStoreException
public void makePersistent(NakedObject object) throws ObjectStoreException
setOid
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.
ObjectStoreException
public java.lang.String name()
public int numberOfElements(NakedCollection collection) throws ObjectStoreException
ObjectStoreException
public int numberOfInstances(NakedObject pattern) throws ObjectStoreException
ObjectStoreException
public PersistenceType persistenceType()
public void removeElement(NakedCollection collection, NakedObject element) throws ObjectStoreException
ObjectStoreException
public void resolve(NakedObject object) throws ObjectStoreException
ObjectStoreException
public void save(NakedObject object) throws ObjectStoreException
ObjectStoreException
public long serialNumber(java.lang.String sequence)
public void setLog(Log newLog)
newLog
- org.nakedobjects.utility.Logpublic void setUpdateNotifier(UpdateNotifier notifier)
public void shutdown() throws ObjectStoreException
ObjectStoreException
public void startTransaction()
public boolean isLoaded(java.lang.Object oid)
oid
- public NakedObject getObject(java.lang.Object oid) throws ObjectNotFoundException, ObjectStoreException
oid
- of the object to be retrieved
ObjectNotFoundException
- when no object corresponding to the oid can be found
ObjectStoreException
public void restart()
public void loaded(NakedObject object)
object
- public void unloaded(NakedObject object)
object
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |