TriggerPassData

This sample application shows how to pass data to a trigger. Trigger data can be persisted by storing it in the database.

Methods
static void main(String... args)
This method is called when executing this sample application from the command line.
static void main(String... args) throws Exception
This method is called when executing this sample application from the command line.
Parameters:
args - the command line parameters
static void setTriggerData(Connection conn, String trigger, String data)
Call this method to change a specific trigger.
static void setTriggerData(Connection conn, String trigger, String data) throws SQLException
Call this method to change a specific trigger.
Parameters:
conn - the connection
trigger - the trigger name
data - the data
void close()
void close()
void fire(Connection conn, Object[] old, Object[] row)
void fire(Connection conn, Object[] old, Object[] row)
void init(Connection conn, String schemaName, String triggerName, String tableName, boolean before, int type)
void init(Connection conn, String schemaName, String triggerName, String tableName, boolean before, int type) throws SQLException
void remove()
void remove()