public class GlueLazyJdbcDao extends GlueJdbcDao
Bean Property - dataSource : (필수) javax.sql.DataSource - queryManager : (필수) com.poscoict.glueframework.dao.manager.GlueQueryManager - columnManager : (선택) com.poscoict.glueframework.dao.manager.GlueColumnManager, default는 null - fetchSize : (필수) int - countQuery : (필수) default는 "select count(1) cnt from (${query})" 예제사용 예# 1 GlueGenericJdbcDao dao = ... GlueCursorBasedRowSet rowSet = (GlueCursorBasedRowSet)dao.find("emp.select"); while(rowSet.hasNext()){ Map row = rowSet.next(); empno = row.get("empno") // EmpVO row = rowSet.next(); // empno = row.getEmpno(); }
lobHandler, queryManager, sequence
DEFAULT_BATCH_UPDATE_SIZE, DELETE, INSERT, SELECT, UPDATE
Constructor and Description |
---|
GlueLazyJdbcDao() |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.jdbc.core.JdbcTemplate |
createJdbcTemplate(DataSource dataSource) |
protected <T,P> List<T> |
findByQueryDefinitionInternal(GlueQueryDefinition def,
GlueParameter<P> param) |
void |
setCountQuery(String s) |
void |
setFetchSize(int fetchSize)
setter method for DI.
|
batchUpdate, batchUpdate, batchUpdate, batchUpdateByQueryStatement, batchUpdateByQueryStatement, batchUpdateByQueryStatement, delete, delete, deleteByQueryStatement, deleteByQueryStatement, find, find, find, findByQueryStatement, findByQueryStatement, findForNavigationPage, findForNavigationPage, findForNavigationPageByQuery, findForNavigationPageByQuery, getBatchUpdateLimit, getColumnManager, getDatabaseProductName, getDBConnection, getQueryManager, getSequence, handleDataAccessException, insert, insert, insertByQueryStatement, insertByQueryStatement, releaseDBConnection, setBatchUpdateLimit, setColumnManager, setLobHandler, setQueryManager, setSequence, setTypeCast, update, update, updateByQueryStatement, updateByQueryStatement
getNamedParameterJdbcTemplate, initTemplateConfig
public void setCountQuery(String s)
s
- select count(1) cnt from (${query})public void setFetchSize(int fetchSize)
GlueJdbcDao
setFetchSize
in class GlueJdbcDao
protected org.springframework.jdbc.core.JdbcTemplate createJdbcTemplate(DataSource dataSource)
createJdbcTemplate
in class GlueJdbcDao
protected <T,P> List<T> findByQueryDefinitionInternal(GlueQueryDefinition def, GlueParameter<P> param)
findByQueryDefinitionInternal
in class GlueJdbcDao
Copyright © 2023–2024 POSCO DX. All rights reserved.