public class MysqlDialect extends AnsiSqlDialect
wrapper| 构造器和说明 |
|---|
MysqlDialect() |
| 限定符和类型 | 方法和说明 |
|---|---|
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
|
psForCount, psForDelete, psForFind, psForInsert, psForUpdatepublic PreparedStatement psForPage(Connection conn, Collection<String> fields, Entity where, int page, int numPerPage) throws SQLException
DialectpsForPage 在接口中 DialectpsForPage 在类中 AnsiSqlDialectconn - 数据库连接对象fields - 返回的字段列表,null则返回所有字段where - 条件实体类page - 页码numPerPage - 每页条目数SQLExceptionpublic PreparedStatement psForPage(Connection conn, Collection<String> fields, Entity where, int page, int numPerPage, Collection<String> orderFields, SqlBuilder.Order order) throws SQLException
DialectpsForPage 在接口中 DialectpsForPage 在类中 AnsiSqlDialectconn - 数据库连接对象fields - 返回的字段列表,null则返回所有字段where - 条件实体类page - 页码numPerPage - 每页条目数orderFields - 排序字段order - 排序方式SQLExceptionCopyright © 2015. All rights reserved.