ehsbe CommonsTM
Version 1.1.0rc3

com.ehsbe.commons.util
Enum CrudEvent.CrudType

java.lang.Object
  extended by java.lang.Enum<CrudEvent.CrudType>
      extended by com.ehsbe.commons.util.CrudEvent.CrudType
All Implemented Interfaces:
Serializable, Comparable<CrudEvent.CrudType>
Enclosing class:
CrudEvent<E>

public static enum CrudEvent.CrudType
extends Enum<CrudEvent.CrudType>

The type of entity change

Version:
$Revision: 432 $
Author:
Jens Elkner

Enum Constant Summary
CREATE
          a new entity has been created
DELETE
          an entity has been deleted
UPDATE
          an entity has been changed
 
Method Summary
static CrudEvent.CrudType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CrudEvent.CrudType[] 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

CREATE

public static final CrudEvent.CrudType CREATE
a new entity has been created


UPDATE

public static final CrudEvent.CrudType UPDATE
an entity has been changed


DELETE

public static final CrudEvent.CrudType DELETE
an entity has been deleted

Method Detail

values

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

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

valueOf

public static CrudEvent.CrudType 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

ehsbe CommonsTM
Version 1.1.0rc3

Copyright ©2005-2009 EHSBE, Walther-Rathenau-Str. 58, 39104 Magdeburg, Sachsen-Anhalt, Germany. All Rights Reserved.