Interface JpaRSQLCriteriaBuilder
-
- All Known Implementing Classes:
BasicJpaRSQLCriteriaBuilder
,DefaultJpaRSQLCriteriaBuilder
public interface JpaRSQLCriteriaBuilder
ConstructPredicate
instances based on information from the RSQL parsing process.- Author:
- Jeff Fischer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.persistence.criteria.Predicate
createCriteria(cz.jirutka.rsql.parser.ast.ComparisonNode comparisonNode, Class<?> rootType)
Create aPredicate
based on a comparisonNode
and root repository domain type.javax.persistence.criteria.Predicate
createCriteria(cz.jirutka.rsql.parser.ast.LogicalNode logicalNode, Class<?> rootType)
Create aPredicate
based on a logicalNode
and root repository domain type.javax.persistence.criteria.Predicate
createCriteria(cz.jirutka.rsql.parser.ast.Node node, Class<?> rootType)
Create aPredicate
based on a genericNode
and root repository domain type.javax.persistence.criteria.Predicate
createCriteria(String selector, cz.jirutka.rsql.parser.ast.ComparisonOperator operator, List<String> arguments, Class<?> rootType)
Create aPredicate
based on a set of comparison parameters and a root repository domain type.
-
-
-
Method Detail
-
createCriteria
javax.persistence.criteria.Predicate createCriteria(cz.jirutka.rsql.parser.ast.Node node, Class<?> rootType)
Create aPredicate
based on a genericNode
and root repository domain type.- Parameters:
node
- A generic node structure in a structured RSQL queryrootType
- The root repository domain type- Returns:
- The query criteria
-
createCriteria
javax.persistence.criteria.Predicate createCriteria(cz.jirutka.rsql.parser.ast.LogicalNode logicalNode, Class<?> rootType)
Create aPredicate
based on a logicalNode
and root repository domain type. Logical nodes are 'and'/'or' combinations of comparison nodes.- Parameters:
logicalNode
- A logical node structure in a structured RSQL queryrootType
- the root repository domain type- Returns:
- The query criteria
-
createCriteria
javax.persistence.criteria.Predicate createCriteria(cz.jirutka.rsql.parser.ast.ComparisonNode comparisonNode, Class<?> rootType)
Create aPredicate
based on a comparisonNode
and root repository domain type. Comparison nodes filter values on a specific field.- Parameters:
comparisonNode
- A comparison node structure in a structured RSQL queryrootType
- the root repository domain type- Returns:
- The query criteria
-
createCriteria
javax.persistence.criteria.Predicate createCriteria(String selector, cz.jirutka.rsql.parser.ast.ComparisonOperator operator, List<String> arguments, Class<?> rootType)
Create aPredicate
based on a set of comparison parameters and a root repository domain type.- Parameters:
selector
- The fieldoperator
- The type of comparison (=,!=,lt,etc...)arguments
- One or more values to check against the fieldrootType
- the root repository domain type- Returns:
- The query criteria
-
-