|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.poscoict.glueframework.dao.manager.GlueQueryLoader
public class GlueQueryLoader
Äõ¸®Á¤º¸(GlueQueryDefinition
)¸¦ ·ÎµùÇÏ¿© ¼ºñ½ºÇϴ Ŭ·¡½º.
config path¿¡ Á¸ÀçÇÏ´Â ¸ðµç xxx-query.glue_sql( or xxx-query.xml ) ÆÄÀÏ Á¤º¸¸¦ ·ÎµùÇÏ¿© GlueQueryDefinition
À» »ý¼ºÇÑ ÈÄ
java.util.HashMap
À» ±¸¼ºÇÑ´Ù.
config path¿¡ Á¸ÀçÇÏ´Â query fileÀÇ naming ¹× È®ÀåÀÚ¿¡ À¯ÀÇÇÑ´Ù. Application do not use this class.
bean property ¼³Á¤ - rootPath : (¼±ÅÃ) default´Â 'query' - extraQueryFiles : (¼±ÅÃ) [sample]»ç¿ë¿¹ 1 : applicationÀÇ classpath¿¡¼ query Æú´õ¿¡ ÀÖ´Â Äõ¸®ÆÄÀÏÀ» ·ÎµùÇÔ. »ç¿ë¿¹ 2 : applicationÀÇ classpath¿¡¼ rootPath ·Î ÁöÁ¤µÈ Æú´õ¿¡ ÀÖ´Â Äõ¸®ÆÄÀÏÀ» ·ÎµùÇÔ. »ç¿ë¿¹ 3 : applicationÀÇ classpath¿¡¼ rootPath ·Î ÁöÁ¤µÈ property¿¡ ÇØ´çÇÏ´Â Æú´õ¿¡ ÀÖ´Â Äõ¸®ÆÄÀÏÀ» ·ÎµùÇÔ. queryLoader.rootPath=ext/query ¶ó°í glue.properties¿¡ Á¤ÀǵǾî ÀÖ¾î¾ß ÇÔ. »ç¿ë¿¹ 4 : applicationÀÇ classpathÀÇ rootPath¿ÜÀÇ query ÆÄÀÏÀ» ·ÎµùÇÔ. glue-master.jar¿¡ master-query/easyaccess-query.glue_sql ÀÌ ÀÖ°í, ÇØ´ç jarÆÄÀÏÀº classpath¿¡ ÀâÇô ÀÖÀ½.
master-query/easyaccess-query.glue_sql
Field Summary | |
---|---|
protected static String |
QUERYMAP
xxx-query.glue_sql |
Constructor Summary | |
---|---|
GlueQueryLoader()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
String |
getRootPath()
getter method. |
Object |
loadCacheObject(Object cacheKey,
String regionName)
ÁÖ¾îÁø ij½¬ ¿µ¿ª¸í¿¡ ÇØ´çÇϴ ij½¬¿µ¿ª¿¡¼ ij½¬ Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®¸¦ ·ÎµùÇÔ |
void |
setExtraQueryFiles(List<String> extraQueryFiles)
setter method for DI. |
void |
setPathEncoding(String pathEncoding)
setter method for DI. |
void |
setRootPath(String queryRoot)
setter method for DI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String QUERYMAP
Constructor Detail |
---|
public GlueQueryLoader()
Method Detail |
---|
public Object loadCacheObject(Object cacheKey, String regionName) throws GlueException
GlueCacheLoader
loadCacheObject
in interface GlueCacheLoader
cacheKey
- ij½¬ Å°regionName
- ij½¬ ¿µ¿ª¸í
GlueException
- - ij½¬°ü·Ã ¿¡·¯¹ß»ý ½Ãpublic void setRootPath(String queryRoot)
queryRoot
- 2°¡Áö typeÀÌ °¡´É. directoryÀÇ ±¸ºÐÀÚ´Â ½½·¡½Ã(/)ÀÎÁö ¿ª½½·¡½Ã(\)ÀÎÁö È®ÀÎÇÊ¿äÇÔ.
1. Class Loader¸¦ ÀÌ¿ëÇÑ »ó´ë°æ·Î ÁöÁ¤2. glue.properties ÀÌ¿ëÇÑ Àý´ë °æ·Î ÁöÁ¤ ÀÏ °æ¿ì ==> Thread.currentThread().getContextClassLoader().getResource( "ext/query" ) °¡ »ç¿ëµÊ. ext/query=C://apache-tomcat-7.0.47 ==> Thread.currentThread().getContextClassLoader().getResource( "C://apache-tomcat-7.0.47" ) °¡ »ç¿ëµÊ.
public void setExtraQueryFiles(List<String> extraQueryFiles)
extraQueryFiles
- public void setPathEncoding(String pathEncoding)
pathEncoding
- public String getRootPath()
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |