public class AnsiSqlDialect extends Object implements Dialect
| 构造器和说明 |
|---|
AnsiSqlDialect() |
| 限定符和类型 | 方法和说明 |
|---|---|
DialectName |
dialectName()
方言名
|
Wrapper |
getWrapper() |
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,
Page page)
构建用于分页查询的PreparedStatement
|
PreparedStatement |
psForUpdate(Connection conn,
Entity entity,
Entity where)
构建用于更新的PreparedStatement
|
void |
setWrapper(Wrapper wrapper)
设置包装器
|
protected Wrapper wrapper
public Wrapper getWrapper()
getWrapper 在接口中 Dialectpublic void setWrapper(Wrapper wrapper)
DialectsetWrapper 在接口中 Dialectwrapper - 包装器public PreparedStatement psForInsert(Connection conn, Entity entity) throws SQLException
DialectpsForInsert 在接口中 Dialectconn - 数据库连接对象entity - 数据实体类(包含表名)SQLExceptionpublic PreparedStatement psForDelete(Connection conn, Entity entity) throws SQLException
DialectpsForDelete 在接口中 Dialectconn - 数据库连接对象entity - 数据实体类(包含表名)SQLExceptionpublic PreparedStatement psForUpdate(Connection conn, Entity entity, Entity where) throws SQLException
DialectpsForUpdate 在接口中 Dialectconn - 数据库连接对象entity - 数据实体类(包含表名)where - 条件数据类(包含表名)SQLExceptionpublic PreparedStatement psForFind(Connection conn, Collection<String> fields, Entity where) throws SQLException
DialectpsForFind 在接口中 Dialectconn - 数据库连接对象fields - 返回的字段列表,null则返回所有字段where - 条件实体类(包含表名)SQLExceptionpublic PreparedStatement psForPage(Connection conn, Collection<String> fields, Entity where, Page page) throws SQLException
DialectpsForPage 在接口中 Dialectconn - 数据库连接对象fields - 返回的字段列表,null则返回所有字段where - 条件实体类page - 页码SQLExceptionpublic PreparedStatement psForCount(Connection conn, Entity where) throws SQLException
DialectpsForCount 在接口中 Dialectconn - 数据库连接对象where - 条件实体类SQLExceptionpublic DialectName dialectName()
DialectdialectName 在接口中 DialectCopyright © 2016. All rights reserved.