public enum ProjectionType extends Enum<ProjectionType>
Projector which strategy to use for the projection of the annotated property.Projector,
Projection.value()| Enum Constant and Description |
|---|
asIs
Project this property as is from the source object onto the target object.
|
none
Ignore this property in tthe projection even if there is a property on the source object with the same name.
|
projection
Project the projection of the source object's non-simple property.
|
projectionCollection
Analogue to
projectionCollection but using the projection instead of a property value. |
property
The projection of this property will not use the source object's property value but a property
of it.
|
propertyCollection
Project only a property of the entries of a source object's collection property
into a new collection of properties of the source object's non-simple property value.
|
| Modifier and Type | Method and Description |
|---|---|
static ProjectionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProjectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProjectionType none
public static final ProjectionType asIs
public static final ProjectionType property
Projection.referencePropertyName()public static final ProjectionType projection
public static final ProjectionType propertyCollection
java.util.List<Address> can be projected on
java.util.List<String> where the elements of the list are the city names of the addresses from
the source object.public static final ProjectionType projectionCollection
projectionCollection but using the projection instead of a property value.public static ProjectionType[] values()
for (ProjectionType c : ProjectionType.values()) System.out.println(c);
public static ProjectionType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018. All rights reserved.