Package io.ebean.config.dbplatform.h2
Class H2HistoryTrigger
- java.lang.Object
-
- io.ebean.config.dbplatform.h2.H2HistoryTrigger
-
- All Implemented Interfaces:
org.h2.api.Trigger
public class H2HistoryTrigger extends Object implements org.h2.api.Trigger
H2 database trigger used to populate history tables to support the @History feature.
-
-
Constructor Summary
Constructors Constructor Description H2HistoryTrigger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
fire(Connection connection, Object[] oldRow, Object[] newRow)
void
init(Connection conn, String schemaName, String triggerName, String tableName, boolean before, int type)
void
remove()
-
-
-
Constructor Detail
-
H2HistoryTrigger
public H2HistoryTrigger()
-
-
Method Detail
-
init
public void init(Connection conn, String schemaName, String triggerName, String tableName, boolean before, int type) throws SQLException
- Specified by:
init
in interfaceorg.h2.api.Trigger
- Throws:
SQLException
-
fire
public void fire(Connection connection, Object[] oldRow, Object[] newRow) throws SQLException
- Specified by:
fire
in interfaceorg.h2.api.Trigger
- Throws:
SQLException
-
close
public void close() throws SQLException
- Specified by:
close
in interfaceorg.h2.api.Trigger
- Throws:
SQLException
-
remove
public void remove() throws SQLException
- Specified by:
remove
in interfaceorg.h2.api.Trigger
- Throws:
SQLException
-
-