public static enum EntityProjection.ProjectionType extends Enum<EntityProjection.ProjectionType>
| Enum Constant and Description |
|---|
CLOSED
A closed projection only contains accessor methods that all match properties of the target aggregate.
|
DTO
A DTO projection defines a value type that hold properties for the fields that are supposed to be retrieved.
|
OPEN
An open projection has accessor methods in the interface that can be used to compute new values by using the
Value annotation. |
| Modifier and Type | Method and Description |
|---|---|
static EntityProjection.ProjectionType |
from(ProjectionInformation information)
Obtain the
EntityProjection.ProjectionType from a given ProjectionInformation. |
static EntityProjection.ProjectionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EntityProjection.ProjectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityProjection.ProjectionType DTO
public static final EntityProjection.ProjectionType OPEN
Value annotation.public static final EntityProjection.ProjectionType CLOSED
public static EntityProjection.ProjectionType[] values()
for (EntityProjection.ProjectionType c : EntityProjection.ProjectionType.values()) System.out.println(c);
public static EntityProjection.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 nullpublic static EntityProjection.ProjectionType from(ProjectionInformation information)
EntityProjection.ProjectionType from a given ProjectionInformation.information - must not be null.EntityProjection.ProjectionType according to type and
ProjectionInformation.isClosed().Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.