About expression

api-jpa

javax.persistence.criteria.Expression

Type for query expressions.(Interface of JPA)

 
api-jpa

javax.persistence.criteria.CriteriaBuilder

Used to construct criteria queries, compound selections, expressions, predicates, orderings.(Interface of JPA)

 
manual

JPA Query Expressions (JPQL / Criteria)

Describes JPA query (JPQL / Criteria API) expressions (literals, operators and functions).... JPQL / Criteria Literals Every query expression consists of at least one atomic component. More complex query ... CriteriaBuilder's method Create an expression for a literal. See JavaDoc Reference Page... , ... CriteriaBuilder's method Create an expression for a null literal with the given type. See JavaDoc Reference ...

 
manual

Strings in JPQL and Criteria Queries

Explains string expressions in JPQL queries, including LIKE, LOCATE, LOWER, UPPER, TRIM, CONCAT and SUBSTRING.... is always the string to check for a match (usually a path expression) and the right operand is always the pattern (usually a parameter or ... // Create path and parameter expressions: Expression javax.persistence.criteria.Expression JPA interface ...

 
manual

Numbers in JPQL and Criteria Queries

Shows how numbers, arithmetic expressions and numeric functions and operators (MOD, ABS) can be used in JPQL queries.... to combine simple numeric values into a more complex expression. This page covers the following topics: ... operands. At least one operand must be a criteria numeric expression. The other operand may be either another numeric expression or a ...

 
manual

Paths and Types in JPQL and Criteria API

Explains how to use object expressions (path navigation, type) in JPA/JPQL.... Navigation through Path Expressions A path expression always starts with an instance of a user defined class (represented by a variable, parameter or prefix path expression) and uses the dot ( . ) operator to navigate through persistent ...

 
manual

Literals in JPQL and Criteria Queries

Describes literals in JPQL, including null, false, true, numbers, strings, dates enums and types.... CriteriaBuilder's method Create an expression for a literal. See JavaDoc Reference Page... , takes a Java object and returns a literal expression. For example: // Boolean literals: Expression ...

 
manual

Collections in JPQL and Criteria Queries

Shows how collections and maps can be used in JPQL queries.... // Create path and parameter expressions: Expression javax.persistence.criteria.Expression JPA interface Type for query expressions. See JavaDoc ...

 
manual

Logical Operators in JPQL and Criteria API

Explains how to use AND, OR and NOT in JPQL queries.... expressions are represented in criteria queries by Expression javax.persistence.criteria.Expression JPA interface Type for query expressions. See JavaDoc ...

 
api-jpa

Criteria Query Expressions

Reference (JavaDoc) of JPA query expression interfaces, including Expression, Predicate, Path, ParameterExpression and Subquery.... criteria queries: javax.persistence.criteria.Expression javax.persistence.criteria.Predicate ...