public class DmDialect extends AnsiSqlDialect
dbConfig, quoteWrapper| Modifier and Type | Method and Description |
|---|---|
String |
dialectName()
方言名
|
PreparedStatement |
psForUpsert(Connection conn,
Entity entity,
String... keys)
构建用于upsert的
PreparedStatement达梦使用 MERGE INTO 语法可合并 UPDATE 和 INSERT 语句 参考文档:https://eco.dameng.com/document/dm/zh-cn/pm/insertion-deletion-modification#5.4%20MERGE%20INTO%20%E8%AF%AD%E5%8F%A5 |
getWrapper, psForDelete, psForFind, psForInsert, psForInsertBatch, psForPage, psForPage, psForUpdate, setWrapper, wrapPageSqlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpsForCount, psForCountpublic DmDialect(DbConfig dbConfig)
dbConfig - 数据库配置public String dialectName()
DialectdialectName in interface DialectdialectName in class AnsiSqlDialectpublic PreparedStatement psForUpsert(Connection conn, Entity entity, String... keys)
PreparedStatementpsForUpsert in interface DialectpsForUpsert in class AnsiSqlDialectconn - 数据库连接对象entity - 数据实体类(包含表名)keys - 查找字段,某些数据库此字段必须,如H2,某些数据库无需此字段,如MySQL(通过主键)PreparedStatementCopyright © 2025. All rights reserved.