public class HibernateConfiguration extends Object implements EntityManagerFactoryProvider
Modifier and Type | Class and Description |
---|---|
static class |
HibernateConfiguration.NuxeoHibernateTransaction
Hibernate transaction that will register a synchronization that runs
before the one from ConnectionHelper in single-datasource mode.
|
static class |
HibernateConfiguration.NuxeoTransactionFactory
Don't close the connection aggressively after each statement.
|
static class |
HibernateConfiguration.NuxeoTransactionManagerLookup
Hibernate Transaction Manager Lookup that uses our framework.
|
Modifier and Type | Field and Description |
---|---|
List<Class<?>> |
annotedClasses |
Properties |
hibernateProperties |
static String |
JTA |
String |
name |
static String |
RESOURCE_LOCAL |
static String |
TXTYPE_PROPERTY_NAME |
Constructor and Description |
---|
HibernateConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotedClass(Class<?> annotedClass) |
EntityManagerFactory |
getFactory() |
EntityManagerFactory |
getFactory(String txType) |
static String |
getTxType() |
static HibernateConfiguration |
load(URL location) |
void |
merge(HibernateConfiguration other) |
void |
removeAnnotedClass(Class<?> annotedClass) |
void |
setDatasource(String name) |
org.hibernate.ejb.Ejb3Configuration |
setupConfiguration() |
org.hibernate.ejb.Ejb3Configuration |
setupConfiguration(Map<String,String> properties) |
public static final String RESOURCE_LOCAL
public static final String JTA
public static final String TXTYPE_PROPERTY_NAME
public String name
public final Properties hibernateProperties
public void setDatasource(String name)
public void addAnnotedClass(Class<?> annotedClass)
public void removeAnnotedClass(Class<?> annotedClass)
public org.hibernate.ejb.Ejb3Configuration setupConfiguration()
public org.hibernate.ejb.Ejb3Configuration setupConfiguration(Map<String,String> properties)
public EntityManagerFactory getFactory(String txType)
getFactory
in interface EntityManagerFactoryProvider
public EntityManagerFactory getFactory()
getFactory
in interface EntityManagerFactoryProvider
public static String getTxType()
public static HibernateConfiguration load(URL location)
public void merge(HibernateConfiguration other)
Copyright © 2013 Nuxeo SA. All Rights Reserved.