| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| public static final int | DEFAULT_QUEUE_SIZE
The default queue size. |
| private boolean | |
| private boolean | |
| private boolean | |
| private int | |
| private boolean | |
| private Table | |
| private Trigger | |
| private String | |
| private String | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private static Object[] | |
| private static JdbcResultSet | |
| public void | fire(SessionLocal
the session session, int the trigger type type, boolean if this method is called before applying the changes beforeAction)Call the trigger class if required. |
| public boolean | Returns: true if no further action is required (for 'instead of' triggers)the session session, Table the table table, Row the old row oldRow, Row the new row newRow, boolean true if this method is called before the operation is
applied beforeAction, boolean when the operation occurred within a rollback rollback)Call the fire method of the user-defined trigger class if required. |
| public String | |
| public String | getCreateSQLForCopy(Table
the new table targetTable, String the quoted name quotedName)Overrides org. Build a SQL statement to re-create the object, or to create a copy of the object with a different name or referencing a different table |
| private DbException | |
| public int | |
| public Table | |
| public String | |
| public String | |
| public int | |
| public int | |
| public StringBuilder | Returns: the passed string builderthe builder builder)Append the trigger types to the given string builder. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| private synchronized void | |
| private Trigger | |
| public void | removeChildrenAndResources(SessionLocal
the session session)Implements abstract org. Delete all dependent children objects and resources of this object. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private void | |
| public void | setTriggerClassName(String
the name of the trigger class triggerClassName, boolean whether exceptions (due to missing class or access rights)
should be ignored force)Set the trigger class name and load the class if possible. |
| public void | setTriggerSource(String
the source code of a method returning a source, boolean Triggerwhether exceptions (due to syntax error)
should be ignored force)Set the trigger source code and compile it if possible. |
| public void |
| before | back to summary |
|---|---|
| private boolean before | |
| DEFAULT_QUEUE_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_QUEUE_SIZE The default queue size. | |
| insteadOf | back to summary |
|---|---|
| private boolean insteadOf | |
| noWait | back to summary |
|---|---|
| private boolean noWait | |
| onRollback | back to summary |
|---|---|
| private boolean onRollback | |
| queueSize | back to summary |
|---|---|
| private int queueSize | |
| rowBased | back to summary |
|---|---|
| private boolean rowBased | |
| table | back to summary |
|---|---|
| private Table table | |
| triggerCallback | back to summary |
|---|---|
| private Trigger triggerCallback | |
| triggerClassName | back to summary |
|---|---|
| private String triggerClassName | |
| triggerSource | back to summary |
|---|---|
| private String triggerSource | |
| typeMask | back to summary |
|---|---|
| private int typeMask | |
| TriggerObject | back to summary |
|---|---|
| public TriggerObject(Schema schema, int id, String name, Table table) | |
| close | back to summary |
|---|---|
| public void close() throws SQLException Close the trigger.
| |
| convertToObjectList | back to summary |
|---|---|
| private static Object[] convertToObjectList(Row row, JdbcConnection conn) | |
| createResultSet | back to summary |
|---|---|
| private static JdbcResultSet createResultSet(JdbcConnection conn, Table table, Row row, boolean updatable) throws SQLException | |
| fire | back to summary |
|---|---|
| public void fire(SessionLocal session, int type, boolean beforeAction) Call the trigger class if required. This method does nothing if the trigger is not defined for the given action. This method is called before or after any rows have been processed, once for each statement.
| |
| fireRow | back to summary |
|---|---|
| public boolean fireRow(SessionLocal session, Table table, Row oldRow, Row newRow, boolean beforeAction, boolean rollback) Call the fire method of the user-defined trigger class if required. This method does nothing if the trigger is not defined for the given action. This method is called before or after a row is processed, possibly many times for each statement.
| |
| getCreateSQL | back to summary |
|---|---|
| public String getCreateSQL() Implements abstract org. Doc from org. Construct the CREATE ... SQL statement for this object. | |
| getCreateSQLForCopy | back to summary |
|---|---|
| public String getCreateSQLForCopy(Table targetTable, String quotedName) Overrides org. Doc from org. Build a SQL statement to re-create the object, or to create a copy of the object with a different name or referencing a different table | |
| getErrorExecutingTrigger | back to summary |
|---|---|
| private DbException getErrorExecutingTrigger(Throwable e) | |
| getQueueSize | back to summary |
|---|---|
| public int getQueueSize() | |
| getTable | back to summary |
|---|---|
| public Table getTable() Get the table of this trigger.
| |
| getTriggerClassName | back to summary |
|---|---|
| public String getTriggerClassName() Get the trigger class name.
| |
| getTriggerSource | back to summary |
|---|---|
| public String getTriggerSource() | |
| getType | back to summary |
|---|---|
| public int getType() Implements abstract org. Doc from org. Get the object type.
| |
| getTypeMask | back to summary |
|---|---|
| public int getTypeMask() Returns the trigger type.
| |
| getTypeNameList | back to summary |
|---|---|
| public StringBuilder getTypeNameList(StringBuilder builder) Append the trigger types to the given string builder.
| |
| isBefore | back to summary |
|---|---|
| public boolean isBefore() Check if this is a before trigger.
| |
| isInsteadOf | back to summary |
|---|---|
| public boolean isInsteadOf() | |
| isNoWait | back to summary |
|---|---|
| public boolean isNoWait() | |
| isOnRollback | back to summary |
|---|---|
| public boolean isOnRollback() | |
| isRowBased | back to summary |
|---|---|
| public boolean isRowBased() | |
| isSelectTrigger | back to summary |
|---|---|
| public boolean isSelectTrigger() Check whether this is a select trigger.
| |
| load | back to summary |
|---|---|
| private synchronized void load() | |
| loadFromSource | back to summary |
|---|---|
| private Trigger loadFromSource() | |
| removeChildrenAndResources | back to summary |
|---|---|
| public void removeChildrenAndResources(SessionLocal session) Implements abstract org. Doc from org. Delete all dependent children objects and resources of this object.
| |
| setBefore | back to summary |
|---|---|
| public void setBefore(boolean before) | |
| setInsteadOf | back to summary |
|---|---|
| public void setInsteadOf(boolean insteadOf) | |
| setNoWait | back to summary |
|---|---|
| public void setNoWait(boolean noWait) | |
| setOnRollback | back to summary |
|---|---|
| public void setOnRollback(boolean onRollback) | |
| setQueueSize | back to summary |
|---|---|
| public void setQueueSize(int size) | |
| setRowBased | back to summary |
|---|---|
| public void setRowBased(boolean rowBased) | |
| setTriggerAction | back to summary |
|---|---|
| private void setTriggerAction(String triggerClassName, String source, boolean force) | |
| setTriggerClassName | back to summary |
|---|---|
| public void setTriggerClassName(String triggerClassName, boolean force) Set the trigger class name and load the class if possible.
| |
| setTriggerSource | back to summary |
|---|---|
| public void setTriggerSource(String source, boolean force) Set the trigger source code and compile it if possible. | |
| setTypeMask | back to summary |
|---|---|
| public void setTypeMask(int typeMask) Set the trigger type.
| |