public class HibernateConnectionSourceFactory extends AbstractHibernateConnectionSourceFactory implements org.springframework.context.ApplicationContextAware, org.springframework.context.MessageSourceAware
Constructs org.hibernate.SessionFactory instances from a HibernateMappingContext
Modifiers | Name | Description |
---|---|---|
protected HibernateEventListeners |
hibernateEventListeners |
|
protected org.hibernate.Interceptor |
interceptor |
|
protected HibernateMappingContext |
mappingContext |
|
protected org.springframework.context.MessageSource |
messageSource |
|
protected org.hibernate.boot.spi.MetadataContributor |
metadataContributor |
|
protected java.lang.Class[] |
persistentClasses |
Fields inherited from class | Fields |
---|---|
class AbstractHibernateConnectionSourceFactory |
dataSourceConnectionSourceFactory |
Constructor and description |
---|
HibernateConnectionSourceFactory
(java.lang.Class classes) |
Type Params | Return Type | Name and description |
---|---|---|
|
public HibernateMappingContextConfiguration |
buildConfiguration(java.lang.String name, ConnectionSource<javax.sql.DataSource, DataSourceSettings> dataSourceConnectionSource, HibernateConnectionSourceSettings settings) |
|
public ConnectionSource<org.hibernate.SessionFactory, HibernateConnectionSourceSettings> |
create(java.lang.String name, ConnectionSource<javax.sql.DataSource, DataSourceSettings> dataSourceConnectionSource, HibernateConnectionSourceSettings settings) |
|
public HibernateMappingContext |
getMappingContext() |
|
public java.lang.Class[] |
getPersistentClasses() |
|
public void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
|
public void |
setHibernateEventListeners(HibernateEventListeners hibernateEventListeners) |
|
public void |
setInterceptor(org.hibernate.Interceptor interceptor) |
|
public void |
setMessageSource(org.springframework.context.MessageSource messageSource) |
|
public void |
setMetadataContributor(org.hibernate.boot.spi.MetadataContributor metadataContributor) |
Methods inherited from class | Name |
---|---|
class AbstractHibernateConnectionSourceFactory |
buildRuntimeSettings, buildSettings, create, create, getConnectionSourcesConfigurationKey, setDataSourceConnectionSourceFactory |
class AbstractConnectionSourceFactory |
buildRuntimeSettings, buildSettings, create, create, create, createRuntime, setCustomTypes, setTenantResolver |