Package io.jmix.core
Enum Class FetchPlanSerializationOption
- All Implemented Interfaces:
Serializable
,Comparable<FetchPlanSerializationOption>
,Constable
An object that configures how to serialize a fetch plan to JSON. Objects of this type are used by methods of the
FetchPlanSerialization
. This object may be also used during the deserialization.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSpecifies that fetch plan is serialized in the compact format.Specifies that an information about properties fetch mode will be included to the JSON. -
Method Summary
Modifier and TypeMethodDescriptionstatic FetchPlanSerializationOption
Returns the enum constant of this class with the specified name.static FetchPlanSerializationOption[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMPACT_FORMAT
Specifies that fetch plan is serialized in the compact format. In compact format repeated nested fetch plans are replaced with just a fetch plan name. For example fetch plan forcustomerGroup2
is defined with a string:{ "name": "customer-fp", "entity": "sample_Customer", "properties": [ "name", { "name": "customerGroup", "fetchPlan": { "name": "customerGroup-fp", "properties": [ "id", "createdBy", "createTs", "name" ] } }, { "name": "customerGroup2", "fetchPlan": "customerGroup-fp" } ] }
-
INCLUDE_FETCH_MODE
Specifies that an information about properties fetch mode will be included to the JSON. Default fetchMode value (AUTO) will not be included.
-
-
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
-