public class LocalXSessionFactoryBean extends org.springframework.orm.hibernate4.HibernateExceptionTranslator implements org.springframework.beans.factory.FactoryBean<XSessionFactory>, org.springframework.context.ResourceLoaderAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
| Constructor and Description |
|---|
LocalXSessionFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected XSessionFactory |
buildSessionFactory(LocalXSessionFactoryBuilder sfb) |
void |
destroy() |
Configuration |
getConfiguration() |
Properties |
getHibernateProperties() |
XSessionFactory |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setAnnotatedClasses(Class<?>[] annotatedClasses) |
void |
setAnnotatedPackages(String[] annotatedPackages) |
void |
setCacheableMappingLocations(org.springframework.core.io.Resource[] cacheableMappingLocations) |
void |
setConfigLocation(org.springframework.core.io.Resource configLocation) |
void |
setConfigLocations(org.springframework.core.io.Resource[] configLocations) |
void |
setDataSource(DataSource dataSource) |
void |
setEntityInterceptor(org.hibernate.Interceptor entityInterceptor) |
void |
setHibernateProperties(Properties hibernateProperties) |
void |
setJtaTransactionManager(Object jtaTransactionManager) |
void |
setMappingDirectoryLocations(org.springframework.core.io.Resource[] mappingDirectoryLocations) |
void |
setMappingJarLocations(org.springframework.core.io.Resource[] mappingJarLocations) |
void |
setMappingLocations(org.springframework.core.io.Resource[] mappingLocations) |
void |
setMappingResources(String[] mappingResources) |
void |
setNamingStrategy(org.hibernate.cfg.NamingStrategy namingStrategy) |
void |
setPackagesToScan(String... packagesToScan) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
public void setDataSource(DataSource dataSource)
public void setConfigLocation(org.springframework.core.io.Resource configLocation)
public void setConfigLocations(org.springframework.core.io.Resource[] configLocations)
public void setMappingResources(String[] mappingResources)
public void setMappingLocations(org.springframework.core.io.Resource[] mappingLocations)
public void setCacheableMappingLocations(org.springframework.core.io.Resource[] cacheableMappingLocations)
public void setMappingJarLocations(org.springframework.core.io.Resource[] mappingJarLocations)
public void setMappingDirectoryLocations(org.springframework.core.io.Resource[] mappingDirectoryLocations)
public void setEntityInterceptor(org.hibernate.Interceptor entityInterceptor)
public void setNamingStrategy(org.hibernate.cfg.NamingStrategy namingStrategy)
public void setHibernateProperties(Properties hibernateProperties)
public Properties getHibernateProperties()
public void setAnnotatedClasses(Class<?>[] annotatedClasses)
public void setAnnotatedPackages(String[] annotatedPackages)
public void setPackagesToScan(String... packagesToScan)
public void setJtaTransactionManager(Object jtaTransactionManager)
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader in interface org.springframework.context.ResourceLoaderAwarepublic void afterPropertiesSet()
throws IOException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanIOExceptionprotected XSessionFactory buildSessionFactory(LocalXSessionFactoryBuilder sfb)
public final Configuration getConfiguration()
public XSessionFactory getObject()
getObject in interface org.springframework.beans.factory.FactoryBean<XSessionFactory>public Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<XSessionFactory>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<XSessionFactory>public void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeanCopyright © 2015. All rights reserved.