public class EntityManagerFactoryCreator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CATALINA_HOME
The Constant CATALINA_HOME.
|
static org.slf4j.Logger |
logger
The logger.
|
static String |
PERSISTENCE_TRAINING_COURSES
The Constant PERSISTENCE_DB_GCUBE_RELEASES.
|
static String |
PROPERTY_CATALINA_HOME
The Constant PROPERTY_CATALINA_HOME.
|
static String |
TRAINING_COURSES_DB
The Constant TRAINING_COURSES_DB.
|
Constructor and Description |
---|
EntityManagerFactoryCreator() |
Modifier and Type | Method and Description |
---|---|
static ServerParameters |
getDBParameters(String scope)
Gets the DB parameters.
|
static javax.persistence.EntityManagerFactory |
getEntityManagerFactory(String scope)
Gets the entity manager factory.
|
static String |
getTomcatFolder()
Gets the tomcat folder.
|
static javax.persistence.EntityManagerFactory |
instanceFactoryCreator(String scope)
Instance factory creator.
|
static javax.persistence.EntityManagerFactory |
instanceFactoryTestMode(String scope)
USE ONLY IN TEST MODE.
|
public static final String TRAINING_COURSES_DB
public static final String PERSISTENCE_TRAINING_COURSES
public static final String CATALINA_HOME
public static final String PROPERTY_CATALINA_HOME
public static org.slf4j.Logger logger
public static javax.persistence.EntityManagerFactory instanceFactoryCreator(String scope) throws Exception
scope
- the scopeException
- the exceptionpublic static javax.persistence.EntityManagerFactory instanceFactoryTestMode(String scope) throws Exception
scope
- the scopeException
- the exceptionpublic static javax.persistence.EntityManagerFactory getEntityManagerFactory(String scope) throws Exception
scope
- the scopeException
- the exceptionpublic static String getTomcatFolder()
public static ServerParameters getDBParameters(String scope) throws Exception
Exception
Copyright © 2019. All Rights Reserved.