org.apache.derby.impl.sql.execute
Class TriggerEvent

java.lang.Object
  extended by 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
(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
TriggerEvent(int type)
          Create a trigger event of the given type
 
Method Summary
(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

TriggerEvent

TriggerEvent(int type)
Create a trigger event of the given type

Parameters:
type - the 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

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.