org.eigenbase.jmi
Enum JmiDeletionAction

java.lang.Object
  extended by java.lang.Enum<JmiDeletionAction>
      extended by org.eigenbase.jmi.JmiDeletionAction
All Implemented Interfaces:
Serializable, Comparable<JmiDeletionAction>

public enum JmiDeletionAction
extends Enum<JmiDeletionAction>

JmiDeletionAction enumerates the possible actions to take when a JmiDeletionRule applies.

Version:
$Id: //open/dev/farrago/src/org/eigenbase/jmi/JmiDeletionAction.java#10 $
Author:
John V. Sichi

Enum Constant Summary
CASCADE
          Cascade the modification recursively to the object on the other side of the association.
INVALIDATE
          Break the association, possibly leaving the object on the other side dangling.
RESTRICT
          Prevent the original modification from taking place.
 
Method Summary
static JmiDeletionAction valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JmiDeletionAction[] 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

RESTRICT

public static final JmiDeletionAction RESTRICT
Prevent the original modification from taking place.


INVALIDATE

public static final JmiDeletionAction INVALIDATE
Break the association, possibly leaving the object on the other side dangling.


CASCADE

public static final JmiDeletionAction CASCADE
Cascade the modification recursively to the object on the other side of the association.

Method Detail

values

public static final JmiDeletionAction[] 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(JmiDeletionAction c : JmiDeletionAction.values())
        System.out.println(c);

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

valueOf

public static JmiDeletionAction 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