org.mentabean.event
Enum TriggerDispatcher.Type

java.lang.Object
  extended by java.lang.Enum<TriggerDispatcher.Type>
      extended by org.mentabean.event.TriggerDispatcher.Type
All Implemented Interfaces:
Serializable, Comparable<TriggerDispatcher.Type>
Enclosing class:
TriggerDispatcher

public static enum TriggerDispatcher.Type
extends Enum<TriggerDispatcher.Type>


Enum Constant Summary
AFTER_DELETE
           
AFTER_INSERT
           
AFTER_UPDATE
           
BEFORE_DELETE
           
BEFORE_INSERT
           
BEFORE_UPDATE
           
 
Method Summary
 void dispatchAll(List<TriggerListener> list, TriggerEvent evt)
           
static TriggerDispatcher.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TriggerDispatcher.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BEFORE_INSERT

public static final TriggerDispatcher.Type BEFORE_INSERT

AFTER_INSERT

public static final TriggerDispatcher.Type AFTER_INSERT

BEFORE_UPDATE

public static final TriggerDispatcher.Type BEFORE_UPDATE

AFTER_UPDATE

public static final TriggerDispatcher.Type AFTER_UPDATE

BEFORE_DELETE

public static final TriggerDispatcher.Type BEFORE_DELETE

AFTER_DELETE

public static final TriggerDispatcher.Type AFTER_DELETE
Method Detail

values

public static TriggerDispatcher.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TriggerDispatcher.Type c : TriggerDispatcher.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TriggerDispatcher.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

dispatchAll

public void dispatchAll(List<TriggerListener> list,
                        TriggerEvent evt)


Copyright © 2013. All Rights Reserved.