public class PostgresqlDialect extends AnsiSqlDialect
dbConfig, quoteWrapper| 构造器和说明 |
|---|
PostgresqlDialect(DbConfig dbConfig)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
dialectName()
方言名
|
PreparedStatement |
psForUpsert(Connection conn,
Entity entity,
String... keys)
|
getWrapper, psForDelete, psForFind, psForInsert, psForInsertBatch, psForPage, psForPage, psForUpdate, setWrapper, wrapPageSqlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpsForCount, psForCountpublic PostgresqlDialect(DbConfig dbConfig)
dbConfig - 数据库配置public String dialectName()
DialectdialectName 在接口中 DialectdialectName 在类中 AnsiSqlDialectpublic PreparedStatement psForUpsert(Connection conn, Entity entity, String... keys)
Dialectconn - 数据库连接对象entity - 数据实体类(包含表名)keys - 查找字段,某些数据库此字段必须,如H2,某些数据库无需此字段,如MySQL(通过主键)Copyright © 2024. All rights reserved.