Provides services regarding HSQLDB Trigger execution and metadata.
Development of the trigger implementation sponsored by Logicscope Realisations Ltd
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | TriggerDef.
Class to store the data used to fire a trigger. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv long | |
| pack-priv Expression | |
| pack-priv String | |
| pack-priv static final TriggerDef[] | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv static final int | |
| pack-priv boolean | |
| protected volatile boolean | |
| pack-priv int | |
| private HsqlNameManager. | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv boolean | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv int | |
| protected HsqlDeque | |
| pack-priv static final int | |
| pack-priv RangeVariable[] | |
| pack-priv Routine | |
| protected int | |
| pack-priv Table | |
| pack-priv Thread | |
| pack-priv Table[] | |
| pack-priv Trigger | |
| pack-priv String | |
| pack-priv int | |
| pack-priv int[] | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| public | TriggerDef(HsqlNameManager.
The trigger object's HsqlName name,whether the trigger fires
before, after or instead of the triggering event when, int the triggering operation;
currently insert, update, or delete operation, boolean indicates whether the trigger is fired for each row
(true) or statement (false) forEach, Table the Table object upon which the indicated operation
fires the trigger table, Table[] transitions, RangeVariable[] rangeVars, Expression condition, String conditionSQL, int[] updateColumns, String the fully qualified name of the class implementing
the org.hsqldb.Trigger (trigger body) interface triggerClassName, boolean do not wait for available space on the pending queue; if
the pending queue does not have fewer than nQueueSize queued items,
then overwrite the current tail instead noWait, int the length to which the pending queue may grow before
further additions are either blocked or overwrite the tail entry,
as determined by noWait queueSize)Constructs a new TriggerDef object to represent an HSQLDB trigger declared in an SQL CREATE TRIGGER statement. |
| public | TriggerDef(HsqlNameManager.
|
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public HsqlNameManager. | |
| public long | |
| public String | |
| public String | |
| public String | |
| public HsqlNameManager. | |
| public String | |
| public String | |
| public String | |
| public String | |
| pack-priv static int | |
| public Grantee | |
| public String | |
| public HsqlNameManager. | |
| public String | Returns: the SQL character sequence required to (re)create the triggerImplements org. Retrieves the SQL character sequence required to (re)create the trigger, as a String |
| public StringBuilder | |
| public int | |
| public Table | |
| pack-priv static int | |
| public int | |
| public int[] | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| pack-priv synchronized TriggerDef. | Returns: Description of the Return Valuepop2 method declaration The consumer (trigger) thread waits for an event to be queued Note This push/pop pairing assumes a single producer thread and a single consumer thread _only_. |
| pack-priv synchronized void | |
| public void | run()
Implements java. run method declaration the trigger JSP is run in its own thread here. |
| pack-priv void | setUpIndexesAndTypes()
Given the SQL creating the trigger, set up the index to the HsqlArrayList[] and the associated GRANT type |
| public synchronized void | |
| public synchronized void |
| actionTiming | back to summary |
|---|---|
| pack-priv int actionTiming | |
| AFTER | back to summary |
|---|---|
| pack-priv static final int AFTER | |
| BEFORE | back to summary |
|---|---|
| pack-priv static final int BEFORE | |
| changeTimestamp | back to summary |
|---|---|
| pack-priv long changeTimestamp | |
| condition | back to summary |
|---|---|
| pack-priv Expression condition | |
| conditionSQL | back to summary |
|---|---|
| pack-priv String conditionSQL | |
| emptyArray | back to summary |
|---|---|
| pack-priv static final TriggerDef[] emptyArray | |
| forEachRow | back to summary |
|---|---|
| pack-priv boolean forEachRow | |
| hasTransitionRanges | back to summary |
|---|---|
| pack-priv boolean hasTransitionRanges | |
| hasTransitionTables | back to summary |
|---|---|
| pack-priv boolean hasTransitionTables | |
| INSTEAD | back to summary |
|---|---|
| pack-priv static final int INSTEAD | |
| isSystem | back to summary |
|---|---|
| pack-priv boolean isSystem | |
| keepGoing | back to summary |
|---|---|
| protected volatile boolean keepGoing | |
| maxRowsQueued | back to summary |
|---|---|
| pack-priv int maxRowsQueued | |
| name | back to summary |
|---|---|
| private HsqlNameManager. | |
| NEW_ROW | back to summary |
|---|---|
| pack-priv static final int NEW_ROW | |
| NEW_TABLE | back to summary |
|---|---|
| pack-priv static final int NEW_TABLE | |
| nowait | back to summary |
|---|---|
| pack-priv boolean nowait | |
| NUM_TRIGGER_OPS | back to summary |
|---|---|
| pack-priv static final int NUM_TRIGGER_OPS | |
| NUM_TRIGS | back to summary |
|---|---|
| pack-priv static final int NUM_TRIGS | |
| OLD_ROW | back to summary |
|---|---|
| pack-priv static final int OLD_ROW | |
| OLD_TABLE | back to summary |
|---|---|
| pack-priv static final int OLD_TABLE | |
| operationType | back to summary |
|---|---|
| pack-priv int operationType | |
| pendingQueue | back to summary |
|---|---|
| protected HsqlDeque<TriggerDef. | |
| RANGE_COUNT | back to summary |
|---|---|
| pack-priv static final int RANGE_COUNT | |
| rangeVars | back to summary |
|---|---|
| pack-priv RangeVariable[] rangeVars | |
| routine | back to summary |
|---|---|
| pack-priv Routine routine | |
| rowsQueued | back to summary |
|---|---|
| protected int rowsQueued | |
| table | back to summary |
|---|---|
| pack-priv Table table | |
| thread | back to summary |
|---|---|
| pack-priv Thread thread | |
| transitions | back to summary |
|---|---|
| pack-priv Table[] transitions | |
| trigger | back to summary |
|---|---|
| pack-priv Trigger trigger | |
| triggerClassName | back to summary |
|---|---|
| pack-priv String triggerClassName | |
| triggerType | back to summary |
|---|---|
| pack-priv int triggerType | |
| updateColumns | back to summary |
|---|---|
| pack-priv int[] updateColumns | |
| valid | back to summary |
|---|---|
| protected boolean valid | |
| TriggerDef | back to summary |
|---|---|
| public TriggerDef(HsqlNameManager. Constructs a new TriggerDef object to represent an HSQLDB trigger declared in an SQL CREATE TRIGGER statement. Changes in 1.7.2 allow the queue size to be specified as 0. A zero queue size causes the Trigger.fire() code to run in the main thread of execution (fully inside the enclosing transaction). Otherwise, the code is run in the Trigger's own thread. (fredt@users)
| |
| TriggerDef | back to summary |
|---|---|
| public TriggerDef(HsqlNameManager. | |
| getActionOrientationString | back to summary |
|---|---|
| public String getActionOrientationString() | |
| getActionTimingString | back to summary |
|---|---|
| public String getActionTimingString() | |
| getCatalogName | back to summary |
|---|---|
| public HsqlNameManager. Implements org. | |
| getChangeTimestamp | back to summary |
|---|---|
| public long getChangeTimestamp() Implements org. | |
| getClassName | back to summary |
|---|---|
| public String getClassName() | |
| getConditionSQL | back to summary |
|---|---|
| public String getConditionSQL() | |
| getEventTypeString | back to summary |
|---|---|
| public String getEventTypeString() | |
| getName | back to summary |
|---|---|
| public HsqlNameManager. Implements org. | |
| getNewTransitionRowName | back to summary |
|---|---|
| public String getNewTransitionRowName() | |
| getNewTransitionTableName | back to summary |
|---|---|
| public String getNewTransitionTableName() | |
| getOldTransitionRowName | back to summary |
|---|---|
| public String getOldTransitionRowName() | |
| getOldTransitionTableName | back to summary |
|---|---|
| public String getOldTransitionTableName() | |
| getOperationType | back to summary |
|---|---|
| pack-priv static int getOperationType(int token) Return the type code for operation tokens | |
| getOwner | back to summary |
|---|---|
| public Grantee getOwner() Implements org. | |
| getProcedureSQL | back to summary |
|---|---|
| public String getProcedureSQL() | |
| getSchemaName | back to summary |
|---|---|
| public HsqlNameManager. Implements org. | |
| getSQL | back to summary |
|---|---|
| public String getSQL() Implements org. Retrieves the SQL character sequence required to (re)create the trigger, as a String
| |
| getSQLMain | back to summary |
|---|---|
| public StringBuilder getSQLMain() | |
| getStatementType | back to summary |
|---|---|
| public int getStatementType() | |
| getTable | back to summary |
|---|---|
| public Table getTable() | |
| getTiming | back to summary |
|---|---|
| pack-priv static int getTiming(int token) | |
| getType | back to summary |
|---|---|
| public int getType() Implements org. | |
| getUpdateColumnIndexes | back to summary |
|---|---|
| public int[] getUpdateColumnIndexes() | |
| hasNewRow | back to summary |
|---|---|
| public boolean hasNewRow() | |
| hasNewTable | back to summary |
|---|---|
| public boolean hasNewTable() | |
| hasOldRow | back to summary |
|---|---|
| public boolean hasOldRow() | |
| hasOldTable | back to summary |
|---|---|
| public boolean hasOldTable() | |
| isBusy | back to summary |
|---|---|
| public boolean isBusy() | |
| isForEachRow | back to summary |
|---|---|
| public boolean isForEachRow() | |
| isSystem | back to summary |
|---|---|
| public boolean isSystem() | |
| isValid | back to summary |
|---|---|
| public boolean isValid() | |
| popPair | back to summary |
|---|---|
| pack-priv synchronized TriggerDef. pop2 method declaration The consumer (trigger) thread waits for an event to be queued Note This push/pop pairing assumes a single producer thread and a single consumer thread _only_.
| |
| pushPair | back to summary |
|---|---|
| pack-priv synchronized void pushPair(Session session, Object[] oldData, Object[] newData) The main thread tells the trigger thread to fire by this call. If this Trigger is not threaded then the fire method is called immediately and executed by the main thread. Otherwise, the row data objects are added to the queue to be used by the Trigger thread. | |
| run | back to summary |
|---|---|
| public void run() Implements java. run method declaration the trigger JSP is run in its own thread here. Its job is simply to wait until it is told by the main thread that it should fire the trigger. | |
| setUpIndexesAndTypes | back to summary |
|---|---|
| pack-priv void setUpIndexesAndTypes() Given the SQL creating the trigger, set up the index to the HsqlArrayList[] and the associated GRANT type | |
| start | back to summary |
|---|---|
| public synchronized void start() start the thread if this is threaded | |
| terminate | back to summary |
|---|---|
| public synchronized void terminate() signal the thread to stop | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| DefaultTrigger | back to summary |
|---|---|
| pack-priv DefaultTrigger() | |
| fire | back to summary |
|---|---|
| public void fire(int i, String name, String table, Object[] row1, Object[] row2) Overrides default org. Doc from org. Old fire method. | |
| Access | Constructor and Description |
|---|---|
| public |
| newRow | back to summary |
|---|---|
| public Object[] newRow | |
| oldRow | back to summary |
|---|---|
| public Object[] oldRow | |
| username | back to summary |
|---|---|
| public String username | |
| TriggerData | back to summary |
|---|---|
| public TriggerData(Session session, Object[] oldRow, Object[] newRow) | |