public class HibernateDatastore
extends org.grails.datastore.mapping.core.AbstractDatastore
implements org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
HibernateDatastore(org.grails.datastore.mapping.model.MappingContext mappingContext,
org.hibernate.SessionFactory sessionFactory,
groovy.util.ConfigObject config) |
| Modifier and Type | Method and Description |
|---|---|
protected org.grails.datastore.mapping.core.Session |
createSession(java.util.Map<java.lang.String,java.lang.String> connectionDetails) |
EventTriggeringInterceptor |
getEventTriggeringInterceptor() |
org.hibernate.SessionFactory |
getSessionFactory() |
protected boolean |
registerValidationListener() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
connect, connect, destroy, getApplicationContext, getApplicationEventPublisher, getCurrentSession, getMappingContext, getObjectErrors, getValidationErrorsMap, getValidationSkipMap, hasCurrentSession, initializeConverters, isIndexed, isSchemaless, retrieveSession, retrieveSession, setApplicationContext, setConnectionDetails, setObjectErrors, setSkipValidation, skipValidationpublic HibernateDatastore(org.grails.datastore.mapping.model.MappingContext mappingContext,
org.hibernate.SessionFactory sessionFactory,
groovy.util.ConfigObject config)
public org.hibernate.SessionFactory getSessionFactory()
SessionFactory being used by this datastore instanceprotected org.grails.datastore.mapping.core.Session createSession(java.util.Map<java.lang.String,java.lang.String> connectionDetails)
createSession in class org.grails.datastore.mapping.core.AbstractDatastorepublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionprotected boolean registerValidationListener()
registerValidationListener in class org.grails.datastore.mapping.core.AbstractDatastorepublic EventTriggeringInterceptor getEventTriggeringInterceptor()