com.poscoict.glueframework.dao.jdbc
Class GlueLazyJdbcDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.jdbc.core.support.JdbcDaoSupport
org.springframework.jdbc.core.namedparam.NamedParameterJdbcDaoSupport
com.poscoict.glueframework.dao.jdbc.GlueJdbcDao
com.poscoict.glueframework.dao.jdbc.GlueLazyJdbcDao
- All Implemented Interfaces:
- GlueGenericDao, GlueGenericJdbcDao, InitializingBean
public class GlueLazyJdbcDao
- extends GlueJdbcDao
GlueLazyJdbcDao. µ¥ÀÌŸº£À̽º CRUD(Create, Read, Update, Delete) ¿ÀÆÛ·¹À̼ÇÀ» Ãß»óÈÇÏ¿© Á¦°øÇÏ´Â Data Access Object ¿ÀºêÁ§Æ®.
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();
}
Methods inherited from class com.poscoict.glueframework.dao.jdbc.GlueJdbcDao |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GlueLazyJdbcDao
public GlueLazyJdbcDao()
setCountQuery
public void setCountQuery(String s)
- Parameters:
s
- select count(1) cnt from (${query})
setFetchSize
public void setFetchSize(int fetchSize)
- Description copied from class:
GlueJdbcDao
- setter method for DI.
- Overrides:
setFetchSize
in class GlueJdbcDao
createJdbcTemplate
protected JdbcTemplate createJdbcTemplate(DataSource dataSource)
- Overrides:
createJdbcTemplate
in class GlueJdbcDao
findByQueryDefinitionInternal
protected <T,P> List<T> findByQueryDefinitionInternal(GlueQueryDefinition def,
GlueParameter<P> param)
- Overrides:
findByQueryDefinitionInternal
in class GlueJdbcDao
- Returns:
Copyright © 2013–2017 POSCO ICT. All rights reserved.