public abstract class AbstractHibernateDatastore extends AbstractDatastore
Datastore implementation that uses a Hibernate SessionFactory underneath.
| Modifiers | Name | Description |
|---|---|---|
enum |
AbstractHibernateDatastore.FlushMode |
We use a separate enum here because the classes differ between Hibernate 3 and 4 |
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
CONFIG_PROPERTY_AUTO_FLUSH |
|
static java.lang.String |
CONFIG_PROPERTY_CACHE_QUERIES |
|
static java.lang.String |
CONFIG_PROPERTY_DEFAULT_MAPPING |
|
static java.lang.String |
CONFIG_PROPERTY_FAIL_ON_ERROR |
|
static java.lang.String |
CONFIG_PROPERTY_FLUSH_MODE |
|
static java.lang.String |
CONFIG_PROPERTY_OSIV_READONLY |
|
static java.lang.String |
CONFIG_PROPERTY_PASS_READONLY_TO_HIBERNATE |
|
protected AbstractEventTriggeringInterceptor |
eventTriggeringInterceptor |
|
protected org.hibernate.SessionFactory |
sessionFactory |
| Fields inherited from class | Fields |
|---|---|
class AbstractDatastore |
LOG, cacheAdapterRepository, connectionDetails, mappingContext |
| Constructor and description |
|---|
protected AbstractHibernateDatastore
(MappingContext mappingContext, org.hibernate.SessionFactory sessionFactory, org.springframework.core.env.PropertyResolver config, org.springframework.context.ApplicationContext applicationContext, java.lang.String dataSourceName) |
AbstractHibernateDatastore
(MappingContext mappingContext, org.hibernate.SessionFactory sessionFactory, org.springframework.core.env.PropertyResolver config) |
| Type | Name and description |
|---|---|
void |
destroy() |
java.lang.String |
getDataSourceName()@return The data source name being used |
int |
getDefaultFlushMode() |
AbstractEventTriggeringInterceptor |
getEventTriggeringInterceptor() |
IHibernateTemplate |
getHibernateTemplate(int flushMode)Obtains a hibernate template for the given flush mode |
IHibernateTemplate |
getHibernateTemplate() |
org.hibernate.SessionFactory |
getSessionFactory()@return The Hibernate org.hibernate.SessionFactory being used by this datastore instance |
boolean |
isAutoFlush() |
boolean |
isCacheQueries() |
boolean |
isFailOnError() |
boolean |
isOsivReadOnly() |
boolean |
isPassReadOnlyToHibernate() |
org.hibernate.Session |
openSession()@return Opens a session |
void |
withFlushMode(AbstractHibernateDatastore.FlushMode flushMode, java.util.concurrent.Callable<java.lang.Boolean> callable)Execute the given operation with the given flush mode |
| Methods inherited from class | Name |
|---|---|
class AbstractDatastore |
connect, connect, connectStateless, createSession, createStatelessSession, destroy, getApplicationContext, getApplicationEventPublisher, getCurrentSession, getMappingContext, hasCurrentSession, initializeConverters, isIndexed, isSchemaless, mapToPropertyResolver, retrieveSession, retrieveSession, setApplicationContext |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Obtains a hibernate template for the given flush mode
flushMode - The flush mode
Execute the given operation with the given flush mode
callable - The callable