com.ibm.jarm.api.constants

Enum RMDeletionAction

  • java.lang.Object
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<RMDeletionAction>


    public enum RMDeletionAction
    extends java.lang.Enum<RMDeletionAction>
    Enumeration of applicable values used to describe the delete action associated with an Object-type property that is involved in a reflective relationship.
    See Also:
    RMPropertyDescriptionObject
    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      Cascade
      Indicates that if a object containing a given object-value property is deleted, then any object that is the property value is also deleted.
      None
      No deletion action is defined.
      Prevent
      If the object-type property has a non-null value then the object to which this property belongs cannot be deleted until the object represented by the property value has been deleted.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static RMDeletionAction getInstanceFromInt(int intValue)
      Provides the RMDeletionAction instance that corresponds to the given int value.
      int getIntValue()
      Returns the integer value associated with this member.
      static RMDeletionAction valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static RMDeletionAction[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • None

        public static final RMDeletionAction None
        No deletion action is defined.
      • Prevent

        public static final RMDeletionAction Prevent
        If the object-type property has a non-null value then the object to which this property belongs cannot be deleted until the object represented by the property value has been deleted.
      • Cascade

        public static final RMDeletionAction Cascade
        Indicates that if a object containing a given object-value property is deleted, then any object that is the property value is also deleted.
    • Method Detail

      • values

        public static RMDeletionAction[] 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 (RMDeletionAction c : RMDeletionAction.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RMDeletionAction valueOf(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getIntValue

        public int getIntValue()
        Returns the integer value associated with this member.
        Returns:
        An int value.
      • getInstanceFromInt

        public static RMDeletionAction getInstanceFromInt(int intValue)
        Provides the RMDeletionAction instance that corresponds to the given int value.
        Parameters:
        intValue - the int value to look up.
        Returns:
        A RMDeletionAction value or null if no such value corresponds to the given intValue parameter.

© Copyright IBM Corp. 2010, 2013. All Rights Reserved.