About CriteriaBuilder

1-10 of 200Refresh
Manual
93

JPA Criteria API Queries

Country c An equivalent query can be built using the JPA criteria API as follows: CriteriaBuilder cb ... c = q.from(Country.class); q.select(c); The CriteriaBuilder interface serves as the main ... query can be built using the JPA criteria API as follows: CriteriaBuilder cb = em.getCriteriaBuilder
JPA Doc
88

JPA Queries

the criteria API is the CriteriaBuilder interface: A CriteriaBuilder instance is the factory of criteria
JPA Doc
41

javax.persistence.criteria.CriteriaBuilder.In

javax.persistence.criteria Interface CriteriaBuilder.In Superinterfaces: ExpressionCriteriaBuilder.not() method. Whether the predicate has been created from another predicate by applying the Predicate.not() method or the CriteriaBuilder.not
JPA Doc
41

javax.persistence.criteria.CriteriaBuilder.Trimspec

javax.persistence.criteria Enum CriteriaBuilder.Trimspec java.lang.Object java.lang.EnumCriteriaBuilder.Trimspec> javax.persistence.criteria.CriteriaBuilder.Trimspec Implemented Interfaces: Serializable, Comparable Used to specify how strings
JPA Doc
38

coalesce()

Method javax.persistence.criteria.CriteriaBuilder Coalesce coalesce() Create a coalesce expression. Returns: coalesce expression Since: JPA 2.0 Selection alias(String name) Assigns an alias to the selection item. Assigns an alias to the selection item. Once assigned, an alias
JPA Doc
38

coalesce(x, y)

Method javax.persistence.criteria.CriteriaBuilder Expression coalesce(   Expression x,   Expression y ) Create an expression that returns null if all its arguments evaluate to null, and the value of the first non-null argument otherwise. Parameters: x - expression y - expression Returns: coalesce expression Since: JPA 2.0
JPA Doc
38

coalesce(x, y)

Method javax.persistence.criteria.CriteriaBuilder Expression coalesce(   Expression x,   Y y ) Create an expression that returns null if all its arguments evaluate to null, and the value of the first non-null argument otherwise. Parameters: x - expression y - value Returns: coalesce expression Since: JPA 2.0
JPA Doc
38

coalesce(x, y)

Method javax.persistence.criteria.CriteriaBuilder Expression coalesce(   Expression x,   Expression y ) Create an expression that returns null if all its arguments evaluate to null, and the value of the first non-null argument otherwise. Parameters: x - expression y - expression Returns: coalesce expression Since: JPA 2.0
JPA Doc
38

concat(x, y)

Method javax.persistence.criteria.CriteriaBuilder Expression concat(   Expression x,   Expression y ) Create an expression for string concatenation. Parameters: x - string expression y - string expression Returns: expression corresponding to concatenation Since: JPA 2.0
JPA Doc
38

concat(x, y)

Method javax.persistence.criteria.CriteriaBuilder Expression concat(   Expression x,   String y ) Create an expression for string concatenation. Parameters: x - string expression y - string Returns: expression corresponding to concatenation Since: JPA 2.0