public abstract class AEntityContext extends Object implements IEntityContext
Modifier and Type | Field and 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 boolean |
skipValidation |
protected UserContext |
uc |
Constructor and Description |
---|
AEntityContext() |
Modifier and Type | Method and Description |
---|---|
AEntityContext |
features(de.xima.cmn.dao.enums.EEntityContextFeature... features) |
Benutzer |
getBenutzer() |
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() |
UserContext |
getUserContext()
Getter für uc
|
boolean |
hasBenutzer()
ERSTMAL um überflüssige Ausschriften zu vermeiden
|
boolean |
isOpen() |
AEntityContext |
postCommit(de.xima.cmn.dao.interfaces.IPostCommitListener listener) |
AEntityContext |
postRollback(de.xima.cmn.dao.interfaces.IPostRollbackListener listener) |
void |
setSkipValidation(boolean skip) |
void |
setUserContext(UserContext uc)
Setter des uc
|
boolean |
skipValidation() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reopen
protected List<de.xima.cmn.dao.interfaces.IPostCommitListener> postCommitListeners
protected List<de.xima.cmn.dao.interfaces.IPostRollbackListener> postRollbackListeners
protected EnumSet<de.xima.cmn.dao.enums.EEntityContextFeature> features
protected javax.persistence.EntityManager em
protected UserContext uc
protected boolean skipValidation
protected static final org.slf4j.Logger LOG
public void setSkipValidation(boolean skip)
setSkipValidation
in interface IEntityContext
public boolean skipValidation()
skipValidation
in interface IEntityContext
public Map<Object,Object> getParameters()
getParameters
in interface IEntityContext
public boolean hasBenutzer()
hasBenutzer
in interface IEntityContext
public Benutzer getBenutzer()
getBenutzer
in interface IEntityContext
public javax.persistence.EntityManager getEm()
getEm
in interface de.xima.cmn.dao.interfaces.IBaseEntityContext
public boolean isOpen()
isOpen
in interface de.xima.cmn.dao.interfaces.IBaseEntityContext
public UserContext getUserContext()
getUserContext
in interface IEntityContext
UserContext
des ucpublic void setUserContext(UserContext uc)
setUserContext
in interface IEntityContext
uc
- UserContext
der zu setzende ucpublic List<de.xima.cmn.dao.interfaces.IPostCommitListener> getPostCommitListeners()
getPostCommitListeners
in interface de.xima.cmn.dao.interfaces.IBaseEntityContext
public List<de.xima.cmn.dao.interfaces.IPostRollbackListener> getPostRollbackListeners()
getPostRollbackListeners
in interface de.xima.cmn.dao.interfaces.IBaseEntityContext
public AEntityContext postCommit(de.xima.cmn.dao.interfaces.IPostCommitListener listener)
postCommit
in interface IEntityContext
public AEntityContext postRollback(de.xima.cmn.dao.interfaces.IPostRollbackListener listener)
postRollback
in interface IEntityContext
public EnumSet<de.xima.cmn.dao.enums.EEntityContextFeature> getFeatures()
getFeatures
in interface de.xima.cmn.dao.interfaces.IBaseEntityContext
public AEntityContext features(de.xima.cmn.dao.enums.EEntityContextFeature... features)
features
in interface IEntityContext
Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.