Class that handles the details of initializing GORM for Hibernate
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
DATA_SOURCES |
|
static java.lang.String |
DEFAULT_DATA_SOURCE_NAME |
|
static java.lang.String |
SESSION_FACTORY_BEAN_NAME |
|
static java.lang.String |
TEST_DB_URL |
Fields inherited from class | Fields |
---|---|
class AbstractDatastoreInitializer |
ENTITY_CLASS_RESOURCE_PATTERN, OSIV_CLASS_NAME, TRANSACTION_MANAGER_BEAN, classLoader, secondaryDatastore |
Type | Name and description |
---|---|
java.util.Set<java.lang.String> |
dataSources |
java.lang.String |
defaultDataSourceBeanName |
java.lang.String |
defaultSessionFactoryBeanName |
boolean |
enableReload |
boolean |
grailsPlugin |
Constructor and description |
---|
HibernateDatastoreSpringInitializer
(org.springframework.core.env.PropertyResolver configuration, java.util.Collection<java.lang.Class> persistentClasses) |
HibernateDatastoreSpringInitializer
(org.springframework.core.env.PropertyResolver configuration, java.lang.Class... persistentClasses) |
HibernateDatastoreSpringInitializer
(org.springframework.core.env.PropertyResolver configuration, java.lang.String... packages) |
HibernateDatastoreSpringInitializer
(java.util.Map configuration, java.lang.Class... persistentClasses) |
HibernateDatastoreSpringInitializer
(java.util.Map configuration, java.util.Collection<java.lang.Class> persistentClasses) |
Type | Name and description |
---|---|
org.springframework.context.ApplicationContext |
configure() Configures an in-memory test data source, don't use in production |
void |
configureDataSources(org.springframework.core.env.PropertyResolver config) |
org.springframework.context.ApplicationContext |
configureForDataSource(javax.sql.DataSource dataSource) |
protected org.springframework.context.support.GenericApplicationContext |
createApplicationContext() |
groovy.lang.Closure |
getBeanDefinitions(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry) |
protected java.lang.Class<AbstractDatastorePersistenceContextInterceptor> |
getPersistenceInterceptorClass() |
protected java.lang.String |
getTestDbUrl() |
Methods inherited from class | Name |
---|---|
class AbstractDatastoreInitializer |
collectMappedClasses, configure, configureForBeanDefinitionRegistry, containsRegisteredBean, findEventPublisher, findMessageSource, getAdditionalBeansConfiguration, getBeanDefinitions, getCommonConfiguration, getGrailsApplicationClass, getGrailsValidatorClass, getPersistenceInterceptorClass, isGrailsPresent, isMappedClass, scanForPersistentClasses, setResourceLoader, setSecondaryDatastore |
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() |
Configures an in-memory test data source, don't use in production