Class RequestEMManager
java.lang.Object
de.xima.fc.filter.db.RequestEMManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidcommit()static UserContextstatic javax.persistence.EntityManagerstatic booleanDeprecated.static <I extends Number & Comparable<I>>
booleanisEntityDetached(de.xima.cmn.dao.interfaces.IEntity<I> entity) static booleanstatic voidrollback()static voidsetDbRunning(boolean dbRunning) Deprecated, for removal: This API element is subject to removal in a future version.static void
-
Constructor Details
-
RequestEMManager
public RequestEMManager()
-
-
Method Details
-
getEntityManager
public static javax.persistence.EntityManager getEntityManager() -
closeEntityManager
public static void closeEntityManager() -
beginTransaction
public static void beginTransaction() -
rollback
public static void rollback() -
commit
public static void commit() -
isTransactionActive
public static boolean isTransactionActive() -
setDefaultUserContext
-
getDefaultUserContext
-
isEntityDetached
public static <I extends Number & Comparable<I>> boolean isEntityDetached(de.xima.cmn.dao.interfaces.IEntity<I> entity) -
isDbRunning
Deprecated.This method is deprecated and should not be used to check the database running status. The database running status is determined by the health provider and cannot be set manually.- Returns:
trueif the database is running,falseotherwise.
-
setDbRunning
Deprecated, for removal: This API element is subject to removal in a future version.This method is deprecated and should not be used to set the database running status. The database running status is determined by the health provider and cannot be set manually.- Parameters:
dbRunning- the new database running status (not used)
-