T- Entity type
public interface QueryBuilder<T>
Queryinstances. Iteratively add where() clauses to the query, and then use
UnitOfWork.newQuery(QueryBuilder)to instantiate the Query. QueryBuilders are immutable, so when adding new where-clauses you get new instances. This DDD tip: Query objects are not executed immediately, so they should be constructed in the domain model and handed over to the UI, which can then further constrain it before actual execution.
|Modifier and Type||Method and Description|
Create a new query with the declared where-clauses that will be evaluated against the iterable entries.
Add a where-clause to the Query.
QueryBuilder<T> where(Predicate<Composite> specification)
QueryExpressionsto create the expression.
specification- the where clause