Package com.veeva.vault.sdk.api.query
Enum Class QueryTargetOption
- All Implemented Interfaces:
Serializable
,Comparable<QueryTargetOption>
,Constable
Valid options to modify the scope of a VQL query target.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates all matching versions should be returned.Indicates the latest matching version should be returned, even if it is not the absolute latest version. -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryTargetOption
Returns the enum constant of this class with the specified name.static QueryTargetOption[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LATEST_FROM_ALLVERSIONS
Indicates the latest matching version should be returned, even if it is not the absolute latest version. This option is supported on queries againstdocuments
orbinders
only.This is equivalent to using the
LATESTVERSION
andALLVERSIONS
keywords in a VQL query.SELECT LATESTVERSION id, name__v FROM ALLVERSIONS documents
-
ALLVERSIONS
Indicates all matching versions should be returned. Note that multiple versions of the same record can be returned. This option is supported on queries againstdocuments
orbinders
only.This is equivalent to using the
ALLVERSIONS
keyword in a VQL query.SELECT id, name__v FROM ALLVERSIONS documents
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-