com.smartgwt.client.types
Enum DSOperationType

java.lang.Object
  extended by java.lang.Enum<DSOperationType>
      extended by com.smartgwt.client.types.DSOperationType
All Implemented Interfaces:
ValueEnum, Serializable, Comparable<DSOperationType>

public enum DSOperationType
extends Enum<DSOperationType>
implements ValueEnum

One of the four basic operations that can be performed on DataSource data: "fetch", "add", "update", "remove". Elsewhere called CRUD operations, where CRUD stands for "create", "retrieve", "update", "delete", which correspond to "add", "fetch", "update" and "remove" in SmartClient terminology. See dataSourceOperations for a full description.


Enum Constant Summary
ADD
          Store new records
FETCH
          Fetch one or more records that match a set of search criteria.
REMOVE
          Remove (delete) an existing record
UPDATE
          Update an existing record
 
Method Summary
 String getValue()
           
static DSOperationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DSOperationType[] 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

FETCH

public static final DSOperationType FETCH
Fetch one or more records that match a set of search criteria.


ADD

public static final DSOperationType ADD
Store new records


UPDATE

public static final DSOperationType UPDATE
Update an existing record


REMOVE

public static final DSOperationType REMOVE
Remove (delete) an existing record

Method Detail

values

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

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

valueOf

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

getValue

public String getValue()
Specified by:
getValue in interface ValueEnum