Class RequestEMManager


  • @ApplicationScoped
    public class RequestEMManager
    extends Object
    • Constructor Detail

      • RequestEMManager

        public RequestEMManager()
    • Method Detail

      • 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

        public static void setDefaultUserContext​(UserContext uc)
      • getDefaultUserContext

        public static UserContext getDefaultUserContext()
      • isEntityDetached

        public static <I extends Number & Comparable<I>> boolean isEntityDetached​(de.xima.cmn.dao.interfaces.IEntity<I> entity)
      • isDbRunning

        @Deprecated
        public static boolean 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:
        true if the database is running, false otherwise.
      • setDbRunning

        @Deprecated(forRemoval=true)
        public static void setDbRunning​(boolean dbRunning)
        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)