About named queries

51-60 of 200Refresh
JDO Doc
31

addSubquery(sub, variableDeclaration, candidateCollectionExpression, parameters)

without the leading ":", and the value as the name of the expression in the outer query. If the trimmed ... variableDeclaration - the name of the variable to be used in this Query candidateCollectionExpression ... Method javax.jdo.Query void addSubquery(   Query sub,   String variableDeclaration,   String
Manual
30

ORDER BY clause (JPQL / Criteria API)

Expressions The following query returns names of countries whose population size ... . The following query returns Country objects ordered by currency as the primary sort key and by name as ... The ORDER BY clause in the above query orders the results by the currency name. Without an ORDER BY clause
JDO Doc
30

javax.jdo.annotations.Queries

javax.jdo.annotations Annotation Queries Target: Classes Annotation for a group of named queries. Since: JDO 2.1 Query[] value The named queries The named queries Returns: The named queries Since: JDO 2.1
JDO Doc
30

addSubquery(sub, variableDeclaration, candidateCollectionExpression, parameter)

the subquery. Parameters: sub - the subquery to add to this Query variableDeclaration - the name ... Method javax.jdo.Query void addSubquery(   Query sub,   String variableDeclaration,   String candidateCollectionExpression,   String parameter ) Add a subquery to this query. The String version
JDO Doc
30

setFilter(filter)

Method javax.jdo.Query void setFilter(   String filter ) Set the filter for the query. The filter ... of the Query; and for all variables there exists a value for which the filter expression evaluates to true ... ) method. Identifiers in the expression are considered to be in the name space of the specified class
JDO Doc
29

addSubquery(sub, variableDeclaration, candidateCollectionExpression)

Method javax.jdo.Query void addSubquery(   Query sub,   String variableDeclaration,   String candidateCollectionExpression ) Add a subquery to this query. Parameters: sub - the subquery to add to this Query variableDeclaration - the name of the variable in the outer query to bind the results
Manual
29

GROUP BY and HAVING clauses

(which does not use aggregates) is equivalent to the following query: SELECT DISTINCT SUBSTRING(c.name, 1 ... SUBSTRING(c.name, 1, 1); The query returns Object[] arrays of length 3, in which the first cell ... The GROUP BY clause enables grouping of query results. A JPQL query with a GROUP BY clause returns
JDO Doc
29

setResultClass(cls)

Method javax.jdo.Query void setResultClass(   Class cls ) Specify the type of object in ... or set to null, the result class defaults to the candidate class of the query. If the result ... put methods or fields. Each result expression must match one of: a public field that matches the name
JDO Doc
29

Queries.value

Annotation Element javax.jdo.annotations.Queries Query[] value The named queries Returns: The named queries Since: JDO 2.1
JPA Doc
29

setHint(hintName, value)

Method javax.persistence.Query Query setHint(   String hintName,   Object value ) Set a query property or hint. The hints elements may be used to specify query properties and hints. Properties ... , this hint may or may not be observed. Parameters: hintName - name of the property or hint value - value