Class DB2Ddl
java.lang.Object
io.ebeaninternal.dbmigration.ddlgeneration.platform.PlatformDdl
io.ebeaninternal.dbmigration.ddlgeneration.platform.DB2Ddl
DB2 platform specific DDL.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTablespace(DdlBuffer apply, String tablespaceName, String indexTablespace, String lobTablespace) Adds tablespace declaration.voidalterTableAddColumn(DdlWrite writer, String tableName, Column column, boolean onHistoryTable, String defaultValue) alterTableAddUniqueConstraint(String tableName, String uqName, String[] columns, String[] nullableColumns) Add a unique constraint to the table.alterTableDropConstraint(String tableName, String constraintName) Drop a unique constraint from the table.alterTableDropForeignKey(String tableName, String fkName) Return the drop foreign key clause.alterTableDropUniqueConstraint(String tableName, String uniqueConstraintName) Drop a unique constraint from the table (Sometimes this is an index).alterTableTablespace(String tablename, String tableSpace, String indexSpace, String lobSpace) Moves the table to an other tablespace.Return the drop index statement.dropSequence(String sequenceName) Return the drop sequence statement (potentially with if exists clause).Methods inherited from class io.ebeaninternal.dbmigration.ddlgeneration.platform.PlatformDdl
addColumnComment, addHistoryTable, addTableComment, addTablePartition, alterColumn, alterTableAddCheckConstraint, alterTableAddColumn, alterTableAddForeignKey, alterTableDropColumn, asIdentityColumn, configure, convert, convertDefaultValue, createCheckConstraint, createDdlHandler, createIndex, createSequence, createWithHistory, dropHistoryTable, dropIndex, dropTable, generateEpilog, generateProlog, getCreateTableCommandPrefix, getPlatform, getUpdateNullWithDefault, inlineTableComment, isIncludeStorageEngine, isInlineComments, isInlineForeignKeys, isInlineUniqueWhenNullable, regenerateHistoryTriggers, setLockTimeout, suppressPrimaryKeyOnPartition, tableInlineForeignKey, tableStorageEngine, useIdentityType, writeTableColumns
-
Constructor Details
-
DB2Ddl
-
-
Method Details
-
alterTableTablespace
public String alterTableTablespace(String tablename, String tableSpace, String indexSpace, String lobSpace) Description copied from class:PlatformDdlMoves the table to an other tablespace.- Overrides:
alterTableTablespacein classPlatformDdl
-
alterTableAddUniqueConstraint
public String alterTableAddUniqueConstraint(String tableName, String uqName, String[] columns, String[] nullableColumns) Description copied from class:PlatformDdlAdd a unique constraint to the table.Overridden by MsSqlServer for specific null handling on unique constraints.
- Overrides:
alterTableAddUniqueConstraintin classPlatformDdl
-
addTablespace
public void addTablespace(DdlBuffer apply, String tablespaceName, String indexTablespace, String lobTablespace) Description copied from class:PlatformDdlAdds tablespace declaration. Now only supported for db2.- Overrides:
addTablespacein classPlatformDdl
-
alterTableAddColumn
public void alterTableAddColumn(DdlWrite writer, String tableName, Column column, boolean onHistoryTable, String defaultValue) - Overrides:
alterTableAddColumnin classPlatformDdl
-
alterTableDropForeignKey
Description copied from class:PlatformDdlReturn the drop foreign key clause.- Overrides:
alterTableDropForeignKeyin classPlatformDdl
-
alterTableDropUniqueConstraint
Description copied from class:PlatformDdlDrop a unique constraint from the table (Sometimes this is an index).- Overrides:
alterTableDropUniqueConstraintin classPlatformDdl
-
alterTableDropConstraint
Description copied from class:PlatformDdlDrop a unique constraint from the table.- Overrides:
alterTableDropConstraintin classPlatformDdl
-
dropIndex
Description copied from class:PlatformDdlReturn the drop index statement.- Overrides:
dropIndexin classPlatformDdl
-
dropSequence
Description copied from class:PlatformDdlReturn the drop sequence statement (potentially with if exists clause).- Overrides:
dropSequencein classPlatformDdl
-