com.poscoict.glueframework.biz.activity.xplatform
Class GlueXPlatSearch

java.lang.Object
  extended by com.poscoict.glueframework.biz.activity.GlueActivity<GlueContext>
      extended by com.poscoict.glueframework.biz.activity.xplatform.GlueXPlatSearch

public class GlueXPlatSearch
extends GlueActivity<GlueContext>

Á¶È¸ Äõ¸®¸¦ ½ÇÇàÇÏ°í ±× °á°ú°ª(DataSet)À» GlueContext¿¡ ÀúÀåÇÑ´Ù. Á¶Èñ °á°ú °ªÀ» DataSetÀ¸·Î º¯È¯Çϱâ À§Çؼ­´Â ÇØ´ç Query¿¡ resultTypeÀÌ Á¤ÀǵǾî ÀÖÀ¸¸é ¾ÈµÇ°í applicationContext.xmlÀÇ DAO Bean¿¡´Â columnManager°¡ ¼³Á¤µÇ¾î ÀÖ¾î¾ß ÇÑ´Ù. ¹ÙÀεù ÇÒ ¼ö ÀÖ´Â µ¥ÀÌÅÍ Å¸ÀÔÀº XPlatform VariableListÀÇ Æ¯Á¤ ValueÀÌ´Ù.

 Activity Property
 
 - sql-key : query.xmlÀÇ Query ID
 
 - dao : applicationContext.xmlÀÇ DAO Bean ID 
 
 - param-count : Binding ÇÒ °³ ¼ö (select * from emp where deptno=?)ÀÇ "?" ¼ö 
 
 - param#(param0,param1...) : Binding Value ("?"¿Í ¼ø¼­ ÀÏÄ¡ ÇÏ¿©¾ß ÇÔ) 
 
 - param-bindings :
 
 - result-key : Query °á°ú¸¦ GlueContext¿¡ ÀúÀåÇÒ Key
 
 
 
 ¿¹Á¦
 »ç¿ë ¿¹# 1
 
     <activity name="Search[Á¶È¸]" class="com.poscoict.glueframework.biz.activity.xplatform.GlueXPlatSearch">
         <transition name="success" value="end"/>
         <property name="sql-key" value="sample.emp.select"/>
         <property name="result-key" value="result_ds_emp"/>
         <property name="dao" value="testdao"/>
         <property name="param-count" value="1"/>
         <property name="param0" value="DEPTNO"/>
     </activity>
 

Author:
Á¶Ã¢Èñ

Field Summary
 
Fields inherited from class com.poscoict.glueframework.biz.activity.GlueActivity
dynamicProperties, logger
 
Constructor Summary
GlueXPlatSearch()
           
 
Method Summary
 String runActivity(GlueContext ctx)
          Sub Class¿¡¼­ ¹Ýµå½Ã ±¸ÇöÇÏ¿©¾ß ÇÏ´Â Abstract Method À̸ç ÀÌ Method´Â F/W¿¡¼­ È£ÃâÇÑ´Ù.
 
Methods inherited from class com.poscoict.glueframework.biz.activity.GlueActivity
commitTransaction, commitTransaction, getDao, getEventList, getName, getProperty, getPropertyNames, getTransition, rollbackTransaction, rollbackTransaction, setEventList, setName, setProperty, setTransition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlueXPlatSearch

public GlueXPlatSearch()
Method Detail

runActivity

public String runActivity(GlueContext ctx)
Description copied from class: GlueActivity
Sub Class¿¡¼­ ¹Ýµå½Ã ±¸ÇöÇÏ¿©¾ß ÇÏ´Â Abstract Method À̸ç ÀÌ Method´Â F/W¿¡¼­ È£ÃâÇÑ´Ù. °á°ú °ªÀº GlueContext¿¡ ´ã¾Æ¼­ ´ÙÀ½ Activity ¶Ç´Â F/W¿¡ Àü´ÞÇÏ°Ô µÈ´Ù. ÇÊ¿äÇÑ ¸ðµç Data´Â GlueContext¿¡¼­ È£ÃâÇÏ¿© »ç¿ëÇÏ°Ô µÈ´Ù.

Specified by:
runActivity in class GlueActivity<GlueContext>
Parameters:
ctx - GlueContext
Returns:
String Á¤»óÀûÀ̸é "success"¸¦ Return ÇÏ°í ºñÁ¤»ó 󸮸¦ ¿øÇϸé "failure"¸¦ Return ÇÑ´Ù.
 ¿¹) 
 <transition name="success" value="BizLogic"/>
 <transition name="failure" value="ErrorHandle"/>
 ==> return "success"À̸é BizLogic Activity ¸¦ ½ÇÇàÇÔ.
 


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