@ThreadSafe public abstract class AbstractPerRequestEntityManager extends com.phloc.scopes.singleton.RequestSingleton
EntityManager.IEntityManagerProvider by
purpose, as this class should not be used as a direct callback parameter,
because than only the object of this particular request is used.| Modifier and Type | Field and Description |
|---|---|
protected ReadWriteLock |
m_aRWLock |
| Constructor and Description |
|---|
AbstractPerRequestEntityManager()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract javax.persistence.EntityManager |
createEntityManager()
Create a new
EntityManager when required. |
javax.persistence.EntityManager |
getEntityManager() |
protected void |
onDestroy() |
getAllRequestSingletons, getRequestSingleton, getRequestSingletonIfInstantiated, isRequestSingletonInstantiatedgetAllSingletons, getSingleton, getSingletonIfInstantiated, getSingletonScopeKey, isDestroyed, isInDestruction, isInInstantiation, isInstantiated, isSingletonInstantiated, isUsableObject, onAfterInstantiation, onScopeDestruction, readAbstractSingletonFields, setDestroyed, setInDestruction, setInInstantiation, setInstantiated, toString, writeAbstractSingletonFieldsprotected final ReadWriteLock m_aRWLock
@Deprecated @UsedViaReflection public AbstractPerRequestEntityManager()
@Nonnull @IsLocked(value=WRITE) protected abstract javax.persistence.EntityManager createEntityManager()
EntityManager when required.EntityManager. Never null.@Nonnull public javax.persistence.EntityManager getEntityManager()
EntityManager to be used in this request. If it is the
first request to an EntityManager in this request is
created via createEntityManager(). Never null
.@OverridingMethodsMustInvokeSuper protected void onDestroy()
onDestroy in class com.phloc.scopes.AbstractSingletonCopyright © 2006–2015 phloc systems. All rights reserved.