Class QueryConfiguration
java.lang.Object
org.chenile.configuration.query.service.QueryConfiguration
Registers query beans in Spring
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) Function<ChenileExchange,
String[]> queryAuthorities
(QueryDefinitions queryDefinitions) (package private) DataSource
(package private) QueryDefinitions
(package private) QuerySAASInterceptor
(package private) QueryUserFilterInterceptor
(package private) SearchService<Map<String,
Object>> searchService
(QueryStore queryStore) (package private) org.apache.ibatis.session.SqlSessionFactory
sqlSessionFactory
(DataSource queryDataSource) (package private) org.mybatis.spring.SqlSessionTemplate
sqlSessionTemplate
(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory)
-
Field Details
-
mapperFiles
-
queryDefinitionFiles
-
-
Constructor Details
-
QueryConfiguration
public QueryConfiguration()
-
-
Method Details
-
queryDefinitions
- Throws:
IOException
-
queryDataSource
@Bean("queryDatasource") @ConfigurationProperties(prefix="query.datasource") DataSource queryDataSource() -
sqlSessionFactory
@Bean org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory(@Autowired @Qualifier("queryDatasource") DataSource queryDataSource) throws Exception - Throws:
Exception
-
searchService
@Bean SearchService<Map<String,Object>> searchService(@Autowired @Qualifier("queryDefinitions") QueryStore queryStore) -
sqlSessionTemplate
@Bean org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate(@Autowired org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory) -
querySAASInterceptor
-
queryUserFilterInterceptor
-
queryAuthorities
@Bean Function<ChenileExchange,String[]> queryAuthorities(@Autowired QueryDefinitions queryDefinitions)
-