org.ektorp.docref
Enum CascadeType

java.lang.Object
  extended by java.lang.Enum<CascadeType>
      extended by org.ektorp.docref.CascadeType
All Implemented Interfaces:
Serializable, Comparable<CascadeType>

public enum CascadeType
extends Enum<CascadeType>

Author:
henrik lundgren

Enum Constant Summary
ALL
          All operations are cascaded to the child documents.
DELETE
          Cascades the remove operation to associated entities if delete(), executeBulk() or executeAllOrNothing() is called.
NONE
          No operation is cascaded to the child documents.
SAVE_UPDATE
          Cascades the create and update operations when create(), update(), executeBulk() or executeAllOrNothing() is called.
 
Field Summary
static EnumSet<CascadeType> DELETE_TYPES
           
static EnumSet<CascadeType> PERSIST_TYPES
           
 
Method Summary
static boolean intersects(CascadeType[] anyOf, EnumSet<CascadeType> types)
           
static CascadeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CascadeType[] 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

ALL

public static final CascadeType ALL
All operations are cascaded to the child documents.


SAVE_UPDATE

public static final CascadeType SAVE_UPDATE
Cascades the create and update operations when create(), update(), executeBulk() or executeAllOrNothing() is called.


DELETE

public static final CascadeType DELETE
Cascades the remove operation to associated entities if delete(), executeBulk() or executeAllOrNothing() is called.


NONE

public static final CascadeType NONE
No operation is cascaded to the child documents.

Field Detail

DELETE_TYPES

public static final EnumSet<CascadeType> DELETE_TYPES

PERSIST_TYPES

public static final EnumSet<CascadeType> PERSIST_TYPES
Method Detail

values

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

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

valueOf

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

intersects

public static boolean intersects(CascadeType[] anyOf,
                                 EnumSet<CascadeType> types)


Copyright © 2011. All Rights Reserved.