Class EMProvider

java.lang.Object
de.xima.fc.jpa.manager.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 Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static Boolean
    closeEMF(boolean suppressListener)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    closeEntityManager(javax.persistence.EntityManager em)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static javax.persistence.EntityManager
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static Connection
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static DataSource
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static IEMFactory
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    Deprecated.
    use initialize() instead.
    static void
    openEMF(boolean suppressListener)
    Deprecated.
    use initialize() instead.
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    Deprecated.
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    reloadFactory(boolean supressAllListener)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    reloadFactory(boolean suppressOpenListener, boolean suppressCloseListener)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    Deprecated.
    static void
    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.
    static boolean
    Deprecated.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EMProvider

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

    • 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.
    • registerInitListener

      @Deprecated public static void registerInitListener(IBaseNotificationListener listener)
      Deprecated.
    • 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.
    • getConnection

      public static Connection getConnection() throws SQLException, FcPersistenceException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      SQLException
      FcPersistenceException
    • getCurrentDBTyp

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

      public static DataSource getDatasource() throws FcPersistenceException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      FcPersistenceException
    • getEMFactory

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

      @Deprecated public static void setEMFactory(IEMFactory emFactory)
      Deprecated.
    • 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()
      Deprecated.
      use initialize() instead. EMFs are managed by the DataSourceManager.
    • 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