Interface CriteriaBuilder
- All Superinterfaces:
PredicateFactory
- All Known Implementing Classes:
CriteriaBuilderImpl
Used to construct criteria queries, compound selections, expressions, predicates, orderings.
-
Nested Class Summary
Nested classes/interfaces inherited from interface cz.cvut.kbss.jopa.model.query.criteria.PredicateFactory
PredicateFactory.In<T>
-
Method Summary
Modifier and TypeMethodDescription<N extends Number>
Expression<N>abs
(Expression<N> x) Create an expression that returns the absolute value of its argument.asc
(Expression<?> x) Create an ordering by the ascending value of the expression.<N extends Number>
Expression<N>ceil
(Expression<N> x) Create an expression that returns the smallest (closest to negative infinity) numeric value that is greater than or equal to the argument and is equal to a mathematical integer.count
(Expression<?> x) Create an aggregate expression applying the count operation.<T> CriteriaQuery<T>
createQuery
(Class<T> resultClass) Create a CriteriaQuery object with the specified result type.desc
(Expression<?> x) Create an ordering by the descending value of the expression.<N extends Number>
Expression<N>floor
(Expression<N> x) Create an expression that returns the largest (closest to positive infinity) numeric value that is less than or equal to the argument and is equal to a mathematical integer.Create expression for extracting language tag from a string literal.length
(Expression<String> x) Create expression to return length of a string.Create an expression for a string literal with language tag.<T> Expression<T>
literal
(T value) Create an expression for a literal.lower
(Expression<String> x) Create expression for converting a string to lowercase.<T> ParameterExpression<T>
Create a parameter expression.<T> ParameterExpression<T>
Create a parameter expression with the given name.upper
(Expression<String> x) Create expression for converting a string to uppercase.Methods inherited from interface cz.cvut.kbss.jopa.model.query.criteria.PredicateFactory
and, and, equal, equal, equal, greaterThan, greaterThan, greaterThanOrEqual, greaterThanOrEqual, in, isMember, isNotMember, lessThan, lessThan, lessThanOrEqual, lessThanOrEqual, like, like, not, notEqual, notEqual, notIn, notLike, notLike, or, or
-
Method Details
-
createQuery
Create a CriteriaQuery object with the specified result type.- Parameters:
resultClass
- type of the query result- Returns:
- criteria query object
-
abs
Create an expression that returns the absolute value of its argument.- Parameters:
x
- expression- Returns:
- absolute value
-
ceil
Create an expression that returns the smallest (closest to negative infinity) numeric value that is greater than or equal to the argument and is equal to a mathematical integer.- Parameters:
x
- expression- Returns:
- ceiling value
-
floor
Create an expression that returns the largest (closest to positive infinity) numeric value that is less than or equal to the argument and is equal to a mathematical integer.- Parameters:
x
- expression- Returns:
- floor value
-
count
Create an aggregate expression applying the count operation. Return type of count function in SPARQL is xsd:integer which JOPA internally represents as Integer.- Parameters:
x
- expression representing input value to count operation- Returns:
- count expression
-
length
Create expression to return length of a string.- Parameters:
x
- string expression- Returns:
- length expression
-
parameter
Create a parameter expression.- Parameters:
paramClass
- parameter class- Returns:
- parameter expression
-
parameter
Create a parameter expression with the given name.- Parameters:
paramClass
- parameter classname
- name that can be used to refer to the parameter- Returns:
- parameter expression
-
literal
Create an expression for a literal.- Parameters:
value
- value represented by the expression- Returns:
- expression literal
-
literal
Create an expression for a string literal with language tag.- Parameters:
value
- string value represented by the expressionlanguageTag
- string language tag- Returns:
- expression literal
-
lower
Create expression for converting a string to lowercase.- Parameters:
x
- string expression- Returns:
- expression to convert to lowercase
-
upper
Create expression for converting a string to uppercase.- Parameters:
x
- string expression- Returns:
- expression to convert to uppercase
-
lang
Create expression for extracting language tag from a string literal.- Parameters:
x
- String-valued attribute- Returns:
- Expression to extract language tag
-
asc
Create an ordering by the ascending value of the expression.- Parameters:
x
- expression used to define the ordering- Returns:
- ascending ordering corresponding to the expression
-
desc
Create an ordering by the descending value of the expression.- Parameters:
x
- expression used to define the ordering- Returns:
- descending ordering corresponding to the expression
-