public class SQLServerPlatformDialect extends PlatformDialect
dataSourceWrapper, mappingGlobalWrapper| 构造器和说明 |
|---|
SQLServerPlatformDialect() |
| 限定符和类型 | 方法和说明 |
|---|---|
SQLBuilderCombine |
alter(StampAlter alter) |
protected boolean |
compareColumnChangeDefault(String defA,
String defB)
默认情况下默认值是相同的字符串然后做判断,但是某些数据库
默认值不走寻常路,会在默认值外添加包装字符串
比如 默认值 A 在sqlserver中为 ('A')
这个时候需要重写判断
|
protected boolean |
compareColumnChangeType(TableColumnStructure columnStructure,
ColumnType columnType)
判断当前两个类型是否相等,一般情况下不需要重写判断
但是如果数据库的数据类型名称和配置的类型名称无法一致时需要重写
|
SQLBuilderCombine |
create(StampCreate create) |
protected void |
createIndex(MappingTable mappingTable,
MappingField mappingField,
boolean unique)
修改删除表字段时可能需要重新创建单列索引
|
protected DialectNextStep |
defineAddColumn(DataDefinition definition) |
protected void |
defineAddColumnDefaultNull(String tableName,
String columnName) |
SQLBuilderCombine |
delete(StampDelete delete) |
SQLBuilderCombine |
drop(StampDrop drop) |
protected void |
dropIndex(MappingTable mappingTable,
MappingField mappingField)
修改删除表字段时可能需要重新删除单列索引
|
SQLBuilderCombine |
insert(StampInsert insert) |
boolean |
isSelectLimitMustOrderBy()
是否查询分页时必须要排序字段
大部分数据库都不是必须的 sqlserver 必须要
limit require order by
|
boolean |
isSupportGeneratedKeys()
数据库驱动是否支持返回添加后的ID
|
SQLBuilderCombine |
rename(StampRename alter) |
SQLBuilderCombine |
select(StampSelect select) |
SQLBuilderCombine |
update(StampUpdate update) |
commonAddColumn, commonAddIndex, commonCreateTable, commonCreateTable, commonDropColumn, commonDropIndex, commonDropTable, compareColumnChange, define, defineAddColumnNotNullDefault, defineAddIndex, defineCreateTable, defineCreateTableExtra, defineDropColumn, defineDropIndex, defineDropTable, defineModifyColumn, defineModifyIndex, getAutoIncrementPrimaryKeyType, getCatalogAndSchema, getColumnType, getTableStructures, isSelectHavingMustGroupBy, isSupportSameColumnIndex, loadingTableStructures, rebuildEndTable, rebuildStartTable, rebuildTable, registerColumnType, registerColumnType, registerColumnType, registerColumnType, registerColumnType, runner, runner, setDataSourceWrapper, setMappingGlobalWrapper, setSQLType, triggerIndexprotected boolean compareColumnChangeType(TableColumnStructure columnStructure, ColumnType columnType)
PlatformDialectcompareColumnChangeType 在类中 PlatformDialectprotected 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 在类中 PlatformDialectprotected DialectNextStep defineAddColumn(DataDefinition definition) throws SQLException
defineAddColumn 在类中 PlatformDialectSQLExceptionprotected void defineAddColumnDefaultNull(String tableName, String columnName) throws SQLException
defineAddColumnDefaultNull 在类中 PlatformDialectSQLExceptionpublic boolean isSupportGeneratedKeys()
PlatformDialectisSupportGeneratedKeys 在接口中 DialectisSupportGeneratedKeys 在类中 PlatformDialectpublic boolean isSelectLimitMustOrderBy()
PlatformDialectlimit require order by
isSelectLimitMustOrderBy 在接口中 DialectisSelectLimitMustOrderBy 在类中 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.