public interface BeeSql
| 限定符和类型 | 方法和说明 |
|---|---|
int[] |
batch(String[] sqls)
提交一批命令到数据库
Submits a batch of commands to the database.
|
int[] |
batch(String[] sqls,
int batchSize)
提交一批命令到数据库
Submits a batch of commands to the database.
|
int |
modify(String sql)
操作update,insert,delete.对应Jdbc的executeUpdate方法
operate update,insert,delete. corresponding to Jdbc executeUpdate method.
|
List<String[]> |
select(String sql) |
<T> List<T> |
select(String sql,
T entity)
根据sql查询数据,数据类型与entity类型一致
|
String |
selectFun(String sql)
SQL function: max,min,avg,sum,count.
|
String |
selectJson(String sql)
返回json格式结果的查询操作
|
<T> List<T> |
selectSomeField(String sql,
T entity)
查询部分字段 select some field
|
<T> List<T> select(String sql, T entity)
sql - entity - 与表对应的实体对象,且不能为空
entity corresponding to table and can not be null.<T> List<T> selectSomeField(String sql, T entity)
sql - select sql stringentity - String selectFun(String sql) throws ObjSQLException
sql - ObjSQLExceptionList<String[]> select(String sql)
sql - int modify(String sql)
sql - SQL statement to executeint[] batch(String[] sqls)
sqls - 要执行的sql语句数组 Array of SQL statements to executeint[] batch(String[] sqls, int batchSize)
sqls - 要执行的sql语句数组 Array of SQL statements to executebatchSize - Copyright © 2019. All rights reserved.