Interface PlatformHistoryDdl
- All Known Implementing Classes:
DbTriggerBasedHistoryDdl,H2HistoryDdl,HanaHistoryDdl,MariaDbHistoryDdl,MySqlHistoryDdl,NoHistorySupportDdl,NuoDbHistoryDdl,PostgresHistoryDdl,SqlServerHistoryDdl
public interface PlatformHistoryDdl
Defines the implementation for adding history support to a table.
-
Method Summary
Modifier and Type Method Description voidaddHistoryTable(DdlWrite writer, AddHistoryTable addHistoryTable)Add history support to the given table.voidconfigure(io.ebean.config.DatabaseConfig config, PlatformDdl platformDdl)Configure typically reading the necessary parameters from DatabaseConfig and Platform.voidcreateWithHistory(DdlWrite writer, MTable table)Creates a new table and add history support to the table using platform specific mechanism.voiddropHistoryTable(DdlWrite writer, DropHistoryTable dropHistoryTable)Drop history support for the given table.voidupdateTriggers(DdlWrite write, HistoryTableUpdate baseTable)Regenerate the history triggers/stored function due to column added/dropped/included or excluded.
-
Method Details
-
configure
Configure typically reading the necessary parameters from DatabaseConfig and Platform. -
createWithHistory
Creates a new table and add history support to the table using platform specific mechanism.- Throws:
IOException
-
dropHistoryTable
Drop history support for the given table.- Throws:
IOException
-
addHistoryTable
Add history support to the given table.- Throws:
IOException
-
updateTriggers
Regenerate the history triggers/stored function due to column added/dropped/included or excluded.- Throws:
IOException
-