Class BaseAlterTableWrite
java.lang.Object
io.ebeaninternal.dbmigration.ddlgeneration.platform.BaseAlterTableWrite
- All Implemented Interfaces:
DdlAlterTable
Contains alter statements per table.
- Author:
- Roland Praml, FOCONIS AG
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a statement.booleanFlag that detects if history DDL (switching on) is handled for this table.newOperation(String operation, String column) Adds a raw command.voidSets the history handled flag for this table.voidwrite(Appendable target) Writes the DDL totarget.
-
Constructor Details
-
BaseAlterTableWrite
-
-
Method Details
-
tableName
-
newOperation
-
append
Adds a statement. The statement is prefixed with "alter table TABLENAME" and may be batched, if platform supports this. The returned StringBuilder can be used, to complete the statement- Specified by:
appendin interfaceDdlAlterTable- Returns:
- a DdlBuffer, which can be used for further appends. Note you MUST NOT call
.endOfStatement()on this buffer.
-
raw
Description copied from interface:DdlAlterTableAdds a raw command. This is mainly used for executing user stored procedures.- Specified by:
rawin interfaceDdlAlterTable
-
write
Writes the DDL totarget.- Specified by:
writein interfaceDdlAlterTable- Throws:
IOException
-
isHistoryHandled
Description copied from interface:DdlAlterTableFlag that detects if history DDL (switching on) is handled for this table.- Specified by:
isHistoryHandledin interfaceDdlAlterTable
-
setHistoryHandled
Description copied from interface:DdlAlterTableSets the history handled flag for this table.- Specified by:
setHistoryHandledin interfaceDdlAlterTable
-