|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PersistenceSession
| Method Summary | |
|---|---|
void |
close()
|
AdapterFactory |
getAdapterFactory()
The configured AdapterFactory. |
AdapterManager |
getAdapterManager()
The configured AdapterManager. |
ObjectFactory |
getObjectFactory()
The configured ObjectFactory. |
OidGenerator |
getOidGenerator()
The configured OidGenerator. |
PersistenceSessionFactory |
getPersistenceSessionFactory()
The PersistenceSessionFactory that created this PersistenceSession. |
ServicesInjector |
getServicesInjector()
The configured ServicesInjector. |
NakedObjectTransactionManager |
getTransactionManager()
The configured NakedObjectTransactionManager. |
boolean |
isFixturesInstalled()
Determine if the object store has been initialized with its set of start up objects. |
void |
open()
|
void |
setSpecificationLoader(SpecificationLoader specificationLoader)
Inject the SpecificationLoader. |
void |
setTransactionManager(NakedObjectTransactionManager transactionManager)
Inject the NakedObjectTransactionManager. |
| Methods inherited from interface org.nakedobjects.runtime.persistence.PersistenceSessionContainer |
|---|
createInstance, destroyObject, findInstances, findInstances, hasInstances, loadObject, makePersistent, objectChanged, resolveField, resolveImmediately |
| Methods inherited from interface org.nakedobjects.runtime.persistence.PersistenceSessionForceReloader |
|---|
reload |
| Methods inherited from interface org.nakedobjects.runtime.persistence.PersistenceSessionAdaptedServiceManager |
|---|
getService, getServices |
| Methods inherited from interface org.nakedobjects.runtime.persistence.PersistenceSessionTransactionManagement |
|---|
clearAllDirty, objectChangedAllDirty, reload |
| Methods inherited from interface org.nakedobjects.runtime.persistence.PersistenceSessionHydrator |
|---|
recreateAdapter, recreateAdapter |
| Methods inherited from interface org.nakedobjects.metamodel.commons.component.Injectable |
|---|
injectInto |
| Methods inherited from interface org.nakedobjects.runtime.persistence.PersistenceSessionTestSupport |
|---|
testReset |
| Methods inherited from interface org.nakedobjects.metamodel.commons.debug.DebugInfo |
|---|
debugData, debugTitle |
| Method Detail |
|---|
PersistenceSessionFactory getPersistenceSessionFactory()
PersistenceSessionFactory that created this PersistenceSession.
void open()
open in interface SessionScopedComponentvoid close()
close in interface SessionScopedComponentboolean isFixturesInstalled()
This method is called only once after the ApplicationScopedComponent.init() has been called. If this flag
returns false the framework will run the fixtures to initialise the persistor.
OidGenerator getOidGenerator()
OidGenerator.
AdapterFactory getAdapterFactory()
AdapterFactory.
ObjectFactory getObjectFactory()
ObjectFactory.
ServicesInjector getServicesInjector()
ServicesInjector.
AdapterManager getAdapterManager()
AdapterManager.
void setTransactionManager(NakedObjectTransactionManager transactionManager)
NakedObjectTransactionManager.
This must be injected using setter-based injection rather than through the constructor
because there is a bidirectional relationship between the PersistenceSessionHydrator
and the NakedObjectTransactionManager.
setTransactionManager in interface NakedObjectTransactionManagerAwaregetTransactionManager()NakedObjectTransactionManager getTransactionManager()
NakedObjectTransactionManager.
setTransactionManager(NakedObjectTransactionManager)void setSpecificationLoader(SpecificationLoader specificationLoader)
SpecificationLoader.
The need to inject the reflector was introduced to support the HibernateObjectStore, which installs its own HibernateClassStrategy to cope with the proxy classes that Hibernate wraps around lists, sets and maps.
setSpecificationLoader in interface SpecificationLoaderAware
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||