public abstract class AbstractHibernateConnectionSourceFactory extends org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory
Constructs a Hibernate org.hibernate.SessionFactory
Modifiers | Name | Description |
---|---|---|
protected org.grails.datastore.gorm.jdbc.connections.DataSourceConnectionSourceFactory |
dataSourceConnectionSourceFactory |
Fields inherited from class | Fields |
---|---|
class org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory |
PREFIX, SETTING_AUTO_FLUSH, SETTING_FLUSH_MODE, SETTING_FAIL_ON_ERROR, SETTING_MARK_DIRTY, SETTING_DEFAULT_MAPPING, SETTING_DEFAULT_CONSTRAINTS, SETTING_CUSTOM_TYPES, SETTING_MULTI_TENANCY_MODE, SETTING_MULTI_TENANT_RESOLVER_CLASS, SETTING_MULTI_TENANT_RESOLVER, SETTING_DATASOURCES, SETTING_DATASOURCE, SETTING_DB_CREATE, SETTING_AUTO_TIMESTAMP_INSERT_OVERWRITE |
Type Params | Return Type | Name and description |
---|---|---|
<F extends ConnectionSourceSettings> |
public HibernateConnectionSourceSettings |
buildRuntimeSettings(java.lang.String name, org.springframework.core.env.PropertyResolver configuration, F fallbackSettings) |
<F extends ConnectionSourceSettings> |
protected HibernateConnectionSourceSettings |
buildSettings(java.lang.String name, org.springframework.core.env.PropertyResolver configuration, F fallbackSettings, boolean isDefaultDataSource) |
|
public org.grails.datastore.mapping.core.connections.ConnectionSource<org.hibernate.SessionFactory, HibernateConnectionSourceSettings> |
create(java.lang.String name, HibernateConnectionSourceSettings settings) |
|
public abstract org.grails.datastore.mapping.core.connections.ConnectionSource<org.hibernate.SessionFactory, HibernateConnectionSourceSettings> |
create(java.lang.String name, org.grails.datastore.mapping.core.connections.ConnectionSource<javax.sql.DataSource, org.grails.datastore.gorm.jdbc.connections.DataSourceSettings> dataSourceConnectionSource, HibernateConnectionSourceSettings settings) Creates a ConnectionSource for the given DataSource |
|
public java.io.Serializable |
getConnectionSourcesConfigurationKey() |
|
public void |
setDataSourceConnectionSourceFactory(org.grails.datastore.gorm.jdbc.connections.DataSourceConnectionSourceFactory dataSourceConnectionSourceFactory) Sets the factory for creating SQL javax.sql.DataSource connection sources |
Methods inherited from class | Name |
---|---|
class org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory |
org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory#setTenantResolver(org.grails.datastore.mapping.multitenancy.TenantResolver), org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory#setCustomTypes(java.util.List), org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory#buildRuntimeSettings(java.lang.String, org.springframework.core.env.PropertyResolver, org.grails.datastore.mapping.core.connections.ConnectionSourceSettings), org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory#createRuntime(java.lang.String, org.springframework.core.env.PropertyResolver, org.grails.datastore.mapping.core.connections.ConnectionSourceSettings), org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory#create(java.lang.String, org.springframework.core.env.PropertyResolver, org.grails.datastore.mapping.core.connections.ConnectionSource), org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory#create(java.lang.String, org.springframework.core.env.PropertyResolver), org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory#create(java.lang.String, org.springframework.core.env.PropertyResolver, org.grails.datastore.mapping.core.connections.ConnectionSourceSettings), org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory#wait(long, int), org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory#wait(), org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory#wait(long), org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory#equals(java.lang.Object), org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory#toString(), org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory#hashCode(), org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory#getClass(), org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory#notify(), org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory#notifyAll(), org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory#getConnectionSourcesConfigurationKey(), org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory#create(java.lang.String, org.grails.datastore.mapping.core.connections.ConnectionSourceSettings) |
Creates a ConnectionSource for the given DataSource
name
- The namedataSourceConnectionSource
- The data source connection sourcesettings
- The settingsSets the factory for creating SQL javax.sql.DataSource connection sources