Interface CompositeProjectionDefinition<T>
-
- All Superinterfaces:
AutoCloseable,ProjectionDefinition<T>
- All Known Implementing Classes:
PojoConstructorProjectionDefinition
public interface CompositeProjectionDefinition<T> extends ProjectionDefinition<T>, AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CompositeProjectionValueStep<?,T>apply(SearchProjectionFactory<?,?> projectionFactory, CompositeProjectionInnerStep initialStep, ProjectionDefinitionContext context)default voidclose()Close any resource before the projection definition is discarded.default SearchProjection<? extends T>create(SearchProjectionFactory<?,?> factory, ProjectionDefinitionContext context)Creates a projection with a specific projected type.
-
-
-
Method Detail
-
create
default SearchProjection<? extends T> create(SearchProjectionFactory<?,?> factory, ProjectionDefinitionContext context)
Description copied from interface:ProjectionDefinitionCreates a projection with a specific projected type.- Specified by:
createin interfaceProjectionDefinition<T>- Parameters:
factory- A projection factory. If the projection is used in the context of an object field, this factory expects field paths to be provided relative to that same object field. This factory is only valid in the present context and must not be used afterProjectionDefinition.create(SearchProjectionFactory, ProjectionDefinitionContext)returns.context- The context in which the definition is applied.- Returns:
- The created
SearchPredicate. - See Also:
SearchPredicateFactory,ProjectionDefinitionContext
-
apply
CompositeProjectionValueStep<?,T> apply(SearchProjectionFactory<?,?> projectionFactory, CompositeProjectionInnerStep initialStep, ProjectionDefinitionContext context)
-
close
default void close()
Close any resource before the projection definition is discarded.- Specified by:
closein interfaceAutoCloseable
-
-