Interface SearchSortDslContext<F extends SearchSortBuilderFactory<?>,PDF extends SearchPredicateFactory>
-
- Type Parameters:
F
- The type of sort factory.PDF
- The type of factory used to create predicates inSortFilterStep.filter(Function)
.
public interface SearchSortDslContext<F extends SearchSortBuilderFactory<?>,PDF extends SearchPredicateFactory>
Represents the current context in the search DSL, including in particular the sort builder factory and the knowledge of previous sorts chained usingSortThenStep.then()
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SearchSortDslContext<?,PDF>
append(SearchSort sort)
Create a new context with a sort appended.F
builderFactory()
PDF
predicateFactory()
SearchSort
toSort()
Create aSearchSort
instance matching the definition given in the previous DSL steps.<PDF2 extends SearchPredicateFactory>
SearchSortDslContext<F,PDF2>withExtendedPredicateFactory(SearchPredicateFactoryExtension<PDF2> extension)
-
-
-
Method Detail
-
builderFactory
F builderFactory()
- Returns:
- The sort builder factory. Will always return the exact same instance.
-
append
SearchSortDslContext<?,PDF> append(SearchSort sort)
Create a new context with a sort appended.- Parameters:
sort
- The sort to add.- Returns:
- A new DSL context, with the given builder appended.
-
predicateFactory
PDF predicateFactory()
- Returns:
- The predicate factory. Will always return the exact same instance.
-
withExtendedPredicateFactory
<PDF2 extends SearchPredicateFactory> SearchSortDslContext<F,PDF2> withExtendedPredicateFactory(SearchPredicateFactoryExtension<PDF2> extension)
- Type Parameters:
PDF2
- The type of the new predicate factory.- Parameters:
extension
- The extension to apply to the predicate factory.- Returns:
- A new context, identical to
this
except for the predicate factory which is extended.
-
toSort
SearchSort toSort()
Create aSearchSort
instance matching the definition given in the previous DSL steps.- Returns:
- The
SearchSort
instance.
-
-