public interface Dialect
| 限定符和类型 | 方法和说明 |
|---|---|
PreparedStatement |
psForCount(Connection conn,
Entity where)
构建用于查询行数的PreparedStatement
|
PreparedStatement |
psForDelete(Connection conn,
Entity entity)
构建用于删除的PreparedStatement
|
PreparedStatement |
psForFind(Connection conn,
Collection<String> fields,
Entity where)
构建用于获取多条记录的PreparedStatement
|
PreparedStatement |
psForInsert(Connection conn,
Entity entity)
构建用于插入的PreparedStatement
|
PreparedStatement |
psForPage(Connection conn,
Collection<String> fields,
Entity where,
int page,
int numPerPage)
构建用于分页查询的PreparedStatement
|
PreparedStatement |
psForPage(Connection conn,
Collection<String> fields,
Entity where,
int page,
int numPerPage,
Collection<String> orderFields,
SqlBuilder.Order order)
构建用于分页查询的PreparedStatement
|
PreparedStatement |
psForUpdate(Connection conn,
Entity entity,
Entity where)
构建用于更新的PreparedStatement
|
PreparedStatement psForInsert(Connection conn, Entity entity) throws SQLException
conn - 数据库连接对象entity - 数据实体类(包含表名)SQLExceptionPreparedStatement psForDelete(Connection conn, Entity entity) throws SQLException
conn - 数据库连接对象entity - 数据实体类(包含表名)SQLExceptionPreparedStatement psForUpdate(Connection conn, Entity entity, Entity where) throws SQLException
conn - 数据库连接对象entity - 数据实体类(包含表名)where - 条件数据类(包含表名)SQLExceptionPreparedStatement psForFind(Connection conn, Collection<String> fields, Entity where) throws SQLException
conn - 数据库连接对象fields - 返回的字段列表,null则返回所有字段where - 条件实体类(包含表名)SQLExceptionPreparedStatement psForPage(Connection conn, Collection<String> fields, Entity where, int page, int numPerPage) throws SQLException
conn - 数据库连接对象fields - 返回的字段列表,null则返回所有字段where - 条件实体类page - 页码numPerPage - 每页条目数SQLExceptionPreparedStatement psForPage(Connection conn, Collection<String> fields, Entity where, int page, int numPerPage, Collection<String> orderFields, SqlBuilder.Order order) throws SQLException
conn - 数据库连接对象fields - 返回的字段列表,null则返回所有字段where - 条件实体类page - 页码numPerPage - 每页条目数orderFields - 排序字段order - 排序方式SQLExceptionPreparedStatement psForCount(Connection conn, Entity where) throws SQLException
conn - 数据库连接对象where - 条件实体类SQLExceptionCopyright © 2015. All rights reserved.