Interface TableDdl
-
- All Known Implementing Classes:
BaseTableDdl,ClickHouseTableDdl,HanaTableDdl
public interface TableDdl
Write table DDL.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidgenerate(DdlWrite writer, AddColumn addColumn)Write the add column change.voidgenerate(DdlWrite writer, AddHistoryTable addHistoryTable)Write the AddHistoryTable change.voidgenerate(DdlWrite writer, AddTableComment addTableComment)Write the AddTableComment change.voidgenerate(DdlWrite writer, AddUniqueConstraint constraint)Write add unique constraint.voidgenerate(DdlWrite writer, AlterColumn alterColumn)Write the alter column changes.voidgenerate(DdlWrite writer, AlterForeignKey alterForeignKey)Writes alter foreign key statements.voidgenerate(DdlWrite writer, CreateIndex createIndex)Generate the create index change.voidgenerate(DdlWrite writer, CreateTable createTable)Generate the create table change.voidgenerate(DdlWrite writer, DropColumn dropColumn)Write the drop column change.voidgenerate(DdlWrite writer, DropHistoryTable dropHistoryTable)Write the DropHistoryTable change.voidgenerate(DdlWrite writer, DropIndex dropIndex)Write the drop index change.voidgenerate(DdlWrite writer, DropTable dropTable)Write the drop column change.voidgenerateEpilog(DdlWrite write)Generate any extra DDL such as regeneration of history triggers.voidgenerateProlog(DdlWrite write)Generate any extra DDL such as stored procedures or TableValueParameters.
-
-
-
Method Detail
-
generate
void generate(DdlWrite writer, CreateTable createTable) throws IOException
Generate the create table change.- Throws:
IOException
-
generate
void generate(DdlWrite writer, DropTable dropTable) throws IOException
Write the drop column change.- Throws:
IOException
-
generate
void generate(DdlWrite writer, AddColumn addColumn) throws IOException
Write the add column change.- Throws:
IOException
-
generate
void generate(DdlWrite writer, AlterColumn alterColumn) throws IOException
Write the alter column changes.- Throws:
IOException
-
generate
void generate(DdlWrite writer, DropColumn dropColumn) throws IOException
Write the drop column change.- Throws:
IOException
-
generate
void generate(DdlWrite writer, AddTableComment addTableComment) throws IOException
Write the AddTableComment change.- Throws:
IOException
-
generate
void generate(DdlWrite writer, AddHistoryTable addHistoryTable) throws IOException
Write the AddHistoryTable change.- Throws:
IOException
-
generate
void generate(DdlWrite writer, DropHistoryTable dropHistoryTable) throws IOException
Write the DropHistoryTable change.- Throws:
IOException
-
generate
void generate(DdlWrite writer, CreateIndex createIndex) throws IOException
Generate the create index change.- Throws:
IOException
-
generate
void generate(DdlWrite writer, DropIndex dropIndex) throws IOException
Write the drop index change.- Throws:
IOException
-
generate
void generate(DdlWrite writer, AddUniqueConstraint constraint) throws IOException
Write add unique constraint.- Throws:
IOException
-
generate
void generate(DdlWrite writer, AlterForeignKey alterForeignKey) throws IOException
Writes alter foreign key statements.- Throws:
IOException
-
generateProlog
void generateProlog(DdlWrite write) throws IOException
Generate any extra DDL such as stored procedures or TableValueParameters.- Throws:
IOException
-
generateEpilog
void generateEpilog(DdlWrite write) throws IOException
Generate any extra DDL such as regeneration of history triggers.- Throws:
IOException
-
-