public enum DSOperationType extends java.lang.Enum<DSOperationType> implements ValueEnum
DataSourceOperations
for a full description. There are also additional, non-CRUD operations explained below.
Enum Constant and Description |
---|
ADD
Store new records
|
CLIENTEXPORT
Upload formatted client data and export it to Excel, XML and other formats.
|
CUSTOM
perform some arbitrary custom logic that is not a CRUD operation.
|
DOWNLOADFILE
Like "viewFile", but the HTTP header Content-Disposition is used to suggest that the browser show a save dialog.
|
FETCH
Fetch one or more records that match a set of search criteria.
|
REMOVE
Remove (delete) an existing record
|
UPDATE
Update an existing record
|
VALIDATE
Run server-side validation for "add" or "update" without actually adding or updating anything.
|
VIEWFILE
Retrieve a file stored in a binary field in a DataSource record, and allow the browser to choose whether to view it
directly or prompt the user to save.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static DSOperationType |
valueOf(java.lang.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.
|
public static final DSOperationType FETCH
public static final DSOperationType ADD
public static final DSOperationType UPDATE
public static final DSOperationType REMOVE
public static final DSOperationType CUSTOM
ResultSet
s. See DataSource.performCustomOperation
.public static final DSOperationType VALIDATE
DataSource.validateData
.public static final DSOperationType VIEWFILE
BinaryFields
.public static final DSOperationType DOWNLOADFILE
BinaryFields
.public static final DSOperationType CLIENTEXPORT
exportClientData()
and cannot be used directly. Usable only with
the Smart GWT server framework.public static DSOperationType[] values()
for (DSOperationType c : DSOperationType.values()) System.out.println(c);
public static DSOperationType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null