com.bstek.dorado.console.jdbc
public class BaseDao extends java.lang.Object
Constructor and Description |
---|
BaseDao() |
Modifier and Type | Method and Description |
---|---|
void |
execute(java.lang.String sql)
执行Sql
|
SqlBaseStoreSupport |
getBaseStoreSupport() |
int |
queryForInt(java.lang.String sql) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
queryForList(java.lang.String sql)
执行Sql 返回List
|
<T> java.util.List<T> |
queryForList(java.lang.String sql,
RowMapper<T> rowMapper) |
void |
setBaseStoreSupport(SqlBaseStoreSupport baseStoreSupport) |
public SqlBaseStoreSupport getBaseStoreSupport()
public void setBaseStoreSupport(SqlBaseStoreSupport baseStoreSupport)
public void execute(java.lang.String sql) throws java.lang.Exception
sql
- java.lang.Exception
public <T> java.util.List<T> queryForList(java.lang.String sql, RowMapper<T> rowMapper) throws java.lang.Exception
sql
- rowMapper
- java.lang.Exception
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> queryForList(java.lang.String sql) throws java.lang.Exception
sql
- java.lang.Exception
public int queryForInt(java.lang.String sql) throws java.lang.Exception
java.lang.Exception
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.