com.poscoict.glueframework.dao.manager
Class GlueQueryManagerImpl

java.lang.Object
  extended by com.poscoict.glueframework.dao.manager.GlueQueryManagerImpl
All Implemented Interfaces:
GlueQueryManager, DisposableBean, InitializingBean

public class GlueQueryManagerImpl
extends Object
implements GlueQueryManager, InitializingBean, DisposableBean

QueryManager ±¸Çöü. Äõ¸® Å°¿¡ ÇØ´çÇÏ´Â Äõ¸®Á¤º¸(GlueQueryDefinition)¸¦ cacheManger ·ÎºÎÅÍ °¡Á®¿Â´Ù. Äõ¸®Á¤º¸°¡ ij½ÌµÇ¾î ÀÖÁö ¾Ê´Ù¸é, 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
protected  GlueCacheManager cacheManager
          Query DefinitionÀ» °ü¸®ÇÏ´Â Cache Manager
protected  GlueCacheLoader queryLoader
          Query DefinitionÀ» ·ÎµùÇÏ´Â Cache Loader
 
Constructor Summary
GlueQueryManagerImpl()
          »ý¼ºÀÚ(constructor).
GlueQueryManagerImpl(GlueCacheManager manager, GlueCacheLoader loader)
          »ý¼ºÀÚ(constructor).
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 GlueQueryDefinition getQueryDefinition(String key)
          Äõ¸® Å°¿¡ ÇØ´çÇÏ´Â Äõ¸®Á¤º¸ ¿ÀºêÁ§Æ®¸¦ ¾ò´Â´Ù.
 void reloadAllQueryDefinitions()
          Query File¸¦ ´Ù½Ã Àо ij½ÌÇÑ´Ù.
 void setCacheManager(GlueCacheManager cacheManager)
          setter method for DI.
 void setQueryLoader(GlueCacheLoader queryLoader)
          setter method for DI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cacheManager

protected GlueCacheManager cacheManager
Query DefinitionÀ» °ü¸®ÇÏ´Â Cache Manager


queryLoader

protected GlueCacheLoader queryLoader
Query DefinitionÀ» ·ÎµùÇÏ´Â Cache Loader

Constructor Detail

GlueQueryManagerImpl

public GlueQueryManagerImpl()
»ý¼ºÀÚ(constructor).


GlueQueryManagerImpl

public GlueQueryManagerImpl(GlueCacheManager manager,
                            GlueCacheLoader loader)
»ý¼ºÀÚ(constructor).

Parameters:
loader - Cache Loader
manager - Cache Manager
Method Detail

getQueryDefinition

public GlueQueryDefinition getQueryDefinition(String key)
Description copied from interface: GlueQueryManager
Äõ¸® Å°¿¡ ÇØ´çÇÏ´Â Äõ¸®Á¤º¸ ¿ÀºêÁ§Æ®¸¦ ¾ò´Â´Ù.

Specified by:
getQueryDefinition in interface GlueQueryManager
Parameters:
key - Äõ¸® Å°
Returns:
Äõ¸®Á¤º¸ ¿ÀºêÁ§Æ®

reloadAllQueryDefinitions

public void reloadAllQueryDefinitions()
Description copied from interface: GlueQueryManager
Query File¸¦ ´Ù½Ã Àо ij½ÌÇÑ´Ù.

Specified by:
reloadAllQueryDefinitions in interface GlueQueryManager

setCacheManager

public void setCacheManager(GlueCacheManager cacheManager)
setter method for DI. Cache Manager¸¦ ¼³Á¤.

Parameters:
cacheManager - Cache Manager

setQueryLoader

public void setQueryLoader(GlueCacheLoader queryLoader)
setter method for DI. Query Loader¸¦ ¼³Á¤.

Parameters:
queryLoader - Cache Loader

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface DisposableBean
Throws:
Exception


Copyright © 2013–2016 POSCO ICT. All rights reserved.