public interface Dialect extends Serializable
| 限定符和类型 | 方法和说明 |
|---|---|
DialectName |
dialectName()
方言名
|
Wrapper |
getWrapper() |
PreparedStatement |
psForCount(Connection conn,
Query query)
构建用于查询行数的PreparedStatement
|
PreparedStatement |
psForDelete(Connection conn,
Query query)
构建用于删除的PreparedStatement
|
PreparedStatement |
psForFind(Connection conn,
Query query)
构建用于获取多条记录的PreparedStatement
|
PreparedStatement |
psForInsert(Connection conn,
Entity entity)
构建用于插入的PreparedStatement
|
PreparedStatement |
psForInsertBatch(Connection conn,
Entity... entities)
构建用于批量插入的PreparedStatement
|
PreparedStatement |
psForPage(Connection conn,
Query query)
构建用于分页查询的PreparedStatement
|
PreparedStatement |
psForUpdate(Connection conn,
Entity entity,
Query query)
构建用于更新的PreparedStatement
|
void |
setWrapper(Wrapper wrapper)
设置包装器
|
Wrapper getWrapper()
void setWrapper(Wrapper wrapper)
wrapper - 包装器PreparedStatement psForInsert(Connection conn, Entity entity) throws SQLException
conn - 数据库连接对象entity - 数据实体类(包含表名)SQLException - SQL执行异常PreparedStatement psForInsertBatch(Connection conn, Entity... entities) throws SQLException
conn - 数据库连接对象entities - 数据实体,实体的结构必须全部一致,否则插入结果将不可预知SQLException - SQL执行异常PreparedStatement psForDelete(Connection conn, Query query) throws SQLException
conn - 数据库连接对象query - 查找条件(包含表名)SQLException - SQL执行异常PreparedStatement psForUpdate(Connection conn, Entity entity, Query query) throws SQLException
conn - 数据库连接对象entity - 数据实体类(包含表名)query - 查找条件(包含表名)SQLException - SQL执行异常PreparedStatement psForFind(Connection conn, Query query) throws SQLException
conn - 数据库连接对象query - 查询条件(包含表名)SQLException - SQL执行异常PreparedStatement psForPage(Connection conn, Query query) throws SQLException
conn - 数据库连接对象query - 查询条件(包含表名)SQLException - SQL执行异常PreparedStatement psForCount(Connection conn, Query query) throws SQLException
conn - 数据库连接对象query - 查询条件(包含表名)SQLException - SQL执行异常DialectName dialectName()
Copyright © 2019. All rights reserved.