Interface PostMapper
-
- All Known Subinterfaces:
DomainMapperManager,PostMapperMember
- All Known Implementing Classes:
DefaultDomainMapperManager
public interface PostMapperCommon interface forPostMapperMemberandDomainMapperManager. Note,transform(List, List, ContextInfo)must be called explicitly with results to transform, this does not happen automatically during theDomainMapperMemberlifecycle. Interesting uses of this phase include transforming an entire list of items in bulk.- Author:
- Jeff Fischer
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default <P,D>
voidtransform(List<P> projections, List<D> entities, ContextInfo contextInfo)Perform any required modifications to the list of projections.default <P,D>
voidtransform(P projection, D entity, ContextInfo contextInfo)Perform any required modifications to the list of projections.
-
-
-
Method Detail
-
transform
default <P,D> void transform(List<P> projections, @Nullable List<D> entities, @Nullable ContextInfo contextInfo)
Perform any required modifications to the list of projections. This represents an opportunity to transform the entire list of projections in bulk, or perform bulk related queries.- Type Parameters:
P- The projection typeD- The repository instance type- Parameters:
projections- List of projections to transform.entities- The original list of repository entities from which the projection list was derived.contextInfo- The context information used to make tracking determinations relevant to sandboxing and multitenant concerns. SeeTrackableRepositoryfor more info on persistence behavior based on context.
-
transform
default <P,D> void transform(P projection, @Nullable D entity, @Nullable ContextInfo contextInfo)Perform any required modifications to the list of projections. This represents an opportunity to transform the entire list of projections in bulk, or perform bulk related queries.- Type Parameters:
P- The projection typeD- The repository instance type- Parameters:
projection- projection to transform.entity- The original repository entity from which the projection was derived.contextInfo- The context information used to make tracking determinations relevant to sandboxing and multitenant concerns. SeeTrackableRepositoryfor more info on persistence behavior based on context.
-
-