edu.jhu.tmaj.beans.data
Enum UpdateRequestType

java.lang.Object
  extended by java.lang.Enum<UpdateRequestType>
      extended by edu.jhu.tmaj.beans.data.UpdateRequestType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<UpdateRequestType>

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

The different types of an UpdateRequest


Enum Constant Summary
DELETE
          An existing bean will be deleted from the database.
INSERT
          A new bean will be inserted into the database.
UPDATE
          An existing bean will be updated in the database.
 
Method Summary
static UpdateRequestType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static UpdateRequestType[] 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

UPDATE

public static final UpdateRequestType UPDATE
An existing bean will be updated in the database.


INSERT

public static final UpdateRequestType INSERT
A new bean will be inserted into the database.


DELETE

public static final UpdateRequestType DELETE
An existing bean will be deleted from the database.

Method Detail

values

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

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

valueOf

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