Class EMProvider
java.lang.Object
de.xima.fc.jpa.manager.EMProvider
Deprecated, for removal: This API element is subject to removal in a future version.
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
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.EntityManagerDeprecated, for removal: This API element is subject to removal in a future version.static voidDeprecated, for removal: This API element is subject to removal in a future version.static voidDeprecated, for removal: This API element is subject to removal in a future version.static voidDeprecated, for removal: This API element is subject to removal in a future version.static Set<IBaseNotificationListener> Deprecated, for removal: This API element is subject to removal in a future version.static ConnectionDeprecated, for removal: This API element is subject to removal in a future version.static EDatenbankTypDeprecated, for removal: This API element is subject to removal in a future version.static DataSourceDeprecated, for removal: This API element is subject to removal in a future version.static IEMFactoryDeprecated, for removal: This API element is subject to removal in a future version.static Set<IBaseNotificationListener> Deprecated, for removal: This API element is subject to removal in a future version.static Set<IBaseNotificationListener> Deprecated, for removal: This API element is subject to removal in a future version.static voidDeprecated, 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 voidDeprecated, for removal: This API element is subject to removal in a future version.static voidDeprecated.static voidDeprecated, for removal: This API element is subject to removal in a future version.static voidDeprecated, 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 booleanDeprecated.useSystemPersistenceHealthProviderinstead
-
Constructor Details
-
EMProvider
public EMProvider()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
registerCloseListener
Deprecated, for removal: This API element is subject to removal in a future version. -
getCloseListeners
Deprecated, for removal: This API element is subject to removal in a future version. -
registerInitListener
Deprecated. -
getInitListeners
Deprecated, for removal: This API element is subject to removal in a future version. -
registerOpenListener
Deprecated, for removal: This API element is subject to removal in a future version. -
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
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
SQLExceptionFcPersistenceException
-
getCurrentDBTyp
Deprecated, for removal: This API element is subject to removal in a future version. -
getDatasource
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
FcPersistenceException
-
getEMFactory
Deprecated, for removal: This API element is subject to removal in a future version. -
setEMFactory
Deprecated. -
initialize
public static void initialize()Deprecated, for removal: This API element is subject to removal in a future version. -
openEMF
Deprecated.useinitialize()instead. EMFs are managed by theDataSourceManager. -
openEMF
Deprecated.useinitialize()instead. EMFs are managed by theDataSourceManager.- Parameters:
suppressListener- if true, the open listeners will not be called
-
closeEMF
Deprecated, for removal: This API element is subject to removal in a future version. -
closeEMF
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
-
SystemPersistenceManager. This class will be removed in future releases.