com.sibvisions.rad.persist.event
Enum StorageEvent.ChangedType

java.lang.Object
  extended by java.lang.Enum<StorageEvent.ChangedType>
      extended by com.sibvisions.rad.persist.event.StorageEvent.ChangedType
All Implemented Interfaces:
Serializable, Comparable<StorageEvent.ChangedType>
Enclosing class:
StorageEvent

public static enum StorageEvent.ChangedType
extends Enum<StorageEvent.ChangedType>

Specifies the type of change.


Enum Constant Summary
AFTER_DELETE
          after delete.
AFTER_INSERT
          after insert.
AFTER_UPDATE
          after update.
BEFORE_DELETE
          before delete.
BEFORE_INSERT
          before insert.
BEFORE_UPDATE
          before update.
CALCULATE_ROW
          Calculate row.
 
Method Summary
static StorageEvent.ChangedType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StorageEvent.ChangedType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CALCULATE_ROW

public static final StorageEvent.ChangedType CALCULATE_ROW
Calculate row. This is called after fetch, refetchRow, insert and update method calls.


BEFORE_INSERT

public static final StorageEvent.ChangedType BEFORE_INSERT
before insert.


AFTER_INSERT

public static final StorageEvent.ChangedType AFTER_INSERT
after insert.


BEFORE_UPDATE

public static final StorageEvent.ChangedType BEFORE_UPDATE
before update.


AFTER_UPDATE

public static final StorageEvent.ChangedType AFTER_UPDATE
after update.


BEFORE_DELETE

public static final StorageEvent.ChangedType BEFORE_DELETE
before delete.


AFTER_DELETE

public static final StorageEvent.ChangedType AFTER_DELETE
after delete.

Method Detail

values

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

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

valueOf

public static StorageEvent.ChangedType 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


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.