Interface PlatformHistoryDdl
-
- All Known Implementing Classes:
DbTriggerBasedHistoryDdl
,H2HistoryDdl
,HanaHistoryDdl
,MySqlHistoryDdl
,NoHistorySupportDdl
,NuoDbHistoryDdl
,PostgresHistoryDdl
,SqlServerHistoryDdl
public interface PlatformHistoryDdl
Defines the implementation for adding history support to a table.
-
-
Method Summary
All Methods Instance Methods Abstract 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 write, HistoryTableUpdate baseTable)
Regenerate the history triggers/stored function due to column added/dropped/included or excluded.
-
-
-
Method Detail
-
configure
void configure(ServerConfig serverConfig, PlatformDdl platformDdl)
Configure typically reading the necessary parameters from ServerConfig and Platform.
-
createWithHistory
void createWithHistory(DdlWrite writer, MTable table) throws IOException
Creates a new table and add history support to the table using platform specific mechanism.- Throws:
IOException
-
dropHistoryTable
void dropHistoryTable(DdlWrite writer, DropHistoryTable dropHistoryTable) throws IOException
Drop history support for the given table.- Throws:
IOException
-
addHistoryTable
void addHistoryTable(DdlWrite writer, AddHistoryTable addHistoryTable) throws IOException
Add history support to the given table.- Throws:
IOException
-
updateTriggers
void updateTriggers(DdlWrite write, HistoryTableUpdate baseTable) throws IOException
Regenerate the history triggers/stored function due to column added/dropped/included or excluded.- Throws:
IOException
-
-