Top Description Fields Constructors Methods
org.apache.derby.impl.sql.execute

public Class TriggerEvent

extends Object
Class Inheritance

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

Modifier and TypeField and Description
pack-priv static final int
pack-priv static final int
pack-priv static final int
private boolean
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
private static final String[]
private int

Constructor Summary

AccessConstructor and Description
pack-priv
TriggerEvent(int
the type
type
)

Create a trigger event of the given type

Method Summary

Modifier and TypeMethod and Description
pack-priv String

Returns:

the type number
getName
()

Get the type number of this trigger

pack-priv int

Returns:

the type number
getNumber
()

Get the type number of this trigger

pack-priv boolean

Returns:

true if after
isAfter
()

Is this an after trigger

pack-priv boolean

Returns:

true if before
isBefore
()

Is this a before trigger

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

AFTER_DELETEback to summary
pack-priv static final int AFTER_DELETE
AFTER_INSERTback to summary
pack-priv static final int AFTER_INSERT
AFTER_UPDATEback to summary
pack-priv static final int AFTER_UPDATE
beforeback to summary
private boolean before
BEFORE_DELETEback to summary
pack-priv static final int BEFORE_DELETE
BEFORE_INSERTback to summary
pack-priv static final int BEFORE_INSERT
BEFORE_UPDATEback to summary
pack-priv static final int BEFORE_UPDATE
LAST_BEFORE_EVENTback to summary
pack-priv static final int LAST_BEFORE_EVENT
MAX_EVENTSback to summary
pack-priv static final int MAX_EVENTS
Namesback to summary
private static final String[] Names
typeback to summary
private int type

Constructor Detail

TriggerEventback to summary
pack-priv TriggerEvent(int type)

Create a trigger event of the given type

Parameters
type:int

the type

Method Detail

getNameback to summary
pack-priv String getName()

Get the type number of this trigger

Returns:String

the type number

getNumberback to summary
pack-priv int getNumber()

Get the type number of this trigger

Returns:int

the type number

isAfterback to summary
pack-priv boolean isAfter()

Is this an after trigger

Returns:boolean

true if after

isBeforeback to summary
pack-priv boolean isBefore()

Is this a before trigger

Returns:boolean

true if before