|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.item.ItemStreamSupport org.springframework.batch.item.support.AbstractItemStreamItemReader<T> org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader<T> org.springframework.batch.item.database.AbstractCursorItemReader<T> org.springframework.batch.item.database.JdbcCursorItemReader<T> com.poscoict.glueframework.batch.item.GlueCursorItemReader<T>
public class GlueCursorItemReader<T>
JdbcCursorItemReader È®Àå.
Bean Property - dataSource : (Çʼö) - rowMapper : (Çʼö) - queryId : (Çʼö) - queryManager : (Çʼö) - preparedStatementSetter : (¼±ÅÃ) ¿¹Á¦»ç¿ë ¿¹# 1 Âü°í : {name}-query.glue_sql Âü°í : EmpRowMapper.java import java.sql.ResultSet; import java.sql.SQLException; import org.springframework.jdbc.core.RowMapper; import sample.vo.EmpVO; public class EmpRowMapper implements RowMapper { public EmpVO mapRow(ResultSet rs,int rowNum) throws SQLException{ EmpVO emp = new EmpVO(); emp.setEmpno(rs.getString("empno")); emp.setEname(rs.getString("ename")); emp.setDeptno(rs.getString("deptno")); return emp; } } Âü°í : EmpVO.java public class EmpVO{ private String empno; private String ename; private String deptno; public String getEmpno() { return empno; } public void setEmpno( String empno ) { this.empno = empno; } public String getEname() { return ename; } public void setEname( String ename ) { this.ename = ename; } public Long getDeptno() { return deptno; } public void setDeptno( String deptno ) { this.deptno = deptno; }
Field Summary |
---|
Fields inherited from class org.springframework.batch.item.database.AbstractCursorItemReader |
---|
log, rs, VALUE_NOT_SET |
Constructor Summary | |
---|---|
GlueCursorItemReader()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
void |
setQueryId(String queryId)
setter method for DI. |
void |
setQueryManager(GlueQueryManager queryManager)
setter method for DI. |
Methods inherited from class org.springframework.batch.item.database.JdbcCursorItemReader |
---|
cleanupOnClose, getSql, openCursor, readCursor, setPreparedStatementSetter, setRowMapper, setSql |
Methods inherited from class org.springframework.batch.item.database.AbstractCursorItemReader |
---|
applyStatementSettings, doClose, doOpen, doRead, getDataSource, getExceptionTranslator, handleWarnings, initializeConnection, isUseSharedExtendedConnection, jumpToItem, setDataSource, setDriverSupportsAbsolute, setFetchSize, setIgnoreWarnings, setMaxRows, setQueryTimeout, setUseSharedExtendedConnection, setVerifyCursorPosition |
Methods inherited from class org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader |
---|
close, getCurrentItemCount, isSaveState, open, read, setCurrentItemCount, setMaxItemCount, setSaveState, update |
Methods inherited from class org.springframework.batch.item.ItemStreamSupport |
---|
getExecutionContextKey, setExecutionContextName, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlueCursorItemReader()
Method Detail |
---|
public void setQueryManager(GlueQueryManager queryManager)
queryManager
- public void setQueryId(String queryId)
queryId
- public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.batch.item.database.JdbcCursorItemReader<T>
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |