Class MySqlDdl
java.lang.Object
io.ebeaninternal.dbmigration.ddlgeneration.platform.PlatformDdl
io.ebeaninternal.dbmigration.ddlgeneration.platform.MySqlDdl
- Direct Known Subclasses:
MariaDbDdl
MySql specific DDL.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumnComment(DdlBuffer apply, String table, String column, String comment) Add column comment as a separate statement.voidaddTableComment(DdlBuffer apply, String tableName, String tableComment) Add table comment as a separate statement (from the create table statement).voidalterColumn(DdlWrite writer, AlterColumn alter) Alter column setting (type, default value and not null constraint).alterTableAddCheckConstraint(String tableName, String checkConstraintName, String checkConstraint) Alter table adding the check constraint.voidalterTableDropColumn(DdlWrite writer, String tableName, String columnName) alterTableDropConstraint(String tableName, String constraintName) Drop a unique constraint from the table.alterTableDropForeignKey(String tableName, String fkName) Return the drop foreign key clause.createCheckConstraint(String ckName, String checkConstraint) Returns the check constraint.Return the drop index statement.voidinlineTableComment(DdlBuffer apply, String tableComment) Add an inline table comment to the create table statement.Methods inherited from class io.ebeaninternal.dbmigration.ddlgeneration.platform.PlatformDdl
addHistoryTable, addTablePartition, addTablespace, alterTableAddColumn, alterTableAddColumn, alterTableAddForeignKey, alterTableAddUniqueConstraint, alterTableDropUniqueConstraint, alterTableTablespace, asIdentityColumn, configure, convert, convertDefaultValue, createDdlHandler, createIndex, createSequence, createWithHistory, dropHistoryTable, dropIndex, dropSequence, dropTable, generateEpilog, generateProlog, getCreateTableCommandPrefix, getPlatform, getUpdateNullWithDefault, isIncludeStorageEngine, isInlineComments, isInlineForeignKeys, isInlineUniqueWhenNullable, regenerateHistoryTriggers, setLockTimeout, suppressPrimaryKeyOnPartition, tableInlineForeignKey, tableStorageEngine, useIdentityType, writeTableColumns
-
Constructor Details
-
MySqlDdl
-
-
Method Details
-
dropIndex
Return the drop index statement.- Overrides:
dropIndexin classPlatformDdl
-
alterTableDropColumn
- Overrides:
alterTableDropColumnin classPlatformDdl
-
alterTableDropForeignKey
Return the drop foreign key clause.- Overrides:
alterTableDropForeignKeyin classPlatformDdl
-
createCheckConstraint
Description copied from class:PlatformDdlReturns the check constraint.- Overrides:
createCheckConstraintin classPlatformDdl
-
alterTableAddCheckConstraint
public String alterTableAddCheckConstraint(String tableName, String checkConstraintName, String checkConstraint) Description copied from class:PlatformDdlAlter table adding the check constraint.- Overrides:
alterTableAddCheckConstraintin classPlatformDdl
-
alterTableDropConstraint
Description copied from class:PlatformDdlDrop a unique constraint from the table.- Overrides:
alterTableDropConstraintin classPlatformDdl
-
alterColumn
Description copied from class:PlatformDdlAlter column setting (type, default value and not null constraint).Used by MySql, SQL Server, and HANA as these require all column attributes to be set together.
- Overrides:
alterColumnin classPlatformDdl
-
inlineTableComment
Description copied from class:PlatformDdlAdd an inline table comment to the create table statement.- Overrides:
inlineTableCommentin classPlatformDdl
-
addTableComment
Add table comment as a separate statement (from the create table statement).- Overrides:
addTableCommentin classPlatformDdl
-
addColumnComment
Description copied from class:PlatformDdlAdd column comment as a separate statement.- Overrides:
addColumnCommentin classPlatformDdl
-