|
||||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 Entity 的软件包 | |
|---|---|
| com.xiaoleilu.hutool.db | |
| com.xiaoleilu.hutool.db.handler | |
| com.xiaoleilu.hutool.db 中 Entity 的使用 |
|---|
| 参数类型为 Entity 的 com.xiaoleilu.hutool.db 中的方法 | |
|---|---|
Long |
SqlRunner.insert(Connection conn,
String tableName,
boolean isReplace,
Entity record)
插入数据 |
Long |
SqlRunner.insert(String tableName,
boolean isReplace,
Entity record)
插入数据 |
int[] |
SqlRunner.insertBatch(Connection conn,
String tableName,
boolean isReplace,
Entity... records)
批量插入数据 |
int[] |
SqlRunner.insertBatch(String tableName,
boolean isReplace,
Entity... records)
批量插入数据 |
| com.xiaoleilu.hutool.db.handler 中 Entity 的使用 |
|---|
| 返回 Entity 的 com.xiaoleilu.hutool.db.handler 中的方法 | |
|---|---|
Entity |
SingleEntityHandler.handle(ResultSet rs)
|
static Entity |
HandleHelper.handleRow(int columnCount,
ResultSetMetaData meta,
ResultSet rs)
处理单条数据 |
| 返回变量类型为 Entity 的类型的 com.xiaoleilu.hutool.db.handler 中的方法 | |
|---|---|
List<Entity> |
EntityHandler.handle(ResultSet rs)
|
|
||||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||