Class TriggerEvent
java.lang.Object
org.apache.derby.impl.sql.execute.TriggerEvent
This is a simple class that we use to track
trigger events. This is not expected to
be used directly, instead there is a static
TriggerEvent in TriggerEvents for each event
found in this file.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int
(package private) static final int
(package private) static final int
private boolean
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
private static final String[]
private int
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
BEFORE_INSERT
static final int BEFORE_INSERT- See Also:
-
BEFORE_DELETE
static final int BEFORE_DELETE- See Also:
-
BEFORE_UPDATE
static final int BEFORE_UPDATE- See Also:
-
LAST_BEFORE_EVENT
static final int LAST_BEFORE_EVENT- See Also:
-
AFTER_INSERT
static final int AFTER_INSERT- See Also:
-
AFTER_DELETE
static final int AFTER_DELETE- See Also:
-
AFTER_UPDATE
static final int AFTER_UPDATE- See Also:
-
MAX_EVENTS
static final int MAX_EVENTS- See Also:
-
Names
-
before
private boolean before -
type
private int type
-
-
Constructor Details
-
TriggerEvent
TriggerEvent(int type) Create a trigger event of the given type- Parameters:
type
- the type
-
-
Method Details
-
getNumber
int getNumber()Get the type number of this trigger- Returns:
- the type number
-
getName
String getName()Get the type number of this trigger- Returns:
- the type number
-
isBefore
boolean isBefore()Is this a before trigger- Returns:
- true if before
-
isAfter
boolean isAfter()Is this an after trigger- Returns:
- true if after
-