Package de.xima.fc.jpa.context
Class AEntityContext
- java.lang.Object
-
- de.xima.fc.jpa.context.AEntityContext
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IBaseEntityContext
,IEntityContext
,Closeable
,AutoCloseable
- Direct Known Subclasses:
EntityContext
,RequestEntityContext
public abstract class AEntityContext extends Object implements IEntityContext
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.persistence.EntityManager
em
protected EnumSet<de.xima.cmn.dao.enums.EEntityContextFeature>
features
protected static org.slf4j.Logger
LOG
protected Map<Object,Object>
parameterMap
protected List<de.xima.cmn.dao.interfaces.IPostCommitListener>
postCommitListeners
protected List<de.xima.cmn.dao.interfaces.IPostRollbackListener>
postRollbackListeners
protected List<de.xima.cmn.dao.interfaces.IPreCommitListener>
preCommitListeners
protected List<de.xima.cmn.dao.interfaces.IPreRollbackListener>
preRollbackListeners
protected boolean
skipValidation
protected UserContext
uc
-
Constructor Summary
Constructors Constructor Description AEntityContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AEntityContext
features(de.xima.cmn.dao.enums.EEntityContextFeature... features)
Benutzer
getBenutzer()
Deprecated.UsegetUser()
instead.javax.persistence.EntityManager
getEm()
EnumSet<de.xima.cmn.dao.enums.EEntityContextFeature>
getFeatures()
Map<Object,Object>
getParameters()
List<de.xima.cmn.dao.interfaces.IPostCommitListener>
getPostCommitListeners()
List<de.xima.cmn.dao.interfaces.IPostRollbackListener>
getPostRollbackListeners()
List<de.xima.cmn.dao.interfaces.IPreCommitListener>
getPreCommitListeners()
List<de.xima.cmn.dao.interfaces.IPreRollbackListener>
getPreRollbackListeners()
IUser
getUser()
UserContext
getUserContext()
Getter für ucboolean
hasBenutzer()
ERSTMAL um überflüssige Ausschriften zu vermeidenboolean
isOpen()
AEntityContext
postCommit(de.xima.cmn.dao.interfaces.IPostCommitListener listener)
AEntityContext
postRollback(de.xima.cmn.dao.interfaces.IPostRollbackListener listener)
AEntityContext
preCommit(de.xima.cmn.dao.interfaces.IPreCommitListener listener)
AEntityContext
preRollback(de.xima.cmn.dao.interfaces.IPreRollbackListener listener)
void
setSkipValidation(boolean skip)
void
setUserContext(UserContext uc)
Setter des ucboolean
skipValidation()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.interfaces.IEntityContext
reopen
-
-
-
-
Field Detail
-
postCommitListeners
protected List<de.xima.cmn.dao.interfaces.IPostCommitListener> postCommitListeners
-
postRollbackListeners
protected List<de.xima.cmn.dao.interfaces.IPostRollbackListener> postRollbackListeners
-
preCommitListeners
protected List<de.xima.cmn.dao.interfaces.IPreCommitListener> preCommitListeners
-
preRollbackListeners
protected List<de.xima.cmn.dao.interfaces.IPreRollbackListener> preRollbackListeners
-
features
protected EnumSet<de.xima.cmn.dao.enums.EEntityContextFeature> features
-
em
protected javax.persistence.EntityManager em
-
uc
protected UserContext uc
-
skipValidation
protected boolean skipValidation
-
LOG
protected static final org.slf4j.Logger LOG
-
-
Method Detail
-
setSkipValidation
public void setSkipValidation(boolean skip)
- Specified by:
setSkipValidation
in interfaceIEntityContext
-
skipValidation
public boolean skipValidation()
- Specified by:
skipValidation
in interfaceIEntityContext
-
getParameters
public Map<Object,Object> getParameters()
- Specified by:
getParameters
in interfaceIEntityContext
-
hasBenutzer
public boolean hasBenutzer()
ERSTMAL um überflüssige Ausschriften zu vermeiden- Specified by:
hasBenutzer
in interfaceIEntityContext
-
getUser
public IUser getUser()
- Specified by:
getUser
in interfaceIEntityContext
-
getEm
public javax.persistence.EntityManager getEm()
- Specified by:
getEm
in interfacede.xima.cmn.dao.interfaces.IBaseEntityContext
-
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interfacede.xima.cmn.dao.interfaces.IBaseEntityContext
-
getUserContext
public UserContext getUserContext()
Getter für uc- Specified by:
getUserContext
in interfaceIEntityContext
- Returns:
UserContext
des uc
-
setUserContext
public void setUserContext(UserContext uc)
Setter des uc- Specified by:
setUserContext
in interfaceIEntityContext
- Parameters:
uc
-UserContext
der zu setzende uc
-
getPostCommitListeners
public List<de.xima.cmn.dao.interfaces.IPostCommitListener> getPostCommitListeners()
- Specified by:
getPostCommitListeners
in interfacede.xima.cmn.dao.interfaces.IBaseEntityContext
-
getPostRollbackListeners
public List<de.xima.cmn.dao.interfaces.IPostRollbackListener> getPostRollbackListeners()
- Specified by:
getPostRollbackListeners
in interfacede.xima.cmn.dao.interfaces.IBaseEntityContext
-
getPreCommitListeners
public List<de.xima.cmn.dao.interfaces.IPreCommitListener> getPreCommitListeners()
- Specified by:
getPreCommitListeners
in interfacede.xima.cmn.dao.interfaces.IBaseEntityContext
-
getPreRollbackListeners
public List<de.xima.cmn.dao.interfaces.IPreRollbackListener> getPreRollbackListeners()
- Specified by:
getPreRollbackListeners
in interfacede.xima.cmn.dao.interfaces.IBaseEntityContext
-
postCommit
public AEntityContext postCommit(de.xima.cmn.dao.interfaces.IPostCommitListener listener)
- Specified by:
postCommit
in interfaceIEntityContext
-
postRollback
public AEntityContext postRollback(de.xima.cmn.dao.interfaces.IPostRollbackListener listener)
- Specified by:
postRollback
in interfaceIEntityContext
-
preCommit
public AEntityContext preCommit(de.xima.cmn.dao.interfaces.IPreCommitListener listener)
- Specified by:
preCommit
in interfaceIEntityContext
-
preRollback
public AEntityContext preRollback(de.xima.cmn.dao.interfaces.IPreRollbackListener listener)
- Specified by:
preRollback
in interfaceIEntityContext
-
getFeatures
public EnumSet<de.xima.cmn.dao.enums.EEntityContextFeature> getFeatures()
- Specified by:
getFeatures
in interfacede.xima.cmn.dao.interfaces.IBaseEntityContext
-
features
public AEntityContext features(de.xima.cmn.dao.enums.EEntityContextFeature... features)
- Specified by:
features
in interfaceIEntityContext
-
getBenutzer
@Deprecated public Benutzer getBenutzer()
Deprecated.UsegetUser()
instead.- Specified by:
getBenutzer
in interfaceIEntityContext
-
-