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.
|
GETFILE
Use the DataSource as a
source for files . |
HASFILE
Use the DataSource as a
source for files . |
LISTFILES
Use the DataSource as a
source for files . |
REMOVE
Remove (delete) an existing record
|
REMOVEFILE
Use the DataSource as a
source for files . |
RENAMEFILE
Use the DataSource as a
source for files . |
SAVEFILE
Use the DataSource as a
source for files . |
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
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "fetch".
public static final DSOperationType ADD
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "add".
public static final DSOperationType UPDATE
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "update".
public static final DSOperationType REMOVE
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "remove".
public static final DSOperationType CUSTOM
ResultSet
s. See DataSource.performCustomOperation()
.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "custom".
public static final DSOperationType VALIDATE
DataSource.validateData()
.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "validate".
public static final DSOperationType VIEWFILE
BinaryFields
.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "viewFile".
public static final DSOperationType DOWNLOADFILE
BinaryFields
.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "downloadFile".
public static final DSOperationType CLIENTEXPORT
exportClientData()
and cannot be used directly. Usable only with
the Smart GWT server framework.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "clientExport".
public static final DSOperationType GETFILE
source for files
. Used automatically by DataSource.getFile()
, and would not normally be used directly. Usable only
with the Smart GWT server framework.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "getFile".
public static final DSOperationType HASFILE
source for files
. Used automatically by DataSource.hasFile()
, and would not normally be used directly. Usable only
with the Smart GWT server framework.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "hasFile".
public static final DSOperationType LISTFILES
source for files
. Used automatically by DataSource.listFiles()
, and would not normally be used directly. Usable
only with the Smart GWT server framework.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "listFiles".
public static final DSOperationType REMOVEFILE
source for files
. Used automatically by DataSource.removeFile()
, and would not normally be used directly. Usable
only with the Smart GWT server framework.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "removeFile".
public static final DSOperationType SAVEFILE
source for files
. Used automatically by DataSource.saveFile()
, and would not normally be used directly. Usable
only with the Smart GWT server framework.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "saveFile".
public static final DSOperationType RENAMEFILE
source for files
. Used automatically by DataSource.renameFile()
, and would not normally be used directly. Usable
only with the Smart GWT server framework.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "renameFile".
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