M - the mapped type acting as view onto the domain type.D - the domain type.public class EntityProjection<M,D> extends Object implements Streamable<EntityProjection.PropertyProjection<?,?>>
projection.| Modifier and Type | Class and Description |
|---|---|
static class |
EntityProjection.ContainerPropertyProjection<M,D>
Descriptor for a property-level type along its potential projection that is held within a
Collection-like
or Map-like container. |
static class |
EntityProjection.ProjectionType
Projection type.
|
static class |
EntityProjection.PropertyProjection<M,D>
Descriptor for a property-level type along its potential projection.
|
| Modifier and Type | Method and Description |
|---|---|
EntityProjection<?,?> |
findProperty(String name)
Return a
EntityProjection for a property identified by name. |
void |
forEachRecursive(Consumer<? super EntityProjection.PropertyProjection<?,?>> action)
Performs the given action for each element of the
Streamable recursively until all elements of the graph
have been processed or the action throws an Exception. |
TypeInformation<?> |
getActualDomainType() |
TypeInformation<?> |
getActualMappedType() |
TypeInformation<D> |
getDomainType() |
TypeInformation<M> |
getMappedType() |
boolean |
isClosedProjection() |
boolean |
isProjection() |
Iterator<EntityProjection.PropertyProjection<?,?>> |
iterator() |
static <T> EntityProjection<T,T> |
nonProjecting(Class<T> type)
Create a non-projecting variant of a
type. |
static <M,D> EntityProjection<M,D> |
nonProjecting(TypeInformation<M> mappedType,
TypeInformation<D> domainType,
List<EntityProjection.PropertyProjection<?,?>> properties)
Create a non-projecting variant of a mapped type.
|
static <M,D> EntityProjection<M,D> |
projecting(TypeInformation<M> mappedType,
TypeInformation<D> domainType,
List<EntityProjection.PropertyProjection<?,?>> properties,
EntityProjection.ProjectionType projectionType)
Create a projecting variant of a mapped type.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitand, and, and, and, empty, filter, flatMap, get, isEmpty, map, of, of, of, stream, toList, toSet, toStreamable, toStreamableforEach, spliteratorpublic static <M,D> EntityProjection<M,D> projecting(TypeInformation<M> mappedType, TypeInformation<D> domainType, List<EntityProjection.PropertyProjection<?,?>> properties, EntityProjection.ProjectionType projectionType)
mappedType - the target projection type. Must not be null.domainType - the source domain type. Must not be null.properties - properties to include.projectionType - must not be null.EntityProjection.public static <M,D> EntityProjection<M,D> nonProjecting(TypeInformation<M> mappedType, TypeInformation<D> domainType, List<EntityProjection.PropertyProjection<?,?>> properties)
mappedType - the target projection type. Must not be null.domainType - the source domain type. Must not be null.properties - properties to include.EntityProjection.public static <T> EntityProjection<T,T> nonProjecting(Class<T> type)
type.type - must not be null.EntityProjection.public void forEachRecursive(Consumer<? super EntityProjection.PropertyProjection<?,?>> action)
Streamable recursively until all elements of the graph
have been processed or the action throws an Exception. Unless otherwise specified by the implementing
class, actions are performed in the order of iteration (if an iteration order is specified). Exceptions thrown by
the action are relayed to the caller.action - must not be null.public Iterator<EntityProjection.PropertyProjection<?,?>> iterator()
iterator in interface Iterable<EntityProjection.PropertyProjection<?,?>>public TypeInformation<M> getMappedType()
public TypeInformation<?> getActualMappedType()
IllegalStateException - if the actual type cannot be resolved.public TypeInformation<D> getDomainType()
public TypeInformation<?> getActualDomainType()
IllegalStateException - if the actual type cannot be resolved.public boolean isProjection()
true if the getMappedType() is a projection.public boolean isClosedProjection()
true if the getMappedType() is a closed projection.@Nullable public EntityProjection<?,?> findProperty(String name)
EntityProjection for a property identified by name.name - the property name.null otherwise.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.