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
All Methods Instance Methods Abstract Methods 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 Detail
-
configure
void configure(io.ebean.config.DatabaseConfig config, PlatformDdl platformDdl)
Configure typically reading the necessary parameters from DatabaseConfig 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
-
-