public class GlueServiceDBLoader extends Object implements GlueCacheLoader, org.springframework.beans.factory.InitializingBean
Bean Property - dataSource : (Çʼö) - queryManager : (¼±ÅÃ) - queryIdMap : (¼±ÅÃ) ¿¹Á¦»ç¿ë ¿¹# 1 : Á¦°øµÈ TableÀ» »ç¿ëÇÏ´Â °æ¿ì »ç¿ë ¿¹# 2 : glue-core¿¡ Æ÷ÇÔµÈ query fileÀ» ·ÎµùÇؼ »ç¿ëÇÒ °æ¿ì. »ç¿ë ¿¹#3 : Table¸¦ Customizing ÇÑ °æ¿ì, query fileÀ» Ãß°¡Çؼ »ç¿ëÇÏ´Â °æ¿ì.
com/poscoict/glueframework/biz/control/GlueServiceDBLoader-query.glue_sql Âü°í : serviceLoader-query.glue_sql - isNamed="false"ÀÓ. - 6°³ÀÇ query¸¦ ÀÛ¼ºÇϸç, bindinigÀº ¼ø¼¿Í °³¼ö´Â ¸ÂÃç¾ßÇÔ. - column name ÀÌ ´Ù¸£¸é alias¸¦ ÀÌ¿ëÇØ ¸ÂÃç¾ß ÇÔ.
query_user/serviceLoader-query.glue_sql
Constructor and Description |
---|
GlueServiceDBLoader()
»ý¼ºÀÚ(constructor).
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
Object |
loadCacheObject(Object cacheKey,
String regionName)
ÁÖ¾îÁø ij½¬ ¿µ¿ª¸í¿¡ ÇØ´çÇϴ ij½¬¿µ¿ª¿¡¼ ij½¬ Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®¸¦ ·ÎµùÇÔ
|
void |
setDataSource(DataSource dataSource)
setter method for DI.
|
void |
setQueryIdMap(Map<String,String> queryIdMap)
setter method for DI.
|
void |
setQueryManager(GlueQueryManager queryManager)
setter method for DI.
|
public void setDataSource(DataSource dataSource)
dataSource
- public void setQueryManager(GlueQueryManager queryManager)
queryManager
- public void setQueryIdMap(Map<String,String> queryIdMap)
queryIdMap
- public Object loadCacheObject(Object cacheKey, String regionName) throws GlueException
GlueCacheLoader
loadCacheObject
in interface GlueCacheLoader
cacheKey
- ij½¬ Å°regionName
- ij½¬ ¿µ¿ª¸íGlueException
- - ij½¬°ü·Ã ¿¡·¯¹ß»ý ½ÃCopyright © 2013–2020 POSCO ICT. All rights reserved.