Note that Predicate is used instead of
Expression<Boolean> in this API in
order to work around the fact that Java generics are not
compatible with varags.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| public static interface | |
| public static interface | |
| public static interface | |
| public static enum | CriteriaBuilder.
Used to specify how strings are trimmed. |
| Modifier and Type | Method and Description |
|---|---|
| public <N extends Number> Expression | Returns: absolute valueexpression x)Create an expression that returns the absolute value of its argument. |
| public <Y> Expression | |
| public Predicate | Returns: and predicateboolean expression x, Expression<Boolean> boolean expression y)Create a conjunction of the given boolean expressions. |
| public Predicate | |
| public Predicate | |
| public <Y> Expression | |
| public CompoundSelection | |
| public CompoundSelection | |
| public Order | Returns: ascending ordering corresponding to the expressionexpression used to define the ordering expression)Create an ordering by the ascending value of the expression. |
| public Order | Returns: ascending ordering corresponding to the expressionexpression used to define the ordering expression, Nulls the precedence of null values nullPrecedence)Create an ordering by the ascending value of the expression. |
| public <N extends Number> Expression | Returns: avg expressionexpression representing input value to avg operation x)Create an aggregate expression applying the avg operation. |
| public <Y extends Comparable | Returns: between predicateexpression v, Expression<? extends Y> expression x, Expression<? extends Y> expression y)Create a predicate for testing whether the first argument is between the second and third arguments in value. |
| public <Y extends Comparable | Returns: between predicateexpression v, Y value x, Y value y)Create a predicate for testing whether the first argument is between the second and third arguments in value. |
| public <N extends Number> Expression | Returns: ceilingexpression x)Create an expression that returns the ceiling of its argument, that is, the smallest integer greater than or equal to its argument. |
| public <Y> Expression | Returns: coalesce expressionexpression x, Expression<? extends Y> 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. |
| public <Y> Expression | Returns: coalesce expressionexpression x, Y value y)Create an expression that returns null if all its arguments evaluate to null, and the value of the first non-null argument otherwise. |
| public <T> CriteriaBuilder. | |
| public Expression | Returns: expression corresponding to concatenationstring expressions expressions)Create an expression for string concatenation. |
| public Expression | Returns: expression corresponding to concatenationstring expression x, Expression<String> string expression y)Create an expression for string concatenation. |
| public Expression | Returns: expression corresponding to concatenationstring expression x, String string y)Create an expression for string concatenation. |
| public Expression | Returns: expression corresponding to concatenationstring x, Expression<String> string expression y)Create an expression for string concatenation. |
| public Predicate | |
| public <Y> CompoundSelection | |
| public Expression | Returns: count expressionexpression representing input value to count
operation x)Create an aggregate expression applying the count operation. |
| public Expression | Returns: count distinct expressionexpression representing input value to
count distinct operation x)Create an aggregate expression applying the count distinct operation. |
| public <T> CriteriaDelete | Returns: the query objecttarget type for delete operation targetEntity)Create a |
| public <T> CriteriaUpdate | Returns: the query objecttarget type for update operation targetEntity)Create a |
| public CriteriaQuery | |
| public <T> CriteriaQuery | Returns: criteria query objecttype of the query result resultClass)Create a |
| public CriteriaQuery | Returns: criteria query objectCreate a |
| public Expression | |
| public Expression | |
| public Expression | Returns: expression for current timestampCreate expression to return current timestamp. |
| public Order | Returns: descending ordering corresponding to the expressionexpression used to define the ordering expression)Create an ordering by the descending value of the expression. |
| public Order | Returns: descending ordering corresponding to the expressionexpression used to define the ordering expression, Nulls the precedence of null values nullPrecedence)Create an ordering by the descending value of the expression. |
| public <N extends Number> Expression | Returns: differenceexpression x, Expression<? extends N> expression y)Create an expression that returns the difference between its arguments. |
| public <N extends Number> Expression | Returns: differenceexpression x, N value y)Create an expression that returns the difference between its arguments. |
| public <N extends Number> Expression | Returns: differencevalue x, Expression<? extends N> expression y)Create an expression that returns the difference between its arguments. |
| public Predicate | |
| public Predicate | Returns: equality predicateexpression x, Expression<?> expression y)Create a predicate for testing the arguments for equality. |
| public Predicate | Returns: equality predicateexpression x, Object object y)Create a predicate for testing the arguments for equality. |
| public <T> CriteriaSelect | Returns: a new criteria query which returns the result of subtracting the results of the second query from the results of the first queryCreate a query by (setwise) subtraction of the second query from the first query. |
| public <T> CriteriaSelect | Returns: a new criteria query which returns the result of subtracting the results of the second query from the results of the first queryCreate a query by (setwise) subtraction of the second query from the first query, without elimination of duplicate results. |
| public Predicate | |
| public Expression | Returns: exponentialexpression x)Create an expression that returns the exponential of its argument, that is, Euler's number e raised to the power of its argument. |
| public <N, T extends Temporal> Expression | Returns: expression for the value of the extracted fielda temporal field type field, Expression<T> a date, time, or datetime temporal)Create an expression that returns the value of a field extracted from a date, time, or datetime. |
| public <N extends Number> Expression | Returns: floorexpression x)Create an expression that returns the floor of its argument, that is, the largest integer smaller than or equal to its argument. |
| public <T> Expression | Returns: expressionfunction name name, Class<T> expected result type type, Expression<?>... function arguments args)Create an expression for the execution of a database function. |
| public Predicate | Returns: greater-than-or-equal predicateexpression x, Expression<? extends Number> expression y)Create a predicate for testing whether the first argument is greater than or equal to the second. |
| public Predicate | Returns: greater-than-or-equal predicateexpression x, Number value y)Create a predicate for testing whether the first argument is greater than or equal to the second. |
| public <Y extends Comparable | Returns: greater-than predicateexpression x, Expression<? extends Y> expression y)Create a predicate for testing whether the first argument is greater than the second. |
| public <Y extends Comparable | Returns: greater-than predicateexpression x, Y value y)Create a predicate for testing whether the first argument is greater than the second. |
| public <Y extends Comparable | Returns: greater-than-or-equal predicateexpression x, Expression<? extends Y> expression y)Create a predicate for testing whether the first argument is greater than or equal to the second. |
| public <Y extends Comparable | Returns: greater-than-or-equal predicateexpression x, Y value y)Create a predicate for testing whether the first argument is greater than or equal to the second. |
| public <X extends Comparable | Returns: greatest expressionexpression representing input value to greatest
operation x)Create an aggregate expression for finding the greatest of the values (strings, dates, etc). |
| public Predicate | Returns: greater-than predicateexpression x, Expression<? extends Number> expression y)Create a predicate for testing whether the first argument is greater than the second. |
| public Predicate | Returns: greater-than predicateexpression x, Number value y)Create a predicate for testing whether the first argument is greater than the second. |
| public <T> CriteriaBuilder. | Returns: in predicateto be tested against list of values expression)Create predicate to test whether given expression is contained in a list of values. |
| public <T> CriteriaSelect | Returns: a new criteria query which returns the intersection of the results of the given queriesCreate a query which is the intersection of the given queries. |
| public <T> CriteriaSelect | Returns: a new criteria query which returns the intersection of the results of the given queriesCreate a query which is the intersection of the given queries, without elimination of duplicate results. |
| public <C extends Collection | Returns: is-empty predicateexpression collection)Create a predicate that tests whether a collection is empty. |
| public Predicate | Returns: predicateexpression to be tested x)Create a predicate testing for a false value. |
| public <E, C extends Collection | Returns: is-member predicateelement expression elem, Expression<C> expression collection)Create a predicate that tests whether an element is a member of a collection. |
| public <E, C extends Collection | Returns: is-member predicateelement elem, Expression<C> expression collection)Create a predicate that tests whether an element is a member of a collection. |
| public <C extends Collection | Returns: is-not-empty predicateexpression collection)Create a predicate that tests whether a collection is not empty. |
| public <E, C extends Collection | Returns: is-not-member predicateelement expression elem, Expression<C> expression collection)Create a predicate that tests whether an element is not a member of a collection. |
| public <E, C extends Collection | Returns: is-not-member predicateelement elem, Expression<C> expression collection)Create a predicate that tests whether an element is not a member of a collection. |
| public Predicate | Returns: is-not-null predicateexpression x)Create a predicate to test whether the expression is not null. |
| public Predicate | Returns: is-null predicateexpression x)Create a predicate to test whether the expression is null. |
| public Predicate | Returns: predicateexpression to be tested x)Create a predicate testing for a true value. |
| public <K, M extends Map | |
| public Predicate | Returns: less-than-or-equal predicateexpression x, Expression<? extends Number> expression y)Create a predicate for testing whether the first argument is less than or equal to the second. |
| public Predicate | Returns: less-than-or-equal predicateexpression x, Number value y)Create a predicate for testing whether the first argument is less than or equal to the second. |
| public <X extends Comparable | Returns: least expressionexpression representing input value to least
operation x)Create an aggregate expression for finding the least of the values (strings, dates, etc). |
| public Expression | Returns: expression for the leftmost substringstring expression x, int length of the substring to return len)Create an expression for the leftmost substring of a string, |
| public Expression | Returns: expression for the leftmost substringstring expression x, Expression<Integer> length of the substring to return len)Create an expression for the leftmost substring of a string, |
| public Expression | Returns: length expressionstring expression x)Create expression to return length of a string. |
| public <Y extends Comparable | Returns: less-than predicateexpression x, Expression<? extends Y> expression y)Create a predicate for testing whether the first argument is less than the second. |
| public <Y extends Comparable | Returns: less-than predicateexpression x, Y value y)Create a predicate for testing whether the first argument is less than the second. |
| public <Y extends Comparable | Returns: less-than-or-equal predicateexpression x, Expression<? extends Y> expression y)Create a predicate for testing whether the first argument is less than or equal to the second. |
| public <Y extends Comparable | Returns: less-than-or-equal predicateexpression x, Y value y)Create a predicate for testing whether the first argument is less than or equal to the second. |
| public Predicate | Returns: like predicatestring expression x, Expression<String> string expression pattern)Create a predicate for testing whether the expression satisfies the given pattern. |
| public Predicate | Returns: like predicatestring expression x, String string pattern)Create a predicate for testing whether the expression satisfies the given pattern. |
| public Predicate | Returns: like predicatestring expression x, Expression<String> string expression pattern, Expression<Character> escape character expression escapeChar)Create a predicate for testing whether the expression satisfies the given pattern. |
| public Predicate | Returns: like predicatestring expression x, Expression<String> string expression pattern, char escape character escapeChar)Create a predicate for testing whether the expression satisfies the given pattern. |
| public Predicate | Returns: like predicatestring expression x, String string pattern, Expression<Character> escape character expression escapeChar)Create a predicate for testing whether the expression satisfies the given pattern. |
| public Predicate | Returns: like predicatestring expression x, String string pattern, char escape character escapeChar)Create a predicate for testing whether the expression satisfies the given pattern. |
| public <T> Expression | Returns: expression literalvalue represented by the expression value)Create an expression for a literal. |
| public Expression | Returns: natural logarithmexpression x)Create an expression that returns the natural logarithm of its argument. |
| public Expression | |
| public Expression | Returns: expression for current timestampCreate expression to return current local datetime. |
| public Expression | |
| public Expression | Returns: expression corresponding to positionexpression for string to be searched x, Expression<String> expression for string to be located pattern)Create expression to locate the position of one string within another, returning position of first character if found. |
| public Expression | Returns: expression corresponding to positionexpression for string to be searched x, String string to be located pattern)Create expression to locate the position of one string within another, returning position of first character if found. |
| public Expression | Returns: expression corresponding to positionexpression for string to be searched x, Expression<String> expression for string to be located pattern, Expression<Integer> expression for position at which to start search from)Create expression to locate the position of one string within another, returning position of first character if found. |
| public Expression | Returns: expression corresponding to positionexpression for string to be searched x, String string to be located pattern, int position at which to start search from)Create expression to locate the position of one string within another, returning position of first character if found. |
| public Expression | Returns: expression to convert to lowercasestring expression x)Create expression for converting a string to lowercase. |
| public Predicate | Returns: less-than predicateexpression x, Expression<? extends Number> expression y)Create a predicate for testing whether the first argument is less than the second. |
| public Predicate | Returns: less-than predicateexpression x, Number value y)Create a predicate for testing whether the first argument is less than the second. |
| public <N extends Number> Expression | Returns: max expressionexpression representing input value to max operation x)Create an aggregate expression applying the numerical max operation. |
| public <N extends Number> Expression | Returns: min expressionexpression representing input value to min operation x)Create an aggregate expression applying the numerical min operation. |
| public Expression | Returns: modulusexpression x, Expression<Integer> expression y)Create an expression that returns the modulus (remainder under integer division) of its arguments. |
| public Expression | Returns: modulusexpression x, Integer value y)Create an expression that returns the modulus (remainder under integer division) of its arguments. |
| public Expression | Returns: modulusvalue x, Expression<Integer> expression y)Create an expression that returns the modulus (remainder under integer division) of its arguments. |
| public <N extends Number> Expression | Returns: arithmetic negationexpression x)Create an expression that returns the arithmetic negation of its argument. |
| public Predicate | Returns: not predicaterestriction expression restriction)Create a negation of the given restriction. |
| public Predicate | Returns: inequality predicateexpression x, Expression<?> expression y)Create a predicate for testing the arguments for inequality. |
| public Predicate | Returns: inequality predicateexpression x, Object object y)Create a predicate for testing the arguments for inequality. |
| public Predicate | Returns: not-like predicatestring expression x, Expression<String> string expression pattern)Create a predicate for testing whether the expression does not satisfy the given pattern. |
| public Predicate | Returns: not-like predicatestring expression x, String string pattern)Create a predicate for testing whether the expression does not satisfy the given pattern. |
| public Predicate | Returns: not-like predicatestring expression x, Expression<String> string expression pattern, Expression<Character> escape character expression escapeChar)Create a predicate for testing whether the expression does not satisfy the given pattern. |
| public Predicate | Returns: not-like predicatestring expression x, Expression<String> string expression pattern, char escape character escapeChar)Create a predicate for testing whether the expression does not satisfy the given pattern. |
| public Predicate | Returns: not-like predicatestring expression x, String string pattern, Expression<Character> escape character expression escapeChar)Create a predicate for testing whether the expression does not satisfy the given pattern. |
| public Predicate | Returns: not-like predicatestring expression x, String string pattern, char escape character escapeChar)Create a predicate for testing whether the expression does not satisfy the given pattern. |
| public <Y> Expression | Returns: nullif expressionexpression x, Expression<?> expression y)Create an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not. |
| public <Y> Expression | Returns: nullif expressionexpression x, Y value y)Create an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not. |
| public <T> Expression | Returns: null expression literaltype of the null literal resultClass)Create an expression for a null literal with the given type. |
| public Predicate | Returns: or predicateboolean expression x, Expression<Boolean> boolean expression y)Create a disjunction of the given boolean expressions. |
| public Predicate | |
| public Predicate | |
| public <T> ParameterExpression | |
| public <T> ParameterExpression | |
| public Expression | Returns: the base raised to the power of the exponentbase x, Expression<? extends Number> exponent y)Create an expression that returns the first argument raised to the power of its second argument. |
| public Expression | Returns: the base raised to the power of the exponentbase x, Number exponent y)Create an expression that returns the first argument raised to the power of its second argument. |
| public <N extends Number> Expression | Returns: productexpression x, Expression<? extends N> expression y)Create an expression that returns the product of its arguments. |
| public <N extends Number> Expression | Returns: productexpression x, N value y)Create an expression that returns the product of its arguments. |
| public <N extends Number> Expression | Returns: productvalue x, Expression<? extends N> expression y)Create an expression that returns the product of its arguments. |
| public Expression | Returns: quotientexpression x, Expression<? extends Number> expression y)Create an expression that returns the quotient of its arguments. |
| public Expression | Returns: quotientexpression x, Number value y)Create an expression that returns the quotient of its arguments. |
| public Expression | Returns: quotientvalue x, Expression<? extends Number> expression y)Create an expression that returns the quotient of its arguments. |
| public Expression | Returns: expression for the resulting stringstring expression x, Expression<String> the literal substring to replace substring, Expression<String> the replacement string replacement)Create an expression replacing every occurrence of a substring within a string. |
| public Expression | Returns: expression for the resulting stringstring expression x, String the literal substring to replace substring, Expression<String> the replacement string replacement)Create an expression replacing every occurrence of a substring within a string. |
| public Expression | Returns: expression for the resulting stringstring expression x, Expression<String> the literal substring to replace substring, String the replacement string replacement)Create an expression replacing every occurrence of a substring within a string. |
| public Expression | Returns: expression for the resulting stringstring expression x, String the literal substring to replace substring, String the replacement string replacement)Create an expression replacing every occurrence of a substring within a string. |
| public Expression | Returns: expression for the rightmost substringstring expression x, int length of the substring to return len)Create an expression for the rightmost substring of a string, |
| public Expression | Returns: expression for the rightmost substringstring expression x, Expression<Integer> length of the substring to return len)Create an expression for the rightmost substring of a string, |
| public <T extends Number> Expression | Returns: the rounded valuebase x, Integer number of decimal places n)Create an expression that returns the first argument rounded to the number of decimal places given by the second argument. |
| public <C, R> CriteriaBuilder. | Returns: simple case expressionto be tested against the case conditions expression)Create a simple case expression. |
| public <R> CriteriaBuilder. | |
| public Expression | Returns: signexpression x)Create an expression that returns the sign of its
argument, that is, |
| public <C extends Collection | Returns: size expressionexpression collection)Create an expression that tests the size of a collection. |
| public <C extends Collection | Returns: size expressioncollection collection)Create an expression that tests the size of a collection. |
| public <Y> Expression | |
| public Expression | Returns: square rootexpression x)Create an expression that returns the square root of its argument. |
| public Expression | Returns: expression corresponding to substring extractionstring expression x, Expression<Integer> start position expression from)Create an expression for substring extraction. |
| public Expression | Returns: expression corresponding to substring extractionstring expression x, int start position from)Create an expression for substring extraction. |
| public Expression | Returns: expression corresponding to substring extractionstring expression x, Expression<Integer> start position expression from, Expression<Integer> length expression len)Create an expression for substring extraction. |
| public Expression | Returns: expression corresponding to substring extractionstring expression x, int start position from, int length len)Create an expression for substring extraction. |
| public <N extends Number> Expression | Returns: sum expressionexpression representing input value to sum operation x)Create an aggregate expression applying the sum operation. |
| public <N extends Number> Expression | Returns: sumexpression x, Expression<? extends N> expression y)Create an expression that returns the sum of its arguments. |
| public <N extends Number> Expression | Returns: sumexpression x, N value y)Create an expression that returns the sum of its arguments. |
| public <N extends Number> Expression | Returns: sumvalue x, Expression<? extends N> expression y)Create an expression that returns the sum of its arguments. |
| public Expression | Returns: sum expressionexpression representing input value to sum operation x)Create an aggregate expression applying the sum operation to a Float-valued expression, returning a Double result. |
| public Expression | Returns: sum expressionexpression representing input value to sum operation x)Create an aggregate expression applying the sum operation to an Integer-valued expression, returning a Long result. |
| public Expression | Returns: Expression<BigDecimal>numeric expression number)Typecast. |
| public Expression | Returns: Expression<BigInteger>numeric expression number)Typecast. |
| public Expression | |
| public Expression | |
| public Expression | Returns: Expression<Integer>numeric expression number)Typecast. |
| public Expression | |
| public Expression | |
| public <X, T, V extends T> Join | |
| public <X, T, E extends T> CollectionJoin | Returns: CollectionJoin object of the specified typeCollectionJoin object join, Class<E> type to be downcast to type)Downcast CollectionJoin object to the specified type. |
| public <X, T, E extends T> SetJoin | |
| public <X, T, E extends T> ListJoin | |
| public <X, K, T, V extends T> MapJoin | |
| public <X, T extends X> Path | |
| public <X, T extends X> Root | |
| public Expression | Returns: trim expressionexpression for string to trim x)Create expression to trim blanks from both ends of a string. |
| public Expression | Returns: trim expressiontrim specification ts,expression for string to trim x)Create expression to trim blanks from a string. |
| public Expression | Returns: trim expressionexpression for character to be trimmed t, Expression<String> expression for string to trim x)Create expression to trim character from both ends of a string. |
| public Expression | Returns: trim expressiontrim specification ts,expression for character to be trimmed t, Expression<String> expression for string to trim x)Create expression to trim character from a string. |
| public Expression | Returns: trim expressioncharacter to be trimmed t, Expression<String> expression for string to trim x)Create expression to trim character from both ends of a string. |
| public Expression | Returns: trim expressiontrim specification ts,character to be trimmed t, Expression<String> expression for string to trim x)Create expression to trim character from a string. |
| public CompoundSelection | |
| public CompoundSelection | |
| public <T> CriteriaSelect | Returns: a new criteria query which returns the union of the results of the given queriesCreate a query which is the union of the given queries. |
| public <T> CriteriaSelect | Returns: a new criteria query which returns the union of the results of the given queriesCreate a query which is the union of the given queries, without elimination of duplicate results. |
| public Expression | Returns: expression to convert to uppercasestring expression x)Create expression for converting a string to uppercase. |
| public <V, M extends Map | Returns: collection expressionmap map)Create an expression that returns the values of a map. |