Class HanaHistoryDdl
- java.lang.Object
-
- io.ebeaninternal.dbmigration.ddlgeneration.platform.HanaHistoryDdl
-
- All Implemented Interfaces:
PlatformHistoryDdl
public class HanaHistoryDdl extends Object implements PlatformHistoryDdl
-
-
Constructor Summary
Constructors Constructor Description HanaHistoryDdl()
-
Method Summary
All Methods Instance Methods Concrete 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.voiddisableSystemVersioning(DdlBuffer apply, String tableName)voiddisableSystemVersioning(DdlBuffer apply, String tableName, boolean uniqueStatement)voiddropHistoryTable(DdlWrite writer, DropHistoryTable dropHistoryTable)Drop history support for the given table.voidenableSystemVersioning(DdlBuffer apply, String tableName, String historyTableName, boolean validated, boolean uniqueStatement)booleanisSystemVersioningEnabled(String tableName)voidupdateTriggers(DdlWrite write, HistoryTableUpdate baseTable)Regenerate the history triggers/stored function due to column added/dropped/included or excluded.
-
-
-
Constructor Detail
-
HanaHistoryDdl
public HanaHistoryDdl()
-
-
Method Detail
-
configure
public void configure(io.ebean.config.DatabaseConfig config, PlatformDdl platformDdl)
Description copied from interface:PlatformHistoryDdlConfigure typically reading the necessary parameters from DatabaseConfig and Platform.- Specified by:
configurein interfacePlatformHistoryDdl
-
createWithHistory
public void createWithHistory(DdlWrite writer, MTable table) throws IOException
Description copied from interface:PlatformHistoryDdlCreates a new table and add history support to the table using platform specific mechanism.- Specified by:
createWithHistoryin interfacePlatformHistoryDdl- Throws:
IOException
-
dropHistoryTable
public void dropHistoryTable(DdlWrite writer, DropHistoryTable dropHistoryTable) throws IOException
Description copied from interface:PlatformHistoryDdlDrop history support for the given table.- Specified by:
dropHistoryTablein interfacePlatformHistoryDdl- Throws:
IOException
-
addHistoryTable
public void addHistoryTable(DdlWrite writer, AddHistoryTable addHistoryTable) throws IOException
Description copied from interface:PlatformHistoryDdlAdd history support to the given table.- Specified by:
addHistoryTablein interfacePlatformHistoryDdl- Throws:
IOException
-
updateTriggers
public void updateTriggers(DdlWrite write, HistoryTableUpdate baseTable)
Description copied from interface:PlatformHistoryDdlRegenerate the history triggers/stored function due to column added/dropped/included or excluded.- Specified by:
updateTriggersin interfacePlatformHistoryDdl
-
disableSystemVersioning
public void disableSystemVersioning(DdlBuffer apply, String tableName) throws IOException
- Throws:
IOException
-
disableSystemVersioning
public void disableSystemVersioning(DdlBuffer apply, String tableName, boolean uniqueStatement) throws IOException
- Throws:
IOException
-
enableSystemVersioning
public void enableSystemVersioning(DdlBuffer apply, String tableName, String historyTableName, boolean validated, boolean uniqueStatement) throws IOException
- Throws:
IOException
-
isSystemVersioningEnabled
public boolean isSystemVersioningEnabled(String tableName)
-
-