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 void
generate(DdlWrite writer, AddColumn addColumn)
Write the add column change.void
generate(DdlWrite writer, AddHistoryTable addHistoryTable)
Write the AddHistoryTable change.void
generate(DdlWrite writer, AddTableComment addTableComment)
Write the AddTableComment change.void
generate(DdlWrite writer, AddUniqueConstraint constraint)
Write add unique constraint.void
generate(DdlWrite writer, AlterColumn alterColumn)
Write the alter column changes.void
generate(DdlWrite writer, AlterForeignKey alterForeignKey)
Writes alter foreign key statements.void
generate(DdlWrite writer, CreateIndex createIndex)
Generate the create index change.void
generate(DdlWrite writer, CreateTable createTable)
Generate the create table change.void
generate(DdlWrite writer, DropColumn dropColumn)
Write the drop column change.void
generate(DdlWrite writer, DropHistoryTable dropHistoryTable)
Write the DropHistoryTable change.void
generate(DdlWrite writer, DropIndex dropIndex)
Write the drop index change.void
generate(DdlWrite writer, DropTable dropTable)
Write the drop column change.void
generateEpilog(DdlWrite write)
Generate any extra DDL such as regeneration of history triggers.void
generateProlog(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
-
-