Package com.smartgwt.client.types
Enum MultiUpdatePolicy
- All Implemented Interfaces:
ValueEnum
,Serializable
,Comparable<MultiUpdatePolicy>
,Constable
Controls when primary keys are required for "update" and "remove" server operations, when allowMultiUpdate has not been
explicitly configured on either the
operationBinding.allowMultiUpdate
or via the server-side API DSRequest.setAllowMultiUpdate()
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionhaving a PK is always required no matter whathaving a PK is required for requests that come from the client or are specifically marked via dsRequest.setClientRequest(true)having a PK is never required, even for requests from a browser.having a PK is required for any request that is associated with an RPCManager, which includes clientRequests and server-created DSRequests where an RPCManager was explicitly provided -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
static MultiUpdatePolicy
Returns the enum constant of this type with the specified name.static MultiUpdatePolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NEVER
having a PK is never required, even for requests from a browser. Note: dangerous setting that allows end users to wipe out entire tablesIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "never". -
CLIENTREQUEST
having a PK is required for requests that come from the client or are specifically marked via dsRequest.setClientRequest(true)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "clientRequest". -
RPCMANAGER
having a PK is required for any request that is associated with an RPCManager, which includes clientRequests and server-created DSRequests where an RPCManager was explicitly providedIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "rpcManager". -
ALWAYS
having a PK is always required no matter whatIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "always".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-
getValue
-