public class SqlLib extends Object implements org.teasoft.bee.osql.BeeSql
| 构造器和说明 |
|---|
SqlLib() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
batch(String[] sql) |
int |
batch(String[] sql,
int batchSize) |
protected void |
checkClose(ResultSet rs,
Statement stmt,
Connection conn) |
protected void |
checkClose(Statement stmt,
Connection conn) |
protected void |
closeConn(Connection conn) |
long |
insertAndReturnId(String sql) |
int |
modify(String sql) |
<T> List<T> |
moreTableSelect(String sql,
T entity) |
List<String[]> |
select(String sql) |
<T> List<T> |
select(String sql,
T entity) |
String |
selectFun(String sql)
SQL function: max,min,avg,sum,count.
|
String |
selectJson(String sql) |
List<Map<String,Object>> |
selectMapList(String sql) |
<T> List<T> |
selectSomeField(String sql,
T entity) |
public <T> List<T> selectSomeField(String sql, T entity)
selectSomeField 在接口中 org.teasoft.bee.osql.BeeSqlpublic String selectFun(String sql)
selectFun 在接口中 org.teasoft.bee.osql.BeeSqlpublic List<Map<String,Object>> selectMapList(String sql)
selectMapList 在接口中 org.teasoft.bee.osql.BeeSqlpublic int modify(String sql)
modify 在接口中 org.teasoft.bee.osql.BeeSqlpublic long insertAndReturnId(String sql)
insertAndReturnId 在接口中 org.teasoft.bee.osql.BeeSqlpublic String selectJson(String sql)
selectJson 在接口中 org.teasoft.bee.osql.BeeSqlpublic int batch(String[] sql)
batch 在接口中 org.teasoft.bee.osql.BeeSqlpublic int batch(String[] sql, int batchSize)
batch 在接口中 org.teasoft.bee.osql.BeeSqlprotected void checkClose(Statement stmt, Connection conn)
protected void checkClose(ResultSet rs, Statement stmt, Connection conn)
protected void closeConn(Connection conn)
Copyright © 2021. All rights reserved.