Class GlueQueryManagerImpl
java.lang.Object
com.poscoict.glueframework.dao.manager.GlueQueryManagerImpl
- All Implemented Interfaces:
GlueQueryManager
,DisposableBean
,InitializingBean
public class GlueQueryManagerImpl
extends Object
implements GlueQueryManager, InitializingBean, DisposableBean
QueryManager 구현체. 쿼리 키에 해당하는 쿼리정보(
GlueQueryDefinition
)를 cacheManager 로부터 가져온다. 쿼리정보가 캐싱되어 있지 않다면, queryLoader를 통해 쿼리 정보를
가져온다.
Bean Property
- cacheManager : (필수) GlueCacheManager 참조 bean id.
- queryLoader : (필수) GlueCacheLoader 참조 bean id.
예제
사용 예# 1
<bean id="queryManager" class="com.poscoict.glueframework.dao.manager.GlueQueryManagerImpl">
<property name="cacheManager" ref="cacheManager"/>
<property name="queryLoader" ref="queryLoader"/>
</bean>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GlueCacheManager
Query Definition을 관리하는 Cache Managerprotected GlueCacheLoader
Query Definition을 로딩하는 Cache Loader -
Constructor Summary
ConstructorsConstructorDescription생성자(constructor).GlueQueryManagerImpl
(GlueCacheManager manager, GlueCacheLoader loader) 생성자(constructor). -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
destroy()
getQueryDefinition
(String key) 쿼리 키에 해당하는 쿼리정보 오브젝트를 얻는다.void
Query File를 다시 읽어서 캐싱한다.void
setCacheManager
(GlueCacheManager cacheManager) setter method for DI.void
setQueryLoader
(GlueCacheLoader queryLoader) setter method for DI.
-
Field Details
-
cacheManager
Query Definition을 관리하는 Cache Manager -
queryLoader
Query Definition을 로딩하는 Cache Loader
-
-
Constructor Details
-
GlueQueryManagerImpl
public GlueQueryManagerImpl()생성자(constructor). -
GlueQueryManagerImpl
생성자(constructor).- Parameters:
manager
- Cache Managerloader
- Cache Loader
-
-
Method Details
-
getQueryDefinition
Description copied from interface:GlueQueryManager
쿼리 키에 해당하는 쿼리정보 오브젝트를 얻는다.- Specified by:
getQueryDefinition
in interfaceGlueQueryManager
- Parameters:
key
- 쿼리 키- Returns:
- 쿼리정보 오브젝트
-
reloadAllQueryDefinitions
public void reloadAllQueryDefinitions()Description copied from interface:GlueQueryManager
Query File를 다시 읽어서 캐싱한다.- Specified by:
reloadAllQueryDefinitions
in interfaceGlueQueryManager
-
setCacheManager
setter method for DI. Cache Manager를 설정.- Parameters:
cacheManager
- Cache Manager
-
setQueryLoader
setter method for DI. Query Loader를 설정.- Parameters:
queryLoader
- Cache Loader
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Throws:
Exception
-
destroy
- Specified by:
destroy
in interfaceDisposableBean
- Throws:
Exception
-