public class TopiaContextFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_BYTECODE_PROVIDER |
static String |
CONFIG_CONNECTION_PROVIDER |
static String |
CONFIG_CURRENT_SESSION_CONTEXT_CLASS |
static String |
CONFIG_DEFAULT_SCHEMA |
static String |
CONFIG_DIALECT |
static String |
CONFIG_DRIVER |
static String |
CONFIG_FORMAT_SQL |
static String |
CONFIG_GENERATE_STATISTICS |
static String |
CONFIG_HBM2DDL_AUTO |
static String |
CONFIG_PASS |
static String |
CONFIG_PERSISTENCE_CLASSES |
static String |
CONFIG_PERSISTENCE_DIRECTORIES |
static String |
CONFIG_PERSISTENCE_PROPERTIES_FILE |
static String |
CONFIG_POOL_SIZE |
static String |
CONFIG_SHOW_SQL |
static String |
CONFIG_URL |
static String |
CONFIG_USER |
protected static Map<Properties,TopiaContext> |
contextCache
Cache contenant tous les contexts deja créé.
|
Constructor and Description |
---|
TopiaContextFactory() |
Modifier and Type | Method and Description |
---|---|
static TopiaContext |
getContext()
Utilise par defaut le fichier de propriete TopiaContextImpl.properties
|
static TopiaContext |
getContext(Properties config)
Methode static permettant de recuperer un context.
|
static List<String> |
getContextOpened()
Permet de connaitre la liste des contexts encore en memoire, utile pour
du debuggage.
|
static void |
removeContext(TopiaContext context)
Used when TopiaContext root is closed
|
protected static Map<Properties,TopiaContext> contextCache
public static final String CONFIG_DEFAULT_SCHEMA
public static final String CONFIG_USER
public static final String CONFIG_PASS
public static final String CONFIG_DRIVER
public static final String CONFIG_DIALECT
public static final String CONFIG_CONNECTION_PROVIDER
public static final String CONFIG_BYTECODE_PROVIDER
public static final String CONFIG_CURRENT_SESSION_CONTEXT_CLASS
public static final String CONFIG_GENERATE_STATISTICS
public static final String CONFIG_FORMAT_SQL
public static final String CONFIG_HBM2DDL_AUTO
public static final String CONFIG_POOL_SIZE
public static final String CONFIG_SHOW_SQL
public static final String CONFIG_URL
public static final String CONFIG_PERSISTENCE_DIRECTORIES
public static final String CONFIG_PERSISTENCE_CLASSES
public static final String CONFIG_PERSISTENCE_PROPERTIES_FILE
public static List<String> getContextOpened()
public static void removeContext(TopiaContext context)
context
- closedpublic static TopiaContext getContext() throws TopiaNotFoundException
TopiaNotFoundException
- Si le fichier de configuration par defaut
n'est pas retrouvé.public static TopiaContext getContext(Properties config) throws TopiaNotFoundException
config
- the configuration of the contextTopiaNotFoundException
- if any pbCopyright © 2004–2022 Code Lutin. All rights reserved.