|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.runtime.persistence.PersistenceSessionAbstract
org.nakedobjects.remoting.client.persistence.PersistenceSessionProxy
public class PersistenceSessionProxy
| Constructor Summary | |
|---|---|
PersistenceSessionProxy(PersistenceSessionFactory persistenceSessionFactory,
AdapterFactory adapterFactory,
ObjectFactory objectFactory,
ServicesInjector containerInjector,
OidGenerator oidGenerator,
AdapterManagerExtended adapterManager,
ServerFacade serverFacade,
ObjectEncoderDecoder encoder)
|
|
| Method Summary | |
|---|---|
void |
debugData(DebugString debug)
|
java.lang.String |
debugTitle()
|
void |
destroyObject(NakedObject object)
|
protected void |
destroyObjectInPersistenceLayer(NakedObject object)
|
void |
doClose()
TODO: mismatch between SessionScopedComponent (open) and
ApplicationScopedComponent (init). |
void |
doOpen()
TODO: mismatch between SessionScopedComponent (open) and
ApplicationScopedComponent (init). |
protected NakedObject[] |
getInstances(PersistenceQuery persistenceQuery)
|
Oid |
getOidForService(java.lang.String name)
TODO: not symmetric with PersistenceSessionObjectStore; we have
a cache but it does not? |
ClientSideTransactionManager |
getTransactionManager()
Just downcasts. |
boolean |
hasInstances(NakedObjectSpecification specification)
|
boolean |
isFixturesInstalled()
No need to install fixtures, rely on server-side to do the right thing. |
NakedObject |
loadObject(Oid oid,
NakedObjectSpecification hintSpec)
|
void |
makePersistent(NakedObject object)
REVIEW: we should perhaps have a little more symmetry here, and have the ServerFacade callback to the PersistenceSession
(the PersistenceSessionPersist API) to handle remapping
of adapters. |
protected void |
makePersistentInPersistenceLayer(NakedObject object)
|
void |
objectChanged(NakedObject adapter)
|
void |
registerService(java.lang.String name,
Oid oid)
TODO: not symmetric with PersistenceSessionObjectStore; we have
a cache but it does not? |
void |
reload(NakedObject object)
|
void |
resolveField(NakedObject adapter,
NakedObjectAssociation field)
|
void |
resolveImmediately(NakedObject adapter)
|
| Methods inherited from class org.nakedobjects.runtime.persistence.PersistenceSessionAbstract |
|---|
clearAllDirty, close, createInstance, createPersistenceQueryFor, doOpened, ensureNotOpened, ensureOpen, findInstances, findInstances, getAdapterFactory, getAdapterManager, getObjectFactory, getOidGenerator, getPersistenceSessionFactory, getService, getServices, getServicesInjector, getSpecificationLoader, hasServices, injectInto, isCheckObjectsForDirtyFlag, isImmutable, objectChangedAllDirty, open, recreateAdapter, recreateAdapter, reload, setDirtiableSupport, setSpecificationLoader, setTransactionManager, testReset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistenceSessionProxy(PersistenceSessionFactory persistenceSessionFactory,
AdapterFactory adapterFactory,
ObjectFactory objectFactory,
ServicesInjector containerInjector,
OidGenerator oidGenerator,
AdapterManagerExtended adapterManager,
ServerFacade serverFacade,
ObjectEncoderDecoder encoder)
| Method Detail |
|---|
public void doOpen()
SessionScopedComponent (open) and
ApplicationScopedComponent (init).
doOpen in class PersistenceSessionAbstractpublic void doClose()
SessionScopedComponent (open) and
ApplicationScopedComponent (init).
doClose in class PersistenceSessionAbstractpublic boolean isFixturesInstalled()
public NakedObject loadObject(Oid oid,
NakedObjectSpecification hintSpec)
public void reload(NakedObject object)
reload in interface PersistenceSessionForceReloaderreload in class PersistenceSessionAbstractpublic void resolveImmediately(NakedObject adapter)
public void resolveField(NakedObject adapter,
NakedObjectAssociation field)
public void makePersistent(NakedObject object)
ServerFacade callback to the PersistenceSession
(the PersistenceSessionPersist API) to handle remapping
of adapters.
protected void makePersistentInPersistenceLayer(NakedObject object)
public void objectChanged(NakedObject adapter)
public void destroyObject(NakedObject object)
protected void destroyObjectInPersistenceLayer(NakedObject object)
protected NakedObject[] getInstances(PersistenceQuery persistenceQuery)
getInstances in class PersistenceSessionAbstractpublic boolean hasInstances(NakedObjectSpecification specification)
public Oid getOidForService(java.lang.String name)
PersistenceSessionObjectStore; we have
a cache but it does not?
getOidForService in class PersistenceSessionAbstract
public void registerService(java.lang.String name,
Oid oid)
PersistenceSessionObjectStore; we have
a cache but it does not?
registerService in class PersistenceSessionAbstractpublic ClientSideTransactionManager getTransactionManager()
getTransactionManager in interface PersistenceSessiongetTransactionManager in class PersistenceSessionAbstractpublic void debugData(DebugString debug)
debugData in interface DebugInfodebugData in class PersistenceSessionAbstractpublic java.lang.String debugTitle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||