
public class GlueNexacroModify extends GlueActivity<GlueContext>
Activity Property
- dao : (필수) applicationContext.xml의 DAO id
- sql-key : (필수) query.xml의 query id
- dataset : (필수) Nexacro Dataset ID
- dataset-type : (필수) SQL을 Dataset 전체에 대해서 수행할지 해당 Row에 대해서만 수행할 지 여부 (U이면 해당 Row만 아니면 전체)
- param-count : (선택) Binding 할 파라미터 개수 ("?" 개수)
- param#(param0,param1...): (선택) Binding Value ("?"와 순서 일치 하여야 함)
- param-bindings : (선택) binding에 사용되는 값과 Mapping 되는 Key( bindName=ctxName[|bindName=ctxName] ).
ctx의 key가 binding variable name과 같은 경우 생략(대소문자 구분).
ctxName 은 Context의 Key.
- result-key : (선택) 수행 결과를 컨텍스트에 저장할 Key
[ default ] : {sql-key}_updateCnt
- is-audit : (선택) Update시 Audit 항목 적용 Option
Audit 항목은 glue.properties에 audit.insert.key 와 audit.update.key 를 참고한다.
주의사항: Audit 항목은 SQL에 반영되어 있어야 한다.
예제
사용 예# 1
- 유형1 쿼리를 사용하는 경우
사용 예# 2
- 유형2 쿼리를 사용하는 경우
dynamicProperties, logger| Constructor and Description |
|---|
GlueNexacroModify() |
| 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.