public class PersistentEntityProjector extends DefaultExcerptProjector implements Projector
Projector looking up a projection by name for the given source type.| Constructor and Description |
|---|
PersistentEntityProjector(ProjectionDefinitions projectionDefinitions,
ProjectionFactory factory,
String projection,
ResourceMappings mappings)
Creates a new
PersistentEntityProjector using the given ProjectionDefinitions,
ProjectionFactory and projection name. |
| Modifier and Type | Method and Description |
|---|---|
Object |
project(Object source)
Returns the projection object for the given source.
|
Object |
projectExcerpt(Object source)
Creates a excerpt projection for the given source.
|
hasExcerptProjectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasExcerptProjectionpublic PersistentEntityProjector(ProjectionDefinitions projectionDefinitions, ProjectionFactory factory, String projection, ResourceMappings mappings)
PersistentEntityProjector using the given ProjectionDefinitions,
ProjectionFactory and projection name.projectionDefinitions - must not be null.factory - must not be null.projection - can be empty.public Object project(Object source)
Projectorpublic Object projectExcerpt(Object source)
ExcerptProjectorExcerptProjector.hasExcerptProjection(Class).projectExcerpt in interface ExcerptProjectorprojectExcerpt in class DefaultExcerptProjectorsource - must not be null.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.