Internal Website Search
51-100 of 200 results"Unexpected query expression" using CriteriaQuery FetchParent Interface: Unexpected query expression end (non keyword identifier is expected)] with root cause com.objectdb.o.UserException: Unexpected query expression end (non keyword identifier is expected) at com.objectdb.o ... thread "main" [ObjectDB 2.5.6_05] javax.persistence.PersistenceException Unexpected query expression | |
JPA CriteriaQuery -- Iterate Expression | |
Possible issue for JPQL IN expression Possible issue for JPQL IN expression with a set of more than one string literals values in the path expression . Error: Exception in thread "main" [ObjectDB 2.3.7_10] SELECT e FROM MyEntity e WHERE e.country IN ('US' == , | |
TYPE Expression Hi there! Trying to add a simple type expression with the criteria api like in your sample: cb.equal(e.type(), cb.literal(Country.class)); results in the error: Caused by: com.objectdb.o.UserException: Attempt to store an instance of a non persistable type java.lang.Class at com.objectdb.o.MSG.d | |
Possible issue for JPQL IS EMPTY expression Possible issue for JPQL IS EMPTY comparison expression : SELECT e FROM MyEntity e WHERE e.collection-valued IS EMPTY throws javax.persistence.PersistenceException: Invalid operand type for operator IS EMPTY (error 756) Thanks. Note: It doesn' t work with SIZE(): SELECT e FROM MyEntity e | |
IN expression in a Criteria QueryIN expression in a Criteria Query | |
javax.persistence.criteria.CriteriaQuery Since: JPA 2.0 List getGroupList () Return a list of the grouping expressions . Returns empty list if no grouping expressions have been specified. Modifications to the list do not affect the query. Return: the list of grouping expressions Inherited from: AbstractQuery Since: JPA 2.0 Predicate | |
javax.persistence.criteria.ParameterExpression JPA Interface ParameterExpression Type Parameters: - the type of the parameter expression Super Interfaces: Expression , Parameter , Selection , TupleElement Type of criteria query parameter expressions . Since: JPA 2.0 Public Methods Expression as (Class type) Perform a typecast | |
@Enumerated(EnumType.STRING) annotation inhibits proper execution of IN expressions. When the following annotation is present on an enum type entity field: @Enumerated(EnumType.STRING) Queries using JPQL IN expressions on this field won't work correctly anymore. This issue has been described in forum post 1254 (JPA JPQL WHERE clause for IN :variable not working if variable | |
Issue with TYPE expression in Criteria APIIssue with TYPE expression in Criteria API | |
javax.persistence.criteria.CriteriaBuilder$SimpleCase JPA Interface SimpleCase Super Interfaces: Expression , Selection , TupleElement Interface used to build simple case expressions . Case conditions are evaluated in the order in which they are specified. Since: JPA 2.0 Public Methods Expression getExpression () Return the expression to be tested | |
javax.persistence.criteria.AbstractQuery a list of the grouping expressions . Returns empty list if no grouping expressions have been specified. Modifications to the list do not affect the query. Return: the list of grouping expressions ... ( Expression ... grouping) Specify the expressions that are used to form groups over the query | |
javax.persistence.criteria.CriteriaBuilder$Case JPA Interface Case Super Interfaces: Expression , Selection , TupleElement Interface used to build general case expressions . Case conditions are evaluated in the order in which they are specified. Since: JPA 2.0 Public Methods Expression otherwise ( Expression result) Add an "else" clause | |
CriteriaBuilder.substring(x,from,len) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression substring ( Expression x, Expression from, Expression len ) Create an expression for substring extraction. Extracts a substring of given length starting | |
javax.persistence.criteria.Path compound attribute path from a bound type or collection, and is a "primitive" expression . Since: JPA 2.0 ... Expression get ( MapAttribute map) Create a path corresponding to the referenced map-valued attribute. Parameters: map - map-valued attribute Return: expression corresponding to the referenced | |
CriteriaBuilder.locate(x,pattern,from) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression locate ( Expression x, Expression pattern, Expression from ) Create expression to locate the position of one string within another, returning position of first | |
javax.persistence.criteria.From: FetchParent Since: JPA 2.0 Expression get ( MapAttribute map) Create a path corresponding to the referenced map-valued attribute. Parameters: map - map-valued attribute Return: expression corresponding to the referenced attribute Inherited from: Path Since: JPA 2.0 Expression get ( PluralAttribute   | |
javax.persistence.criteria.MapJoin key - the type of the target Map value Super Interfaces: Expression , FetchParent , From , Join ... .Map . Since: JPA 2.0 Public Methods Expression entry () Create an expression that corresponds to the map entry. Return: expression corresponding to the map entry Since: JPA 2.0 MapAttribute getModel | |
CriteriaBuilder.nullif(x,y) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression nullif ( Expression x, 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 | |
javax.persistence.criteria.CriteriaBuilder$In JPA Interface In Super Interfaces: Expression , Predicate , Selection , TupleElement Interface used to build in predicates. Since: JPA 2.0 Public Methods Expression getExpression () Return the expression to be tested against the list of values. Return: expression Since: JPA 2.0 List getExpressions | |
CriteriaBuilder.notLike(x,pattern,escapeChar) - JPA Method; Expression x, Expression pattern, Expression escapeChar ) Create a predicate for testing whether the expression does not satisfy the given pattern. Parameters: x - string expression pattern - string expression escapeChar - escape character expression Return: not-like predicate Since: JPA 2.0 | |
CriteriaBuilder.substring(x,from) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression substring ( Expression x, Expression from ) Create an expression for substring ... position is 1. Parameters: x - string expression from - start position expression Return: expression corresponding to substring extraction Since: JPA 2.0 | |
CriteriaBuilder.concat(x,y) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression concat ( Expression x, Expression y ) Create an expression for string concatenation. Parameters: x - string expression y - string expression Return: expression corresponding to concatenation Since: JPA 2.0 | |
CriteriaBuilder.trim(ts,t,x) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression trim ( CriteriaBuilder.Trimspec ts, Expression t, Expression x ) Create expression to trim character from a string. Parameters: ts - trim specification t | |
CriteriaBuilder.like(x,pattern,escapeChar) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Predicate like ( Expression x, Expression pattern, Expression escapeChar ) Create a predicate for testing whether the expression satisfies the given pattern. Parameters: x | |
CriteriaBuilder.coalesce(x,y) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression coalesce ( Expression x, Expression y ) Create an expression that returns null ... : x - expression y - expression Return: coalesce expression Since: JPA 2.0 | |
CriteriaBuilder.trim(t,x) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression trim ( Expression t, Expression x ) Create expression to trim character from both ends of a string. Parameters: t - expression for character to be trimmed x - expression for string to trim Return: trim expression Since: JPA 2.0 | |
CriteriaBuilder.locate(x,pattern) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression locate ( Expression x, Expression pattern ) Create expression to locate the position ... - expression for string to be searched pattern - expression for string to be located Return: expression corresponding to position Since: JPA 2.0 | |
CriteriaQuery.groupBy(grouping) - JPA Method; Expression ... grouping ) Specify the expressions that are used to form groups over the query results. Replaces the previous specified grouping expressions , if any. If no grouping expressions are specified, any previously added grouping expressions are simply removed. This method only overrides | |
CriteriaBuilder.diff(x,y) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression diff ( Expression x, Expression y ) Create an expression that returns the difference between its arguments. Parameters: x - expression y - expression Return: difference Since: JPA 2.0 | |
CriteriaBuilder.prod(x,y) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression prod ( Expression x, Expression y ) Create an expression that returns the product of its arguments. Parameters: x - expression y - expression Return: product Since: JPA 2.0 | |
CriteriaBuilder.quot(x,y) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression quot ( Expression x, Expression y ) Create an expression that returns the quotient of its arguments. Parameters: x - expression y - expression Return: quotient Since: JPA 2.0 | |
CriteriaBuilder.sum(x,y) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression sum ( Expression x, Expression y ) Create an expression that returns the sum of its arguments. Parameters: x - expression y - expression Return: sum Since: JPA 2.0 | |
CriteriaBuilder.between(v,x,y) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Predicate between ( Expression v, Expression x, Expression y ) Create ... . Parameters: v - expression x - expression y - expression Return: between predicate Since: JPA 2.0 | |
AbstractQuery | |
CriteriaBuilder.mod(x,y) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression mod ( Expression x, Expression y ) Create an expression that returns the modulus of its arguments. Parameters: x - expression y - expression Return: modulus Since: JPA 2.0 | |
javax.persistence.criteria.ListJoin of the target List Super Interfaces: Expression , FetchParent , From , Join , Path , PluralJoin , Selection ... : metamodel type representing the List that is the target of the join Since: JPA 2.0 Expression index () Create an expression that corresponds to the index of the object in the referenced association | |
CriteriaBuilder.nullif(x,y) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression nullif ( Expression x, Y 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. Parameters: x | |
CriteriaBuilder.sumAsDouble(x) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression sumAsDouble ( Expression x ) Create an aggregate expression applying the sum operation to a Float-valued expression , returning a Double result. Parameters: x - expression representing input value to sum operation Return: sum expression Since: JPA 2.0 | |
CriteriaBuilder.sumAsLong(x) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression sumAsLong ( Expression x ) Create an aggregate expression applying the sum operation to an Integer-valued expression , returning a Long result. Parameters: x - expression representing input value to sum operation Return: sum expression Since: JPA 2.0 | |
Subquery.groupBy(grouping) - JPA Method JPA Method in javax.persistence.criteria.Subquery Subquery groupBy ( Expression ... grouping ) Specify the expressions that are used to form groups over the subquery results. Replaces the previous specified grouping expressions , if any. If no grouping expressions are specified | |
CriteriaQuery.groupBy(grouping) - JPA Method grouping ) Specify the expressions that are used to form groups over the query results. Replaces the previous specified grouping expressions , if any. If no grouping expressions are specified, any previously added grouping expressions are simply removed. This method only overrides the return type | |
SimpleCase.otherwise(result) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder$SimpleCase Expression otherwise ( Expression result ) Add an "else" clause to the case expression . Parameters: result - "else" result expression Return: expression Since: JPA 2.0 | |
Subquery.groupBy(grouping) - JPA Method;grouping ) Specify the expressions that are used to form groups over the subquery results. Replaces the previous specified grouping expressions , if any. If no grouping expressions are specified, any previously added grouping expressions are simply removed. This method only overrides the return type | |
CriteriaBuilder.notLike(x,pattern,escapeChar) - JPA Method; Expression x, Expression pattern, char escapeChar ) Create a predicate for testing whether the expression does not satisfy the given pattern. Parameters: x - string expression pattern - string expression escapeChar - escape character Return: not-like predicate Since: JPA 2.0 | |
CriteriaBuilder.notLike(x,pattern,escapeChar) - JPA Method; Expression x, String pattern, Expression escapeChar ) Create a predicate for testing whether the expression does not satisfy the given pattern. Parameters: x - string expression pattern - string escapeChar - escape character expression Return: not-like predicate Since: JPA 2.0 | |
JDOImplHelper.checkAuthorizedStateManager(sm) - JDO Static Method is checked, and if not present, a regular permission check is made. The regular permission check | |
javax.jdo.spi.JDOImplHelper is checked, and if not present, a regular permission check is made. The regular permission check requires | |
Query.setResultClass(cls) - JDO Method of the query. If the result consists of one expression , the result class defaults to the type of that expression . If the result consists of more than one expression , the result class defaults to Object ... a user-defined class. If there are multiple result expressions , the result class must be able to hold | |
Query.setFilter(filter) - JDO Method for the query. The filter specification is a String containing a Boolean expression ... expression evaluates to true . The user may denote uniqueness in the filter expression by explicitly declaring an expression (for example, e1 != e2 ). Rules for constructing valid expressions follow |