Class EMProvider


  • @Deprecated(since="8.5.0",
                forRemoval=true)
    public class EMProvider
    extends Object
    Deprecated, for removal: This API element is subject to removal in a future version.
    The system emf is now managed by SystemPersistenceManager. This class will be removed in future releases.
    Because there is no possibility to do dependency injections for the Entity Manager without a container or dependency injection framework use the way to access the Entity Manager "application managed"
    • Constructor Detail

      • EMProvider

        public EMProvider()
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • registerCloseListener

        public static void registerCloseListener​(IBaseNotificationListener listener)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getCloseListeners

        public static Set<IBaseNotificationListener> getCloseListeners()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getInitListeners

        public static Set<IBaseNotificationListener> getInitListeners()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • registerOpenListener

        public static void registerOpenListener​(IBaseNotificationListener listener)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getOpenListeners

        public static Set<IBaseNotificationListener> getOpenListeners()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • fireCloseListener

        public static void fireCloseListener()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • fireInitListener

        public static void fireInitListener()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • fireOpenListener

        public static void fireOpenListener()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • createNewEntityManager

        public static javax.persistence.EntityManager createNewEntityManager()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • closeEntityManager

        public static void closeEntityManager​(javax.persistence.EntityManager em)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getCurrentDBTyp

        public static EDatenbankTyp getCurrentDBTyp()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getEMFactory

        public static IEMFactory getEMFactory()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • initialize

        public static void initialize()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • openEMF

        @Deprecated
        public static void openEMF​(boolean suppressListener)
        Deprecated.
        use initialize() instead. EMFs are managed by the DataSourceManager.
        Parameters:
        suppressListener - if true, the open listeners will not be called
      • closeEMF

        public static Boolean closeEMF()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • closeEMF

        public static Boolean closeEMF​(boolean suppressListener)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • reloadFactory

        public static void reloadFactory​(boolean suppressOpenListener,
                                         boolean suppressCloseListener)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • reloadFactory

        public static void reloadFactory​(boolean supressAllListener)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • reloadFactory

        public static void reloadFactory()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • shutdown

        public static void shutdown()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Shuts down the entity manager provider, closing all entity managers and firing close listeners.
      • testConnection

        public static boolean testConnection()
        Deprecated.
        Returns:
        boolean if the database connection is valid