org.nakedobjects.runtime.objectstore.inmemory.internal
Class ObjectStoreInstances

java.lang.Object
  extended by org.nakedobjects.runtime.objectstore.inmemory.internal.ObjectStoreInstances

public final class ObjectStoreInstances
extends java.lang.Object


Constructor Summary
ObjectStoreInstances(NakedObjectSpecification spec)
           
 
Method Summary
 void debugData(DebugString debug)
           
 void findInstancesAndAdd(PersistenceQueryBuiltIn persistenceQuery, java.util.Vector<NakedObject> foundInstances)
          Not API, but public so can be called by InMemoryObjectStore.
 java.util.Map<Oid,java.lang.Object> getObjectInstances()
          TODO: shouldn't really be exposing this directly.
 java.util.Set<Oid> getOids()
           
 java.lang.Object getPojo(Oid oid)
           
 Version getVersion(Oid oid)
           
 boolean hasInstances()
           
 int numberOfInstances()
           
 void remove(Oid oid)
           
 NakedObject retrieveObject(Oid oid)
          If the pojo exists in the object store, then looks up the adapter from the AdapterManager, and only if none found does it recreate a new adapter.
 void save(NakedObject adapter)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectStoreInstances

public ObjectStoreInstances(NakedObjectSpecification spec)
Method Detail

getObjectInstances

public java.util.Map<Oid,java.lang.Object> getObjectInstances()
TODO: shouldn't really be exposing this directly.


getOids

public java.util.Set<Oid> getOids()

getPojo

public java.lang.Object getPojo(Oid oid)

getVersion

public Version getVersion(Oid oid)

shutdown

public void shutdown()

save

public void save(NakedObject adapter)

remove

public void remove(Oid oid)

retrieveObject

public NakedObject retrieveObject(Oid oid)
If the pojo exists in the object store, then looks up the adapter from the AdapterManager, and only if none found does it recreate a new adapter.


findInstancesAndAdd

public void findInstancesAndAdd(PersistenceQueryBuiltIn persistenceQuery,
                                java.util.Vector<NakedObject> foundInstances)
Not API, but public so can be called by InMemoryObjectStore.


numberOfInstances

public int numberOfInstances()

hasInstances

public boolean hasInstances()

debugData

public void debugData(DebugString debug)


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.