Package de.xima.fc.interfaces
Interface IEntityContext
- All Superinterfaces:
AutoCloseable
,Closeable
,de.xima.cmn.dao.interfaces.IBaseEntityContext
- All Known Implementing Classes:
AEntityContext
,ContextualEntityContext
,EntityContext
,JSFEntityContext
,RequestEntityContext
public interface IEntityContext
extends de.xima.cmn.dao.interfaces.IBaseEntityContext
Interface for the
IEntityContext
which is required for database transactions. Often you do not have to use
any methods of this context yourself and just pass it to the appropriate database interaction methods as defined by
the various implementations of IAbstractDao
.
In case you open this context manually, you must make sure you close it as well once you do not need it anymore. Please note that in many cases you do not have to (and should not) open this context manually, and instead use the context you are given.
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionfeatures
(de.xima.cmn.dao.enums.EEntityContextFeature... features) Deprecated.getUser()
boolean
postCommit
(de.xima.cmn.dao.interfaces.IPostCommitListener listener) postRollback
(de.xima.cmn.dao.interfaces.IPostRollbackListener listener) preCommit
(de.xima.cmn.dao.interfaces.IPreCommitListener listener) preRollback
(de.xima.cmn.dao.interfaces.IPreRollbackListener listener) void
reopen()
void
setSkipValidation
(boolean skip) void
boolean
Methods inherited from interface de.xima.cmn.dao.interfaces.IBaseEntityContext
close, getEm, getFeatures, getPostCommitListeners, getPostRollbackListeners, getPreCommitListeners, getPreRollbackListeners, isOpen
-
Method Details
-
getUser
IUser getUser() -
hasBenutzer
boolean hasBenutzer() -
reopen
void reopen() -
getUserContext
UserContext getUserContext() -
setUserContext
-
setSkipValidation
void setSkipValidation(boolean skip) -
skipValidation
boolean skipValidation() -
getParameters
-
postCommit
-
postRollback
-
preCommit
-
preRollback
-
features
-
getBenutzer
Deprecated.UsegetUser()
instead.
-
getUser()
instead.