Interface | Description |
---|---|
GlueGenericJdbcDao |
데이타베이스 CRUD(Create, Read, Update, Delete) 오퍼레이션을 추상화하여 제공하는 Data Access Object 인터페이스.
|
Class | Description |
---|---|
GlueJdbcDao |
데이타베이스 CRUD(Create, Read, Update, Delete) 오퍼레이션을 추상화하여 제공하는 Data Access Object 오브젝트.
|
GlueJdbcTemplate |
Spring JDBC의 JdbcTemplate 클래스를 확장하여 PageSet 기능을 제공함.
|
GlueLazyJdbcDao |
GlueLazyJdbcDao.
|
GlueQueryStringHelper | Deprecated |
dao package for jdbc. Glue Data Access Object(DAO).
DAO class는 applicationContext.xml에 정의된다.
1. applicationContext.xml2. query/{name}-query.glue_sql 3. vo(returnType) : sample.vo.EmpVO package sample.vo; import java.sql.Date; public class EmpVO { private Number empno; private String ename; private String job; private Number mgr; private Date hiredate; private Number sal; private Number comm; private Number deptno; public Number getEmpno() { return empno; } public void setEmpno(Number empno) { this.empno = empno; } public String getEname() { return ename; } public void setEname(String ename) { this.ename = ename; } public String getJob() { return job; } public void setJob(String job) { this.job = job; } public Number getMgr() { return mgr; } public void setMgr(Number mgr) { this.mgr = mgr; } public Date getHiredate() { return hiredate; } public void setHiredate(Date hiredate) { this.hiredate = hiredate; } public Number getSal() { return sal; } public void setSal(Number sal) { this.sal = sal; } public Number getComm() { return comm; } public void setComm(Number comm) { this.comm = comm; } public Number getDeptno() { return deptno; } public void setDeptno(Number deptno) { this.deptno = deptno; } } 4. java(custom activity) code // dao 가져오기. GlueGenericDao dao = this.getDao("dao"); // binding 정보 구성 (case 1) GlueParameter listParam = new GlueParameter
(); List paramList = new ArrayList(); paramList.add( "10" ); listParam.setParameter(paramList); // binding 정보 구성 (case 2) GlueParameter
Copyright © 2013–2021 POSCO ICT. All rights reserved.