Interface CompositeProjectionDefinition<T>
- All Superinterfaces:
AutoCloseable
,ProjectionDefinition<T>
-
Method Summary
Modifier and TypeMethodDescriptionapply
(CompositeProjectionInnerStep initialStep, ProjectionDefinitionContext context) default void
close()
Close any resource before the projection definition is discarded.default SearchProjection
<? extends T> create
(ProjectionDefinitionContext context) Creates a projection with a specific projected type.default SearchProjection
<? extends T> create
(SearchProjectionFactory<?, ?> factory, ProjectionDefinitionContext context) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
create
@Deprecated(since="8.0", forRemoval=true) default SearchProjection<? extends T> create(SearchProjectionFactory<?, ?> factory, ProjectionDefinitionContext context) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ProjectionDefinition
Creates a projection with a specific projected type.- Specified by:
create
in 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:
-
create
Description copied from interface:ProjectionDefinition
Creates a projection with a specific projected type.- Specified by:
create
in interfaceProjectionDefinition<T>
- Parameters:
context
- The context in which the definition is applied.- Returns:
- The created
SearchPredicate
. - See Also:
-
apply
CompositeProjectionValueStep<?,T> apply(CompositeProjectionInnerStep initialStep, ProjectionDefinitionContext context) -
close
default void close()Close any resource before the projection definition is discarded.- Specified by:
close
in interfaceAutoCloseable
-