Package de.xima.fc.jpa.manager
Class EMProvider
java.lang.Object
de.xima.fc.jpa.manager.EMProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringstatic com.codahale.metrics.health.HealthCheckRegistry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleancloseEMF()static BooleancloseEMF(boolean supressListener) static voidcloseEntityManager(javax.persistence.EntityManager em) static javax.persistence.EntityManagerstatic voidstatic voidstatic voidstatic Set<IBaseNotificationListener>static Connectionstatic EDatenbankTypstatic DataSourcestatic IEMFactorystatic Set<IBaseNotificationListener>static Set<IBaseNotificationListener>static voidstatic voidopenEMF()static voidopenEMF(boolean supressListener) static voidstatic voidstatic voidstatic voidstatic voidreloadFactory(boolean supressAllListener) static voidreloadFactory(boolean supressOpenListener, boolean supressCloseListener) static voidsetEMFactory(IEMFactory emFactory) static voidshutdown()static boolean
-
Field Details
-
DB_HEALTHCECK_NAME
-
DB_HEALTHCHECK_REGISTRY
public static com.codahale.metrics.health.HealthCheckRegistry DB_HEALTHCHECK_REGISTRY
-
-
Constructor Details
-
EMProvider
public EMProvider()
-
-
Method Details
-
createNewEntityManager
public static javax.persistence.EntityManager createNewEntityManager() -
closeEMF
-
closeEMF
-
openEMF
public static void openEMF() -
openEMF
public static void openEMF(boolean supressListener) -
closeEntityManager
public static void closeEntityManager(javax.persistence.EntityManager em) -
initialize
public static void initialize() -
shutdown
public static void shutdown() -
reloadFactory
public static void reloadFactory(boolean supressOpenListener, boolean supressCloseListener) -
reloadFactory
public static void reloadFactory(boolean supressAllListener) -
reloadFactory
public static void reloadFactory() -
getCurrentDBTyp
-
getEMFactory
-
setEMFactory
-
getOpenListeners
-
registerOpenListener
-
getCloseListeners
-
registerCloseListener
-
getInitListeners
-
registerInitListener
-
fireOpenListener
public static void fireOpenListener() -
fireInitListener
public static void fireInitListener() -
fireCloseListener
public static void fireCloseListener() -
getDatasource
-
getConnection
- Throws:
SQLException
-
testConnection
public static boolean testConnection()
-