public class PostgreSQLPlatformDialect extends PlatformDialect
dataSourceWrapper, mappingGlobalWrapper| 构造器和说明 |
|---|
PostgreSQLPlatformDialect() |
| 限定符和类型 | 方法和说明 |
|---|---|
SQLBuilderCombine |
alter(StampAlter alter) |
protected boolean |
compareColumnChangeDefault(String defA,
String defB)
默认情况下默认值是相同的字符串然后做判断,但是某些数据库
默认值不走寻常路,会在默认值外添加包装字符串
比如 默认值 A 在sqlserver中为 ('A')
这个时候需要重写判断
|
SQLBuilderCombine |
create(StampCreate create) |
protected void |
createIndex(MappingTable mappingTable,
MappingField mappingField,
boolean unique)
修改删除表字段时可能需要重新创建单列索引
|
SQLBuilderCombine |
delete(StampDelete delete) |
SQLBuilderCombine |
drop(StampDrop drop) |
protected void |
dropIndex(MappingTable mappingTable,
MappingField mappingField)
修改删除表字段时可能需要重新删除单列索引
|
protected String |
getCatalogAndSchema()
供应商 Catalog支持 Schema支持
Oracle 不支持 Oracle User ID
MySQL 不支持 数据库名
MS SQL Server 数据库名 对象属主名,2005版开始有变
DB2 指定数据库对象时,Catalog部分省略 Catalog属主名
Sybase 数据库名 数据库属主名
Informix 不支持 不需要
PointBase 不支持 数据库名
|
SQLBuilderCombine |
insert(StampInsert insert) |
boolean |
isSupportGeneratedKeys()
数据库驱动是否支持返回添加后的ID
|
SQLBuilderCombine |
rename(StampRename alter) |
SQLBuilderCombine |
select(StampSelect select) |
SQLBuilderCombine |
update(StampUpdate update) |
commonAddColumn, commonAddIndex, commonCreateTable, commonCreateTable, commonDropColumn, commonDropIndex, commonDropTable, compareColumnChange, compareColumnChangeType, define, defineAddColumn, defineAddColumnDefaultNull, defineAddColumnNotNullDefault, defineAddIndex, defineCreateTable, defineCreateTableExtra, defineDropColumn, defineDropIndex, defineDropTable, defineModifyColumn, defineModifyIndex, getAutoIncrementPrimaryKeyType, getColumnType, getTableStructures, isSelectHavingMustGroupBy, isSelectLimitMustOrderBy, isSupportSameColumnIndex, loadingTableStructures, rebuildEndTable, rebuildStartTable, rebuildTable, registerColumnType, registerColumnType, registerColumnType, registerColumnType, registerColumnType, runner, runner, setDataSourceWrapper, setMappingGlobalWrapper, setSQLType, triggerIndexprotected String getCatalogAndSchema() throws SQLException
PlatformDialectgetCatalogAndSchema 在类中 PlatformDialectSQLExceptionprotected boolean compareColumnChangeDefault(String defA, String defB)
PlatformDialectcompareColumnChangeDefault 在类中 PlatformDialectpublic SQLBuilderCombine alter(StampAlter alter)
alter 在接口中 Dialectalter 在类中 PlatformDialectpublic SQLBuilderCombine rename(StampRename alter)
public SQLBuilderCombine create(StampCreate create)
create 在接口中 Dialectcreate 在类中 PlatformDialectpublic SQLBuilderCombine drop(StampDrop drop)
drop 在接口中 Dialectdrop 在类中 PlatformDialectpublic SQLBuilderCombine insert(StampInsert insert)
insert 在接口中 Dialectinsert 在类中 PlatformDialectpublic SQLBuilderCombine delete(StampDelete delete)
delete 在接口中 Dialectdelete 在类中 PlatformDialectpublic SQLBuilderCombine select(StampSelect select)
select 在接口中 Dialectselect 在类中 PlatformDialectpublic SQLBuilderCombine update(StampUpdate update)
update 在接口中 Dialectupdate 在类中 PlatformDialectpublic boolean isSupportGeneratedKeys()
PlatformDialectisSupportGeneratedKeys 在接口中 DialectisSupportGeneratedKeys 在类中 PlatformDialectprotected void createIndex(MappingTable mappingTable, MappingField mappingField, boolean unique) throws SQLException
PlatformDialectcreateIndex 在类中 PlatformDialectSQLExceptionprotected void dropIndex(MappingTable mappingTable, MappingField mappingField) throws SQLException
PlatformDialectdropIndex 在类中 PlatformDialectSQLExceptionCopyright © 2020. All rights reserved.