Class TriggerEvent
- java.lang.Object
-
- org.apache.derby.impl.sql.execute.TriggerEvent
-
public class TriggerEvent extends java.lang.Object
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
Fields Modifier and Type Field Description (package private) static int
AFTER_DELETE
(package private) static int
AFTER_INSERT
(package private) static int
AFTER_UPDATE
private boolean
before
(package private) static int
BEFORE_DELETE
(package private) static int
BEFORE_INSERT
(package private) static int
BEFORE_UPDATE
(package private) static int
LAST_BEFORE_EVENT
(package private) static int
MAX_EVENTS
private static java.lang.String[]
Names
private int
type
-
Constructor Summary
Constructors Constructor Description TriggerEvent(int type)
Create a trigger event of the given type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.String
getName()
Get the type number of this trigger(package private) int
getNumber()
Get the type number of this trigger(package private) boolean
isAfter()
Is this an after trigger(package private) boolean
isBefore()
Is this a before trigger
-
-
-
Field Detail
-
BEFORE_INSERT
static final int BEFORE_INSERT
- See Also:
- Constant Field Values
-
BEFORE_DELETE
static final int BEFORE_DELETE
- See Also:
- Constant Field Values
-
BEFORE_UPDATE
static final int BEFORE_UPDATE
- See Also:
- Constant Field Values
-
LAST_BEFORE_EVENT
static final int LAST_BEFORE_EVENT
- See Also:
- Constant Field Values
-
AFTER_INSERT
static final int AFTER_INSERT
- See Also:
- Constant Field Values
-
AFTER_DELETE
static final int AFTER_DELETE
- See Also:
- Constant Field Values
-
AFTER_UPDATE
static final int AFTER_UPDATE
- See Also:
- Constant Field Values
-
MAX_EVENTS
static final int MAX_EVENTS
- See Also:
- Constant Field Values
-
Names
private static final java.lang.String[] Names
-
before
private boolean before
-
type
private int type
-
-
Method Detail
-
getNumber
int getNumber()
Get the type number of this trigger- Returns:
- the type number
-
getName
java.lang.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
-
-