com.softwareag.centrasite.appl.framework.mapping
Enum CascadeStyle

java.lang.Object
  extended by java.lang.Enum<CascadeStyle>
      extended by com.softwareag.centrasite.appl.framework.mapping.CascadeStyle
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CascadeStyle>

public enum CascadeStyle
extends java.lang.Enum<CascadeStyle>

A style of cascade that can be specified for a Relation property.


Enum Constant Summary
ALL
          Cascade on all operations.
DELETE
          Cascade on delete operations.
NONE
          No cascading.
UPDATE
          Cascade on update operations.
 
Method Summary
 boolean doCascadeUpdate()
          Determines if this CascadeStyle applies for update operation.
 boolean hasCascadeDelete()
          Determines if this CascadeStyle applies for delete operation.
static CascadeStyle valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CascadeStyle[] 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

ALL

public static final CascadeStyle ALL
Cascade on all operations.


DELETE

public static final CascadeStyle DELETE
Cascade on delete operations.


UPDATE

public static final CascadeStyle UPDATE
Cascade on update operations.


NONE

public static final CascadeStyle NONE
No cascading.

Method Detail

values

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

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

valueOf

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

hasCascadeDelete

public boolean hasCascadeDelete()
Determines if this CascadeStyle applies for delete operation.


doCascadeUpdate

public boolean doCascadeUpdate()
Determines if this CascadeStyle applies for update operation.