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.default <T> TgetParameter(String key, Class<T> type) Gets a parameter from the given parameters map, if it exists and is of the given type.getUser()booleanpostCommit(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) voidreopen()voidsetSkipValidation(boolean skip) voidbooleanMethods 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
-
getParameter
Gets a parameter from the given parameters map, if it exists and is of the given type. Otherwise, returns null.- Type Parameters:
T- The type of the parameter.- Parameters:
key- The key of the parameter.type- The type of the parameter.- Returns:
- The parameter, if it exists and is of the given type. Otherwise, null.
-
postCommit
-
postRollback
-
preCommit
-
preRollback
-
features
-
getBenutzer
Deprecated.UsegetUser()instead.
-
getUser()instead.