public class GlueHibernateSearch extends GlueActivity<GlueContext>
Activity Property - dao : (Çʼö) applicationContext.xmlÀÇ DAO id. Hibernate¿ë dao id¸¦ ÀÔ·ÂÇÑ´Ù. - sql-key : (Çʼö) xxx-hquery.glue_sqlÀÇ query id. Hibernate¿ë Query(HQL)¸¦ ÁöÁ¤Çϸç, named query ÀÌ¿©¾ß ÇÑ´Ù. - result-key : (¼±ÅÃ) Context¿¡ ´ã±â´Â Query ¼öÇà °á°ú Key. [ default ] : {sql-key}_resultList. ¼öÇà °á°ú´Â ValueObjectÀÇ ListÇüÅÂÀÌ´Ù. - entity-bindings : (¼±ÅÃ) hqlÀÇ named param°ú mappingµÇ´Â entity property ¶Ç´Â id nameÀ» Á¤ÀÇÇÑ´Ù. hqlÀÇ named param°ú ´ëÀÀ µÇ´Â entityÀÇ property ¶Ç´Â id °¡ °°À» °æ¿ì »ý·«ÇÑ´Ù. named param¿¡ binding µÇ´Â °ªÀº entity fieldÀÇ typeÀ¸·Î Casting ÇÏ´Â ±Ù°Å°¡ µÈ´Ù. - param-bindings : (¼±ÅÃ) hqlÀÇ named param°ú binding¿¡ »ç¿ëµÇ´Â °ª°ú Mapping µÇ´Â Key. hqlÀÇ named param°ú ´ëÀÀ µÇ´Â ctxÀÇ key°¡ ÀüºÎ °°Àº °æ¿ì¸¸ »ý·«ÇÑ´Ù(´ë¼Ò¹®ÀÚ ±¸ºÐ). hqlÀÇ named param°ú ´ëÀÀ µÇ´Â ctxÀÇ key°¡ ÀüºÎ °°Áö ¾ÊÀ» °æ¿ì, binding data¸¦ À§ÇÑ º°µµÀÇ MapÀÌ »ý¼ºµÇ¹Ç·Î named param°ú ctx key°¡ °°Àº°Íµµ ±â¼úÇÑ´Ù. - method-name : (¼±ÅÃ)Value Object¿¡ Á¤ÀǵǾî ÀÖ´Â Method ¸í - method-param : (¼±ÅÃ)Method¿¡ ³Ñ°ÜÁÙ Parameter °ª. method-param0, method-param1, ... method-paramN°ú °°ÀÌ ÁöÁ¤ °¡´ÉÇÏ´Ù. ReflectionÀ» ÀÌ¿ëÇÏ¿© InvokeÇÏ´Â ¸Þ¼ÒµåÀÇ ÆĶó¹ÌÅÍ´Â StringÇü¸¸ °¡´ÉÇÏ´Ù. Áï À§ÀÇ ¿¹¿¡¼ VO¿¡´Â setComm(String) ¸Þ¼Òµå°¡ Á¤ÀǵǾî ÀÖ¾î¾ß Çϸç setComm(BigDecimal)¸¸ Á¤ÀǵǾî ÀÖ´Ù¸é NoSuchMethodExceptionÀÌ ¹ß»ýÇÑ´Ù. ¿¹Á¦»ç¿ë ¿¹# 1 »ç¿ë ¿¹# 2 - named paramÀÌ entitiyÀÇ property¿Í °°°í, ctx key¿Í °°Áö ¾ÊÀº °æ¿ì »ç¿ë ¿¹# 3 - named paramÀÌ entitiyÀÇ property¿Í °°Áö ¾Ê°í, ctx key¿Í °°Àº °æ¿ì »ç¿ë ¿¹# 4 - named paramÀÌ entitiyÀÇ property¿Í °°Áö ¾Ê°í, ctx key¿Í °°Áö ¾ÊÀº °æ¿ì »ç¿ë ¿¹# 5 - Á¶È¸°á°ú entitiyÀÇ Æ¯Á¤ method invoke½Ã °íÁ¤°ª »ç¿ë »ç¿ë ¿¹# 6 - Á¶È¸°á°ú entitiyÀÇ Æ¯Á¤ method invoke½Ã º¯¼ö°ª »ç¿ë Âü°í : {name}-hquery.glue_sql Âü°í : hbm.xml
dynamicProperties, logger
Constructor and Description |
---|
GlueHibernateSearch() |
Modifier and Type | Method and Description |
---|---|
protected void |
postRunActivity(GlueContext ctx) |
protected void |
preRunActivity(GlueContext ctx) |
String |
runActivity(GlueContext ctx)
Sub Class¿¡¼ ¹Ýµå½Ã ±¸ÇöÇÏ¿©¾ß ÇÏ´Â Abstract Method À̸ç ÀÌ Method´Â F/W¿¡¼ È£ÃâÇÑ´Ù.
|
commitTransaction, commitTransaction, getDao, getEventList, getName, getProperty, getPropertyNames, getTransition, rollbackTransaction, rollbackTransaction, setEventList, setName, setProperty, setTransition
protected void preRunActivity(GlueContext ctx)
protected void postRunActivity(GlueContext ctx)
public String runActivity(GlueContext ctx)
GlueActivity
runActivity
in class GlueActivity<GlueContext>
ctx
- GlueContext¿¹)==> return "success"À̸é BizLogic Activity ¸¦ ½ÇÇàÇÔ.
Copyright © 2013–2020 POSCO ICT. All rights reserved.