
public class GlueJdbcInsert extends GlueActivity<GlueContext>
 Activity Property
 
 - dao : (필수) applicationContext.xml의 DAO id.
 
 - sql-key : (필수) {name}-query.glue_sql의 query id 
 
 - param-count : (선택) Binding 할 개수 ( insert into emp(empno,ename,deptno) values (?,?,?) )의 "?" 수
 
 - param#(param0,param1...) : (선택) Binding Value ("?"와 순서 일치 하여야 함)
 
 - param-bindings : (선택) binding에 사용되는 값과 Mapping 되는 Key( bindName=ctxName[|bindName=ctxName] ).
         ctx의 key가 binding variable name과 같은 경우 생략(대소문자 구분함).
         ctxName 은 GlueContext의 Key 이거나 list-key 에 해당하는 map의 Key이다.
 
 - chk-name : (선택) 화면의 CheckBox ID(HttpRequest의 parameter name).
         chk-name 에 따라 Looping 처리를 한다. 
         chk-name에 해당하는 것이 다음과 같이 checkbox 라면, 그 값은 0,1,2...,n 으로 부여되며 
         checked 된 값만 GlueContext에 담긴다. 
  
 - list-key : (선택) SQL 문에 Binding 할 Data로서, Map 형태의 Data을 갖는 List 구조체를 가르킴.
 
 - result-key : (선택) Context에 담기는 Query 수행 결과(등록 record 수) Key.
         [ default ] : {sql-key}_insertCnt
  
 - is-audit : (선택) insert시 Audit 항목 적용 Option
          Audit 항목은 glue.properties에 audit.insert.key 와 audit.update.key 를 참고한다.
          주의사항: Audit 항목은 SQL에 반영되어 있어야 한다. 
                아래의 'emp.insert.audit' 와 같은 유형의 SQL인 경우, 
                Column의 순서는 glue.properties에 정의한 순서와 같아야 하며, 
                Audit 항목을 위 SQL처럼 맨 앞에 기술되어야 한다.
 
 
 
 예제
 사용 예# 1
 - 유형1 쿼리를 사용하는 경우
 
     
          
          
          
          
          
          
          
          
      
 
 
 사용 예# 2
 - 유형1 쿼리의 Looping 처리. (Web)
 
     
          
          
          
          
          
          
          
          
          
      
 
 
 사용 예# 3
 - 유형1 쿼리의 Looping 처리. (NonUI)
 
     
          
      
     
          
          
          
          
          
          
          
          
          
      
 
 
 사용 예# 4
 - 유형2 쿼리를 사용하는 경우
 
     
          
          
          
          
      
 
 
 사용 예# 5
 - 유형2 쿼리의 Looping 처리. (Web)
 
     
          
          
          
          
          
      
 
 
 사용 예# 6
 - 유형2 쿼리의 Looping 처리. (NonUI)
 
     
          
      
     
          
          
          
          
          
      
 
 
 사용 예# 7
 - 유형1 쿼리의 audit정보
 
     
          
          
          
          
          
          
          
          
          
      
 
 
 
 참고 : {name}-query.glue_sql
 
     
         
      
     
         
      
     
         
      
 
 
 참고 : HTML Code
 
     
     
     
     
     
     
     
     
     
     
 
 
 참고 : Java Code (Custom)
 
     List 
 dynamicProperties, logger| Constructor and Description | 
|---|
GlueJdbcInsert()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
runActivity(GlueContext ctx)
Sub Class에서 반드시 구현하여야 하는 Abstract Method 이며 이 Method는 F/W에서 호출한다. 
 | 
commitTransaction, commitTransaction, getDao, getEventList, getName, getProperty, getPropertyNames, getTransition, rollbackTransaction, rollbackTransaction, setEventList, setName, setProperty, setTransitionpublic String runActivity(GlueContext ctx)
GlueActivityrunActivity in class GlueActivity<GlueContext>ctx - GlueContext예)==> return "success"이면 BizLogic Activity 를 실행함. 
Copyright © 2013–2021 POSCO ICT. All rights reserved.