Java javax.persistence.criteria CriteriaBuilder fields, constructors, methods, implement or subclass

Example usage for Java javax.persistence.criteria CriteriaBuilder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.persistence.criteria CriteriaBuilder.

The text is from its open source code.

Method

Predicateand(Expression x, Expression y)
Create a conjunction of the given boolean expressions.
Predicateand(Predicate... restrictions)
Create a conjunction of the given restriction predicates.
Orderasc(Expression x)
Create an ordering by the ascending value of the expression.
Expressionavg(Expression x)
Create an aggregate expression applying the avg operation.
Predicatebetween(Expression v, Expression x, Expression y)
Create a predicate for testing whether the first argument is between the second and third arguments in value.
Predicatebetween(Expression v, Y x, Y y)
Create a predicate for testing whether the first argument is between the second and third arguments in value.
Expressioncoalesce(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.
Expressioncoalesce(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.
Expressionconcat(Expression x, Expression y)
Create an expression for string concatenation.
Expressionconcat(Expression x, String y)
Create an expression for string concatenation.
Expressionconcat(String x, Expression y)
Create an expression for string concatenation.
Predicateconjunction()
Create a conjunction (with zero conjuncts).
CompoundSelectionconstruct(Class resultClass, Selection... selections)
Create a selection item corresponding to a constructor.
Expressioncount(Expression x)
Create an aggregate expression applying the count operation.
ExpressioncountDistinct(Expression x)
Create an aggregate expression applying the count distinct operation.
CriteriaDeletecreateCriteriaDelete(Class targetEntity)
Create a CriteriaDelete query object to perform a bulk delete operation.
CriteriaUpdatecreateCriteriaUpdate(Class targetEntity)
Create a CriteriaUpdate query object to perform a bulk update operation.
CriteriaQuerycreateQuery(Class resultClass)
Create a CriteriaQuery object with the specified result type.
CriteriaQuerycreateQuery()
Create a CriteriaQuery object.
CriteriaQuerycreateTupleQuery()
Create a CriteriaQuery object that returns a tuple of objects as its result.
ExpressioncurrentTimestamp()
Create expression to return current timestamp.
Orderdesc(Expression x)
Create an ordering by the descending value of the expression.
Predicatedisjunction()
Create a disjunction (with zero disjuncts).
Predicateequal(Expression x, Expression y)
Create a predicate for testing the arguments for equality.
Predicateequal(Expression x, Object y)
Create a predicate for testing the arguments for equality.
Predicateexists(Subquery subquery)
Create a predicate testing the existence of a subquery result.
Expressionfunction(String name, Class type, Expression... args)
Create an expression for the execution of a database function.
Predicatege(Expression x, Expression y)
Create a predicate for testing whether the first argument is greater than or equal to the second.
Predicatege(Expression x, Number y)
Create a predicate for testing whether the first argument is greater than or equal to the second.
PredicategreaterThan(Expression x, Expression y)
Create a predicate for testing whether the first argument is greater than the second.
PredicategreaterThan(Expression x, Y y)
Create a predicate for testing whether the first argument is greater than the second.
PredicategreaterThanOrEqualTo(Expression x, Expression y)
Create a predicate for testing whether the first argument is greater than or equal to the second.
PredicategreaterThanOrEqualTo(Expression x, Y y)
Create a predicate for testing whether the first argument is greater than or equal to the second.
Expressiongreatest(Expression x)
Create an aggregate expression for finding the greatest of the values (strings, dates, etc).
Predicategt(Expression x, Expression y)
Create a predicate for testing whether the first argument is greater than the second.
Predicategt(Expression x, Number y)
Create a predicate for testing whether the first argument is greater than the second.
Inin(Expression expression)
Create predicate to test whether given expression is contained in a list of values.
PredicateisEmpty(Expression collection)
Create a predicate that tests whether a collection is empty.
PredicateisFalse(Expression x)
Create a predicate testing for a false value.
PredicateisMember(Expression elem, Expression collection)
Create a predicate that tests whether an element is a member of a collection.
PredicateisMember(E elem, Expression collection)
Create a predicate that tests whether an element is a member of a collection.
PredicateisNotEmpty(Expression collection)
Create a predicate that tests whether a collection is not empty.
PredicateisNotNull(Expression x)
Create a predicate to test whether the expression is not null.
PredicateisNull(Expression x)
Create a predicate to test whether the expression is null.
PredicateisTrue(Expression x)
Create a predicate testing for a true value.
Predicatele(Expression x, Expression y)
Create a predicate for testing whether the first argument is less than or equal to the second.
Predicatele(Expression x, Number y)
Create a predicate for testing whether the first argument is less than or equal to the second.
Expressionleast(Expression x)
Create an aggregate expression for finding the least of the values (strings, dates, etc).
PredicatelessThan(Expression x, Expression y)
Create a predicate for testing whether the first argument is less than the second.
PredicatelessThan(Expression x, Y y)
Create a predicate for testing whether the first argument is less than the second.
PredicatelessThanOrEqualTo(Expression x, Expression y)
Create a predicate for testing whether the first argument is less than or equal to the second.
PredicatelessThanOrEqualTo(Expression x, Y y)
Create a predicate for testing whether the first argument is less than or equal to the second.
Predicatelike(Expression x, Expression pattern)
Create a predicate for testing whether the expression satisfies the given pattern.
Predicatelike(Expression x, String pattern)
Create a predicate for testing whether the expression satisfies the given pattern.
Predicatelike(Expression x, Expression pattern, Expression escapeChar)
Create a predicate for testing whether the expression satisfies the given pattern.
Predicatelike(Expression x, Expression pattern, char escapeChar)
Create a predicate for testing whether the expression satisfies the given pattern.
Predicatelike(Expression x, String pattern, Expression escapeChar)
Create a predicate for testing whether the expression satisfies the given pattern.
Predicatelike(Expression x, String pattern, char escapeChar)
Create a predicate for testing whether the expression satisfies the given pattern.
Expressionliteral(T value)
Create an expression for a literal.
Expressionlocate(Expression x, Expression pattern)
Create expression to locate the position of one string within another, returning position of first character if found.
Expressionlocate(Expression x, String pattern)
Create expression to locate the position of one string within another, returning position of first character if found.
Expressionlower(Expression x)
Create expression for converting a string to lowercase.
Predicatelt(Expression x, Expression y)
Create a predicate for testing whether the first argument is less than the second.
Predicatelt(Expression x, Number y)
Create a predicate for testing whether the first argument is less than the second.
Expressionmax(Expression x)
Create an aggregate expression applying the numerical max operation.
Expressionmin(Expression x)
Create an aggregate expression applying the numerical min operation.
Expressionmod(Expression x, Expression y)
Create an expression that returns the modulus of its arguments.
Expressionmod(Expression x, Integer y)
Create an expression that returns the modulus of its arguments.
Expressionmod(Integer x, Expression y)
Create an expression that returns the modulus of its arguments.
Predicatenot(Expression restriction)
Create a negation of the given restriction.
PredicatenotEqual(Expression x, Expression y)
Create a predicate for testing the arguments for inequality.
PredicatenotEqual(Expression x, Object y)
Create a predicate for testing the arguments for inequality.
PredicatenotLike(Expression x, Expression pattern)
Create a predicate for testing whether the expression does not satisfy the given pattern.
PredicatenotLike(Expression x, String pattern)
Create a predicate for testing whether the expression does not satisfy the given pattern.
Predicateor(Expression x, Expression y)
Create a disjunction of the given boolean expressions.
Predicateor(Predicate... restrictions)
Create a disjunction of the given restriction predicates.
ParameterExpressionparameter(Class paramClass)
Create a parameter expression.
ParameterExpressionparameter(Class paramClass, String name)
Create a parameter expression with the given name.
Expressionprod(Expression x, Expression y)
Create an expression that returns the product of its arguments.
Expressionprod(Expression x, N y)
Create an expression that returns the product of its arguments.
Expressionprod(N x, Expression y)
Create an expression that returns the product of its arguments.
Expressionquot(Expression x, Expression y)
Create an expression that returns the quotient of its arguments.
Expressionquot(Expression x, Number y)
Create an expression that returns the quotient of its arguments.
Expressionquot(Number x, Expression y)
Create an expression that returns the quotient of its arguments.
CaseselectCase()
Create a general case expression.
Expressionsize(Expression collection)
Create an expression that tests the size of a collection.
Expressionsize(C collection)
Create an expression that tests the size of a collection.
Expressionsum(Expression x)
Create an aggregate expression applying the sum operation.
Expressionsum(Expression x, Expression y)
Create an expression that returns the sum of its arguments.
Expressionsum(Expression x, N y)
Create an expression that returns the sum of its arguments.
Expressionsum(N x, Expression y)
Create an expression that returns the sum of its arguments.
ExpressionsumAsLong(Expression x)
Create an aggregate expression applying the sum operation to an Integer-valued expression, returning a Long result.
Jointreat(Join join, Class type)
Downcast Join object to the specified type.
CollectionJointreat(CollectionJoin join, Class type)
Downcast CollectionJoin object to the specified type.
SetJointreat(SetJoin join, Class type)
Downcast SetJoin object to the specified type.
ListJointreat(ListJoin join, Class type)
Downcast ListJoin object to the specified type.
MapJointreat(MapJoin join, Class type)
Downcast MapJoin object to the specified type.
Pathtreat(Path path, Class type)
Downcast Path object to the specified type.
Roottreat(Root root, Class type)
Downcast Root object to the specified type.
Expressiontrim(Expression x)
Create expression to trim blanks from both ends of a string.
Expressionupper(Expression x)
Create expression for converting a string to uppercase.