Interface PlatformHistoryDdl
- All Known Subinterfaces:
PlatformHistoryDdl.TableBased
- All Known Implementing Classes:
Db2HistoryDdl,DbTableBasedHistoryDdl,DbTriggerBasedHistoryDdl,H2HistoryDdl,HanaHistoryDdl,MariaDbHistoryDdl,MySqlHistoryDdl,NoHistorySupportDdl,NuoDbHistoryDdl,PostgresHistoryDdl,SqlServerHistoryDdl,YugabyteHistoryDdl
public interface PlatformHistoryDdl
Defines the implementation for adding history support to a table.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceWhen history is table based, then alters on the live tables are applied also to the history tables. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHistoryTable(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.default voidupdateTriggers(DdlWrite writer, String tableName) 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. -
dropHistoryTable
Drop history support for the given table. -
addHistoryTable
Add history support to the given table. -
updateTriggers
Regenerate the history triggers/stored function due to column added/dropped/included or excluded. Note: This function may be called multiple times for the same table.
-