mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
29 lines
725 B
Java
29 lines
725 B
Java
package io.ebeaninternal.dbmigration.ddlgeneration;
|
|
|
|
import io.ebeaninternal.dbmigration.migration.AddColumn;
|
|
import io.ebeaninternal.dbmigration.migration.AlterColumn;
|
|
import io.ebeaninternal.dbmigration.migration.DropColumn;
|
|
|
|
import java.io.IOException;
|
|
|
|
/**
|
|
* Write DDL for AddColumn , DropColumn or AlterColumn.
|
|
*/
|
|
public interface ColumnDdl {
|
|
|
|
/**
|
|
* Write the add column change.
|
|
*/
|
|
void generate(DdlWrite writer, AddColumn addColumn) throws IOException;
|
|
|
|
/**
|
|
* Write the drop column change.
|
|
*/
|
|
void generate(DdlWrite writer, DropColumn dropColumn) throws IOException;
|
|
|
|
/**
|
|
* Write the alter column changes.
|
|
*/
|
|
void generate(DdlWrite writer, AlterColumn alterColumn) throws IOException;
|
|
}
|