public class SpringMimosaSessionFactory extends AbstractConfigBuilder implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, SpringContextHolder, SessionFactory
| 构造器和说明 |
|---|
SpringMimosaSessionFactory() |
getConvert, getDataSourceFromProperties, getMappingClass, isStringTrueprotected BeanAppContext context
protected org.springframework.context.ApplicationContext applicationContext
protected SessionFactoryBuilder sessionFactoryBuilder
protected SessionFactory sessionFactory
protected AbstractInterceptSession interceptSession
protected ApplicationSetting applicationSetting
protected BasicSetting basicSetting
protected CenterConfigSetting centerConfigSetting
protected MimosaDataSource defaultDataSource
protected List<MimosaDataSource> dataSources
protected String applicationName
protected String applicationDetail
protected boolean isShowSQL
protected NamingConvert convert
protected String convertType
protected String scanPackage
protected String tablePrefix
protected DataSource dataSource
protected MappingLevel mappingLevel
protected Boolean ignoreEmptySlave
protected String mapper
protected List<FactoryBuilder> auxFactoryBuilder
protected List<? extends IDStrategy> strategies
public void setApplicationName(String applicationName)
public void setApplicationDetail(String applicationDetail)
public void setShowSQL(boolean showSQL)
public void setIgnoreEmptySlave(Boolean ignoreEmptySlave)
public void setConvert(NamingConvert convert)
public void setTablePrefix(String tablePrefix)
public void setConvertType(String convertType) throws ContextException
ContextExceptionpublic void setCenterConfigSetting(CenterConfigSetting centerConfigSetting) throws ContextException
ContextExceptionpublic void setInterceptSession(AbstractInterceptSession interceptSession)
public void setMapper(String mapper)
public void setAuxFactoryBuilder(List<FactoryBuilder> auxFactoryBuilder)
public void setStrategies(List<? extends IDStrategy> strategies)
public void setMappingLevel(MappingLevel mappingLevel)
public void setDefaultDataSource(MimosaDataSource defaultDataSource) throws SQLException
SQLExceptionpublic void setDataSource(DataSource dataSource) throws SQLException
SQLExceptionpublic void setScanPackage(String scanPackage)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanExceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic Session openSession() throws MimosaException
openSession 在接口中 SessionFactoryMimosaExceptionpublic Session getCurrentSession() throws MimosaException
getCurrentSession 在接口中 SessionFactoryMimosaExceptionpublic Transaction beginTransaction() throws TransactionException
beginTransaction 在接口中 SessionFactoryTransactionExceptionpublic Transaction beginTransaction(TransactionPropagationType pt) throws TransactionException
beginTransaction 在接口中 SessionFactoryTransactionExceptionpublic Transaction beginTransaction(TransactionIsolationType it) throws TransactionException
beginTransaction 在接口中 SessionFactoryTransactionExceptionpublic Transaction beginTransaction(TransactionPropagationType pt, TransactionIsolationType it) throws TransactionException
beginTransaction 在接口中 SessionFactoryTransactionExceptionpublic Transaction createTransaction()
createTransaction 在接口中 SessionFactorypublic Transaction createTransaction(TransactionPropagationType pt)
createTransaction 在接口中 SessionFactorypublic Transaction createTransaction(TransactionIsolationType it)
createTransaction 在接口中 SessionFactorypublic Transaction createTransaction(TransactionPropagationType pt, TransactionIsolationType it)
createTransaction 在接口中 SessionFactorypublic org.springframework.context.ApplicationContext getSpringContext()
getSpringContext 在接口中 SpringContextHolderpublic Object getBean(String beanName)
getBean 在接口中 SpringContextHolderpublic String getBeanName(Object object)
getBeanName 在接口中 SpringContextHolderprotected String getMappingClassPackage()
AbstractConfigBuildergetMappingClassPackage 在类中 AbstractConfigBuilderprotected Set<String> getAdditionMappingClass()
AbstractConfigBuildergetAdditionMappingClass 在类中 AbstractConfigBuilderpublic ApplicationSetting getApplication()
getApplication 在接口中 ConfigBuilderpublic CenterConfigSetting getCenterInfo() throws ContextException
getCenterInfo 在接口中 ConfigBuilderContextExceptionpublic void setDataSources(List<MimosaDataSource> dataSources)
public List<MimosaDataSource> getDataSources() throws SQLException
getDataSources 在接口中 ConfigBuilderSQLExceptionpublic Set<Class> getResolvers() throws ContextException
getResolvers 在接口中 ConfigBuilderContextExceptionpublic List<? extends IDStrategy> getStrategies()
getStrategies 在接口中 ConfigBuilderpublic BasicSetting getBasicInfo() throws ContextException
getBasicInfo 在接口中 ConfigBuilderContextExceptionpublic List<String> getMappers()
getMappers 在接口中 ConfigBuilderpublic List<FactoryBuilder> getAuxFactoryBuilder()
getAuxFactoryBuilder 在接口中 ConfigBuildergetAuxFactoryBuilder 在接口中 SessionFactoryCopyright © 2020. All rights reserved.