Enum Class AggregationOptions.DomainTypeMapping
java.lang.Object
java.lang.Enum<AggregationOptions.DomainTypeMapping>
org.springframework.data.mongodb.core.aggregation.AggregationOptions.DomainTypeMapping
- All Implemented Interfaces:
Serializable
,Comparable<AggregationOptions.DomainTypeMapping>
,Constable
- Enclosing class:
- AggregationOptions
public static enum AggregationOptions.DomainTypeMapping
extends Enum<AggregationOptions.DomainTypeMapping>
Aggregation pipeline Domain type mappings supported by the mapping layer.
- Since:
- 3.2
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static AggregationOptions.DomainTypeMapping[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRICT
Mapping throws errors for non-existent, but referenced fields. -
RELAXED
Fields that do not exist in the model are treated as-is. -
NONE
Do not attempt to map fields against the model and treat the entire pipeline as-is.
-
-
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
-