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 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
checkDaoConfig, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, releaseConnection, setDataSource, setJdbcTemplate
afterPropertiesSet, initDao
public void setCountQuery(String s)
s
- select count(1) cnt from (${query})public void setFetchSize(int fetchSize)
GlueJdbcDao
setFetchSize
in class GlueJdbcDao
protected JdbcTemplate createJdbcTemplate(DataSource dataSource)
createJdbcTemplate
in class GlueJdbcDao
protected <T,P> List<T> findByQueryDefinitionInternal(GlueQueryDefinition def, GlueParameter<P> param)
findByQueryDefinitionInternal
in class GlueJdbcDao
Copyright © 2013–2016 POSCO ICT. All rights reserved.