Class SqlServerHistoryDdl
- java.lang.Object
-
- io.ebeaninternal.dbmigration.ddlgeneration.platform.SqlServerHistoryDdl
-
- All Implemented Interfaces:
PlatformHistoryDdl
public class SqlServerHistoryDdl extends Object implements PlatformHistoryDdl
- Author:
- Vilmos Nagy
-
-
Constructor Summary
Constructors Constructor Description SqlServerHistoryDdl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHistoryTable(DdlWrite writer, AddHistoryTable addHistoryTable)
Add history support to the given table.void
configure(ServerConfig serverConfig, PlatformDdl platformDdl)
Configure typically reading the necessary parameters from ServerConfig and Platform.void
createWithHistory(DdlWrite writer, MTable table)
Creates a new table and add history support to the table using platform specific mechanism.void
dropHistoryTable(DdlWrite writer, DropHistoryTable dropHistoryTable)
Drop history support for the given table.void
updateTriggers(DdlWrite writer, HistoryTableUpdate baseTable)
Regenerate the history triggers/stored function due to column added/dropped/included or excluded.
-
-
-
Constructor Detail
-
SqlServerHistoryDdl
public SqlServerHistoryDdl()
-
-
Method Detail
-
configure
public void configure(ServerConfig serverConfig, PlatformDdl platformDdl)
Description copied from interface:PlatformHistoryDdl
Configure typically reading the necessary parameters from ServerConfig and Platform.- Specified by:
configure
in interfacePlatformHistoryDdl
-
createWithHistory
public void createWithHistory(DdlWrite writer, MTable table) throws IOException
Description copied from interface:PlatformHistoryDdl
Creates a new table and add history support to the table using platform specific mechanism.- Specified by:
createWithHistory
in interfacePlatformHistoryDdl
- Throws:
IOException
-
dropHistoryTable
public void dropHistoryTable(DdlWrite writer, DropHistoryTable dropHistoryTable) throws IOException
Description copied from interface:PlatformHistoryDdl
Drop history support for the given table.- Specified by:
dropHistoryTable
in interfacePlatformHistoryDdl
- Throws:
IOException
-
addHistoryTable
public void addHistoryTable(DdlWrite writer, AddHistoryTable addHistoryTable) throws IOException
Description copied from interface:PlatformHistoryDdl
Add history support to the given table.- Specified by:
addHistoryTable
in interfacePlatformHistoryDdl
- Throws:
IOException
-
updateTriggers
public void updateTriggers(DdlWrite writer, HistoryTableUpdate baseTable) throws IOException
Description copied from interface:PlatformHistoryDdl
Regenerate the history triggers/stored function due to column added/dropped/included or excluded.- Specified by:
updateTriggers
in interfacePlatformHistoryDdl
- Throws:
IOException
-
-