Package de.xima.fc.jpa.manager
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 bySystemPersistenceManager. 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 EMProvider()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static BooleancloseEMF()Deprecated, for removal: This API element is subject to removal in a future version.static BooleancloseEMF(boolean suppressListener)Deprecated, for removal: This API element is subject to removal in a future version.static voidcloseEntityManager(javax.persistence.EntityManager em)Deprecated, for removal: This API element is subject to removal in a future version.static javax.persistence.EntityManagercreateNewEntityManager()Deprecated, for removal: This API element is subject to removal in a future version.static voidfireCloseListener()Deprecated, for removal: This API element is subject to removal in a future version.static voidfireInitListener()Deprecated, for removal: This API element is subject to removal in a future version.static voidfireOpenListener()Deprecated, for removal: This API element is subject to removal in a future version.static Set<IBaseNotificationListener>getCloseListeners()Deprecated, for removal: This API element is subject to removal in a future version.static ConnectiongetConnection()Deprecated, for removal: This API element is subject to removal in a future version.static EDatenbankTypgetCurrentDBTyp()Deprecated, for removal: This API element is subject to removal in a future version.static DataSourcegetDatasource()Deprecated, for removal: This API element is subject to removal in a future version.static IEMFactorygetEMFactory()Deprecated, for removal: This API element is subject to removal in a future version.static Set<IBaseNotificationListener>getInitListeners()Deprecated, for removal: This API element is subject to removal in a future version.static Set<IBaseNotificationListener>getOpenListeners()Deprecated, for removal: This API element is subject to removal in a future version.static voidinitialize()Deprecated, for removal: This API element is subject to removal in a future version.static voidopenEMF()Deprecated.useinitialize()instead.static voidopenEMF(boolean suppressListener)Deprecated.useinitialize()instead.static voidregisterCloseListener(IBaseNotificationListener listener)Deprecated, for removal: This API element is subject to removal in a future version.static voidregisterInitListener(IBaseNotificationListener listener)Deprecated.static voidregisterOpenListener(IBaseNotificationListener listener)Deprecated, for removal: This API element is subject to removal in a future version.static voidreloadFactory()Deprecated, for removal: This API element is subject to removal in a future version.static voidreloadFactory(boolean supressAllListener)Deprecated, for removal: This API element is subject to removal in a future version.static voidreloadFactory(boolean suppressOpenListener, boolean suppressCloseListener)Deprecated, for removal: This API element is subject to removal in a future version.static voidsetEMFactory(IEMFactory emFactory)Deprecated.static voidshutdown()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 booleantestConnection()Deprecated.useSystemPersistenceHealthProviderinstead
-
-
-
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.
-
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:
SQLExceptionFcPersistenceException
-
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.useinitialize()instead. EMFs are managed by theDataSourceManager.
-
openEMF
@Deprecated public static void openEMF(boolean suppressListener)
Deprecated.useinitialize()instead. EMFs are managed by theDataSourceManager.- 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.useSystemPersistenceHealthProviderinstead- Returns:
- boolean if the database connection is valid
-
-