public class GlueQueryManagerImpl extends Object implements GlueQueryManager, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
GlueQueryDefinition
)를 cacheManger 로부터 가져온다. 쿼리정보가 캐싱되어 있지 않다면, queryLoader를 통해 쿼리 정보를
가져온다.
Bean Property - cacheManager : (필수) GlueCacheManager 참조 bean id. - queryLoader : (필수) GlueCacheLoader 참조 bean id. 예제사용 예# 1
Modifier and Type | Field and Description |
---|---|
protected GlueCacheManager |
cacheManager
Query Definition을 관리하는 Cache Manager
|
protected GlueCacheLoader |
queryLoader
Query Definition을 로딩하는 Cache Loader
|
Constructor and Description |
---|
GlueQueryManagerImpl()
생성자(constructor).
|
GlueQueryManagerImpl(GlueCacheManager manager,
GlueCacheLoader loader)
생성자(constructor).
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
GlueQueryDefinition |
getQueryDefinition(String key)
쿼리 키에 해당하는 쿼리정보 오브젝트를 얻는다.
|
void |
reloadAllQueryDefinitions()
Query File를 다시 읽어서 캐싱한다.
|
void |
setCacheManager(GlueCacheManager cacheManager)
setter method for DI.
|
void |
setQueryLoader(GlueCacheLoader queryLoader)
setter method for DI.
|
protected GlueCacheManager cacheManager
protected GlueCacheLoader queryLoader
public GlueQueryManagerImpl()
public GlueQueryManagerImpl(GlueCacheManager manager, GlueCacheLoader loader)
loader
- Cache Loadermanager
- Cache Managerpublic GlueQueryDefinition getQueryDefinition(String key)
GlueQueryManager
getQueryDefinition
in interface GlueQueryManager
key
- 쿼리 키public void reloadAllQueryDefinitions()
GlueQueryManager
reloadAllQueryDefinitions
in interface GlueQueryManager
public void setCacheManager(GlueCacheManager cacheManager)
cacheManager
- Cache Managerpublic void setQueryLoader(GlueCacheLoader queryLoader)
queryLoader
- Cache Loaderpublic void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
Copyright © 2023–2024 POSCO DX. All rights reserved.