public class PhoenixDialect extends AnsiSqlDialect
dbConfig, quoteWrapper| 构造器和说明 |
|---|
PhoenixDialect(DbConfig dbConfig)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
dialectName()
方言名
|
PreparedStatement |
psForUpdate(Connection conn,
Entity entity,
Query query)
构建用于更新的
PreparedStatement用户实现需按照数据库方言格式,将 Entity配合Query转换为带有占位符的SQL语句及参数列表其中 Entity中包含需要更新的数据信息,Query包含更新的查找条件信息。 |
PreparedStatement |
psForUpsert(Connection conn,
Entity entity,
String... keys)
|
getWrapper, psForDelete, psForFind, psForInsert, psForInsertBatch, psForPage, psForPage, setWrapper, wrapPageSqlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpsForCount, psForCountpublic PhoenixDialect(DbConfig dbConfig)
dbConfig - 数据库配置public PreparedStatement psForUpdate(Connection conn, Entity entity, Query query) throws DbException
DialectPreparedStatementEntity配合Query转换为带有占位符的SQL语句及参数列表Entity中包含需要更新的数据信息,Query包含更新的查找条件信息。psForUpdate 在接口中 DialectpsForUpdate 在类中 AnsiSqlDialectconn - 数据库连接对象entity - 数据实体类(包含表名)query - 查找条件(包含表名)DbException - SQL执行异常public String dialectName()
DialectdialectName 在接口中 DialectdialectName 在类中 AnsiSqlDialectpublic PreparedStatement psForUpsert(Connection conn, Entity entity, String... keys) throws DbException
Dialectconn - 数据库连接对象entity - 数据实体类(包含表名)keys - 查找字段,某些数据库此字段必须,如H2,某些数据库无需此字段,如MySQL(通过主键)DbException - SQL执行异常,或方言数据不支持此操作Copyright © 2024. All rights reserved.