
public class GlueMybatisDelete extends GlueActivity<GlueContext>
Activity Property
- dao : (필수) applicationContext.xml의 DAO id.
- sql-key : (필수) mybatis의 query id
- 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}_deleteCnt
예제
사용 예# 1
사용 예# 2
사용 예# 3
참고 : HTML Code
참고 : Java Code (Custom)
List
dynamicProperties, logger| Constructor and Description |
|---|
GlueMybatisDelete() |
| 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.