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.
|
long |
insertAndReturnId(String sql) |
int |
modify(String sql)
操作update,insert,delete.对应Jdbc的executeUpdate方法
Operate update,insert,delete. corresponding to Jdbc executeUpdate method. |
<T> List<T> |
moreTableSelect(String sql,
T entity)
多表查询的方法.根据sql查询数据,数据类型与entity类型一致
According to SQL query more table data, data type is consistent with entity type. |
List<String[]> |
select(String sql)
查询并将每一行结果转成String数组.Select and transform every record to string array.
|
<T> List<T> |
select(String sql,
T entity)
根据sql查询数据,数据类型与entity类型一致
According to SQL query data, data type is consistent with entity type. |
String |
selectFun(String sql)
用函数查询结果.Select result with function.
|
String |
selectJson(String sql)
查询结果,并以json格式返回.Select and return json format result.
|
List<Map<String,Object>> |
selectMapList(String sql)
查询并将每一行结果转成Map
|
<T> List<T> |
selectSomeField(String sql,
T entity)
查询部分字段.Select some field.
|
<T> List<T> select(String sql, T entity)
sql - SQL select statemententity - 与表对应的实体对象,且不能为空
entity corresponding to table and can not be null.<T> List<T> moreTableSelect(String sql, T entity)
sql - SQL select statemententity - 与表对应的实体对象,且不能为空
entity corresponding to table and can not be null.<T> List<T> selectSomeField(String sql, T entity)
sql - SQL select statemententity - String selectFun(String sql)
sql - SQL select statementList<String[]> select(String sql)
sql - SQL select statementList<Map<String,Object>> selectMapList(String sql)
sql - SQL select statementString selectJson(String sql)
sql - SQL select statementint modify(String sql)
sql - SQL statement to executelong insertAndReturnId(String sql)
int batch(String[] sqls)
sqls - 要执行的sql语句数组 Array of SQL statements to executeint batch(String[] sqls, int batchSize)
sqls - 要执行的sql语句数组 Array of SQL statements to executebatchSize - 一个批次提交的命令数目 the size of commands in a batchCopyright © 2021. All rights reserved.