public class EMProvider extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DB_HEALTHCECK_NAME |
static com.codahale.metrics.health.HealthCheckRegistry |
DB_HEALTHCHECK_REGISTRY |
Constructor and Description |
---|
EMProvider() |
Modifier and Type | Method and Description |
---|---|
static Boolean |
closeEMF() |
static Boolean |
closeEMF(boolean supressListener) |
static void |
closeEntityManager(javax.persistence.EntityManager em) |
static javax.persistence.EntityManager |
createNewEntityManager() |
static void |
fireCloseListener() |
static void |
fireInitListener() |
static void |
fireOpenListener() |
static Set<IBaseNotificationListener> |
getCloseListeners() |
static Connection |
getConnection() |
static EDatenbankTyp |
getCurrentDBTyp() |
static DataSource |
getDatasource() |
static IEMFactory |
getEMFactory() |
static Set<IBaseNotificationListener> |
getInitListeners() |
static Set<IBaseNotificationListener> |
getOpenListeners() |
static void |
initialize() |
static void |
openEMF() |
static void |
openEMF(boolean supressListener) |
static void |
registerCloseListener(IBaseNotificationListener listener) |
static void |
registerInitListener(IBaseNotificationListener listener) |
static void |
registerOpenListener(IBaseNotificationListener listener) |
static void |
reloadFactory() |
static void |
reloadFactory(boolean supressAllListener) |
static void |
reloadFactory(boolean supressOpenListener,
boolean supressCloseListener) |
static void |
setEMFactory(IEMFactory emFactory) |
static void |
shutdown() |
static boolean |
testConnection() |
public static String DB_HEALTHCECK_NAME
public static com.codahale.metrics.health.HealthCheckRegistry DB_HEALTHCHECK_REGISTRY
public static javax.persistence.EntityManager createNewEntityManager()
public static Boolean closeEMF()
public static Boolean closeEMF(boolean supressListener)
public static void openEMF()
public static void openEMF(boolean supressListener)
public static void closeEntityManager(javax.persistence.EntityManager em)
public static void initialize()
public static void shutdown()
public static void reloadFactory(boolean supressOpenListener, boolean supressCloseListener)
public static void reloadFactory(boolean supressAllListener)
public static void reloadFactory()
public static EDatenbankTyp getCurrentDBTyp()
public static IEMFactory getEMFactory()
public static void setEMFactory(IEMFactory emFactory)
public static Set<IBaseNotificationListener> getOpenListeners()
public static void registerOpenListener(IBaseNotificationListener listener)
public static Set<IBaseNotificationListener> getCloseListeners()
public static void registerCloseListener(IBaseNotificationListener listener)
public static Set<IBaseNotificationListener> getInitListeners()
public static void registerInitListener(IBaseNotificationListener listener)
public static void fireOpenListener()
public static void fireInitListener()
public static void fireCloseListener()
public static DataSource getDatasource()
public static Connection getConnection() throws SQLException
SQLException
public static boolean testConnection()
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.