|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.object.distribution.ProxyObjectStore
| Field Summary | |
static PersistenceType |
DEFAULT_TYPE
|
static java.lang.String |
REPLICATION_TYPE
|
| Constructor Summary | |
ProxyObjectStore(UpdateNotifier notifier,
UpdateReceiver recv,
ProxyRequester requester)
|
|
| Method Summary | |
void |
abortTransaction()
|
void |
addElement(NakedCollection collection,
NakedObject element)
|
boolean |
areObjectsDistributed()
|
boolean |
areObjectsProxied()
|
protected void |
broadcastAddUpdate(NakedCollection collection,
NakedObject object)
|
protected void |
broadcastObjectUpdate(NakedObject object)
|
protected void |
broadcastRemoveUpdate(NakedCollection collection,
NakedObject object)
|
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)
Creates an new, persistent, naked object of the specified type - creates a logical instance. |
void |
destroyObject(NakedObject object)
Removes the specified object from the object store. |
void |
endTransaction()
|
java.lang.String |
getDebugData()
Debug details describing the object being investigated |
java.lang.String |
getDebugTitle()
the title for the debug information |
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 fromObject,
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 fromObject,
int count)
Gets the previous page of instances. |
NakedObject |
getRemoteObject(java.lang.Object oid)
|
boolean |
hasInstances(NakedClass _class)
Checks whether there are any instances of the specified type. |
void |
init()
|
boolean |
isFirstElement(NakedCollection collection,
NakedObject element)
|
boolean |
isFirstInstance(NakedObject pattern,
NakedObject element)
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 element)
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. |
protected void |
log()
|
protected void |
log(java.lang.String logEntry)
|
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 id)
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 class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String REPLICATION_TYPE
public static final PersistenceType DEFAULT_TYPE
| Constructor Detail |
public ProxyObjectStore(UpdateNotifier notifier,
UpdateReceiver recv,
ProxyRequester requester)
| Method Detail |
public boolean isFirstElement(NakedCollection collection,
NakedObject element)
throws ObjectStoreException
isFirstElement in interface NakedObjectStoreObjectStoreException
public boolean isFirstInstance(NakedObject pattern,
NakedObject element)
throws ObjectStoreException
NakedObjectStoretrue if it is, or
false if it isn't.
isFirstInstance in interface NakedObjectStoreObjectStoreException
public boolean isLastElement(NakedCollection collection,
NakedObject element)
throws ObjectStoreException
isLastElement in interface NakedObjectStoreObjectStoreException
public boolean isLastInstance(NakedObject pattern,
NakedObject element)
throws ObjectStoreException
NakedObjectStoretrue if it is, or
false if it isn't.
isLastInstance in interface NakedObjectStoreObjectStoreExceptionpublic boolean isLoaded(java.lang.Object oid)
NakedObjectStore
isLoaded in interface NakedObjectStoreoid - org.nakedobjects.object.Object
public void setLog(Log newLog)
setLog in interface NakedObjectStorenewLog - org.nakedobjects.utility.Log
public java.util.Vector getNextElements(NakedCollection collection,
NakedObject fromObject,
int count)
throws ObjectStoreException
NakedObjectStore
getNextElements in interface NakedObjectStoreObjectStoreException
public java.util.Vector getNextInstances(NakedObject pattern,
NakedObject fromObject,
int count)
throws ObjectStoreException
NakedObjectStorenull references are to be
ignored;null in which case this
last condition does not apply.
getNextInstances in interface NakedObjectStoreObjectStoreException
public NakedObject getObject(java.lang.Object oid)
throws ObjectStoreException
NakedObjectStore
getObject in interface NakedObjectStoreoid - org.nakedobjects.object.Object
ObjectStoreException
public java.util.Vector getPreviousElements(NakedCollection collection,
NakedObject fromObject,
int count)
throws ObjectStoreException
NakedObjectStore
getPreviousElements in interface NakedObjectStoreObjectStoreException
public java.util.Vector getPreviousInstances(NakedObject pattern,
NakedObject fromObject,
int count)
throws ObjectStoreException
NakedObjectStorenull then the vector should contain the last
getPreviousInstances in interface NakedObjectStoreObjectStoreException
public NakedObject getRemoteObject(java.lang.Object oid)
throws ObjectStoreException
ObjectStoreExceptionpublic void setUpdateNotifier(UpdateNotifier notifier)
setUpdateNotifier in interface NakedObjectStorepublic void abortTransaction()
abortTransaction in interface NakedObjectStore
public void addElement(NakedCollection collection,
NakedObject element)
throws ObjectStoreException
addElement in interface NakedObjectStoreObjectStoreExceptionpublic boolean areObjectsDistributed()
areObjectsDistributed in interface NakedObjectStorepublic boolean areObjectsProxied()
areObjectsProxied in interface NakedObjectStorepublic java.util.Enumeration classes()
NakedObjectStore
classes in interface NakedObjectStore
public boolean containsElement(NakedCollection collection,
NakedObject element)
throws ObjectStoreException
containsElement in interface NakedObjectStoreObjectStoreException
public NakedObject createInstance(NakedClass type)
throws ObjectStoreException
NakedObjectStorecreated
method, and ensures the object's initial logical state is stored away.
createInstance in interface NakedObjectStoreObjectStoreExceptionpublic java.lang.String getDebugData()
DebugInfo
getDebugData in interface DebugInfopublic java.lang.String getDebugTitle()
DebugInfo
getDebugTitle in interface DebugInfo
public void destroyObject(NakedObject object)
throws ObjectStoreException
NakedObjectStore
destroyObject in interface NakedObjectStoreObjectStoreExceptionpublic void endTransaction()
endTransaction in interface NakedObjectStore
public boolean hasInstances(NakedClass _class)
throws ObjectStoreException
NakedObjectStoretrue
if there are, or false if there are not.
hasInstances in interface NakedObjectStoreObjectStoreException
public void init()
throws ObjectStoreException
init in interface NakedObjectStoreObjectStoreExceptionpublic void loaded(NakedObject object)
NakedObjectStore
loaded in interface NakedObjectStoreobject - org.nakedobjects.object.NakedObject
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.
makePersistent in interface NakedObjectStoreObjectStoreExceptionpublic java.lang.String name()
name in interface NakedObjectStore
public int numberOfElements(NakedCollection collection)
throws ObjectStoreException
numberOfElements in interface NakedObjectStoreObjectStoreException
public int numberOfInstances(NakedObject pattern)
throws ObjectStoreException
numberOfInstances in interface NakedObjectStoreObjectStoreExceptionpublic PersistenceType persistenceType()
persistenceType in interface NakedObjectStore
public void removeElement(NakedCollection collection,
NakedObject element)
throws ObjectStoreException
removeElement in interface NakedObjectStoreObjectStoreException
public void resolve(NakedObject object)
throws ObjectStoreException
NakedObjectStore
resolve in interface NakedObjectStoreObjectStoreExceptionpublic void save(NakedObject object)
NakedObjectStore
save in interface NakedObjectStorepublic long serialNumber(java.lang.String id)
NakedObjectStore
serialNumber in interface NakedObjectStorepublic void shutdown()
shutdown in interface NakedObjectStorepublic void startTransaction()
startTransaction in interface NakedObjectStorepublic void unloaded(NakedObject object)
NakedObjectStore
unloaded in interface NakedObjectStoreobject - org.nakedobjects.object.NakedObject
protected void broadcastAddUpdate(NakedCollection collection,
NakedObject object)
protected void broadcastObjectUpdate(NakedObject object)
protected void broadcastRemoveUpdate(NakedCollection collection,
NakedObject object)
protected void log()
protected void log(java.lang.String logEntry)
public void restart()
restart in interface NakedObjectStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||