Internal Website Search

1-50 of 53 results

javax.persistence.criteria.Subquery

JPA Interface Subquery Type Parameters: - the type of the selection item. Super Interfaces: AbstractQuery , CommonAbstractCriteria , Expression , Selection , TupleElement The Subquery interface defines functionality that is specific to subqueries . A subquery has an expression as its selection item

CommonAbstractCriteria.subquery(type) - JPA Method

JPA Method in javax.persistence.criteria.CommonAbstractCriteria Subquery subquery (   Class  type ) Create a subquery of the query. Parameters: type - the subquery result type Return: subquery Since: JPA 2.1

CriteriaBuilder.exists(subquery) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Predicate exists (    Subquery   subquery ) Create a predicate testing the existence of a subquery result. Parameters: subquery - subquery whose result is to be tested Return: exists predicate Since: JPA 2.0

CriteriaBuilder.all(subquery) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Expression all (    Subquery   subquery ) Create an all expression over the subquery results. Parameters: subquery - subquery Return: all expression Since: JPA 2.0

CriteriaBuilder.any(subquery) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Expression any (    Subquery   subquery ) Create an any expression over the subquery results. This expression is equivalent to a some expression. Parameters: subquery - subquery Return: any expression Since: JPA 2.0

CriteriaBuilder.some(subquery) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Expression some (    Subquery   subquery ) Create a some expression over the subquery results. This expression is equivalent to an any expression. Parameters: subquery - subquery Return: some expression Since: JPA 2.0

Subquery.select(expression) - JPA Method

JPA Method in javax.persistence.criteria. Subquery Subquery select (    Expression  expression ) Specify the item that is to be returned as the subquery result. Replaces the previously ... that is to be returned as the subquery result Return: the modified subquery Since: JPA 2.0

Subquery.getCorrelatedJoins() - JPA Method

JPA Method in javax.persistence.criteria. Subquery Set getCorrelatedJoins () Return the correlated joins of the subquery . Returns empty set if the subquery has no correlated joins. Modifications to the set do not affect the query. Return: the correlated joins of the subquery Since: JPA 2.0

Subquery.getContainingQuery() - JPA Method

JPA Method in javax.persistence.criteria. Subquery CommonAbstractCriteria getContainingQuery () Return the query of which this is a subquery . This may be a CriteriaQuery, CriteriaUpdate, CriteriaDelete, or a Subquery . Return: the enclosing query or subquery Since: JPA 2.1

Subquery.getParent() - JPA Method

JPA Method in javax.persistence.criteria. Subquery AbstractQuery getParent () Return the query of which this is a subquery . This must be a CriteriaQuery or a Subquery . Return: the enclosing query or subquery Since: JPA 2.0

Subquery.having(restrictions) - JPA Method

JPA Method in javax.persistence.criteria. Subquery Subquery having (   Predicate... restrictions ) Specify restrictions over the groups of the subquery according the conjunction ... - zero or more restriction predicates Return: the modified subquery Since: JPA 2.0

Subquery.having(restriction) - JPA Method

JPA Method in javax.persistence.criteria. Subquery Subquery having (    Expression  restriction ) Specify a restriction over the groups of the subquery . Replaces the previous having ... method. Parameters: restriction - a simple or compound boolean expression Return: the modified subquery Since: JPA 2.0

Subquery.groupBy(grouping) - JPA Method

JPA Method in javax.persistence.criteria. Subquery Subquery groupBy (   List  grouping ) Specify the expressions that are used to form groups over the subquery results. Replaces ... of the corresponding AbstractQuery method. Parameters: grouping - list of zero or more grouping expressions Return: the modified subquery Since: JPA 2.0

Subquery.distinct(distinct) - JPA Method

JPA Method in javax.persistence.criteria. Subquery Subquery distinct (   boolean distinct ) Specify whether duplicate query results will be eliminated. A true value will cause ... results must be eliminated from the subquery result or whether they must be retained Return: the modified subquery . 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 ... type of the corresponding AbstractQuery method. Parameters: grouping - zero or more grouping expressions Return: the modified subquery Since: JPA 2.0

Subquery.where(restrictions) - JPA Method

JPA Method in javax.persistence.criteria. Subquery Subquery where (   Predicate... restrictions ) Modify the subquery to restrict the result according to the conjunction ... more restriction predicates Return: the modified subquery Since: JPA 2.0

Subquery.where(restriction) - JPA Method

JPA Method in javax.persistence.criteria. Subquery Subquery where (    Expression  restriction ) Modify the subquery to restrict the result according to the specified boolean ... of the corresponding AbstractQuery method. Parameters: restriction - a simple or compound boolean expression Return: the modified subquery Since: JPA 2.0

Subquery.correlate(parentList) - JPA Method

JPA Method in javax.persistence.criteria. Subquery ListJoin correlate (    ListJoin  parentList ) Create a subquery list join object correlated to a list join object of the enclosing query. Parameters: parentList - join object of the containing query Return: subquery join Since: JPA 2.0

Subquery.correlate(parentMap) - JPA Method

JPA Method in javax.persistence.criteria. Subquery MapJoin correlate (    MapJoin  parentMap ) Create a subquery map join object correlated to a map join object of the enclosing query. Parameters: parentMap - join object of the containing query Return: subquery join Since: JPA 2.0

Subquery.correlate(parentSet) - JPA Method

JPA Method in javax.persistence.criteria. Subquery SetJoin correlate (    SetJoin  parentSet ) Create a subquery set join object correlated to a set join object of the enclosing query. Parameters: parentSet - join object of the containing query Return: subquery join Since: JPA 2.0

Subquery.correlate(parentCollection) - JPA Method

JPA Method in javax.persistence.criteria. Subquery CollectionJoin correlate (    CollectionJoin  parentCollection ) Create a subquery collection join object correlated to a collection join object of the enclosing query. Parameters: parentCollection - join object of the containing query Return: subquery join Since: JPA 2.0

Subquery.correlate(parentRoot) - JPA Method

JPA Method in javax.persistence.criteria. Subquery Root correlate (    Root  parentRoot ) Create a subquery root correlated to a root of the enclosing query. Parameters: parentRoot - a root of the containing query Return: subquery root Since: JPA 2.0

Subquery.correlate(parentJoin) - JPA Method

JPA Method in javax.persistence.criteria. Subquery Join correlate (    Join  parentJoin ) Create a subquery join object correlated to a join object of the enclosing query. Parameters: parentJoin - join object of the containing query Return: subquery join Since: JPA 2.0

Subquery.getSelection() - JPA Method

JPA Method in javax.persistence.criteria. Subquery Expression getSelection () Return the selection expression. Return: the item to be returned in the subquery result Since: JPA 2.0

Subquery error

Subquery error

javax.persistence.criteria.CriteriaBuilder

- expression Return: absolute value Since: JPA 2.0 Expression all ( Subquery   subquery ) Create an all expression over the subquery results. Parameters: subquery - subquery Return: all expression ... - zero or more restriction predicates Return: and predicate Since: JPA 2.0 Expression any ( Subquery

javax.persistence.criteria.AbstractQuery

queries and subqueries . It is not intended to be used directly in query construction. All queries ... type of the query or subquery . If a result type was specified as an argument to the createQuery or subquery method, that type will be returned. If the query was created using the createTupleQuery

javax.persistence.criteria.CommonAbstractCriteria

that is common to both top-level criteria queries and subqueries as well as to update and delete ... . Return: where clause predicate Since: JPA 2.1 Subquery subquery (Class  type) Create a subquery of the query. Parameters: type - the subquery result type Return: subquery Since: JPA 2.1

JPQL Subqueries (JPA 1.0)

The JPQL (Java Persistence Query Language) supports defining subqueries , which are nested queries that are embedded in other queries. Subqueries are currently not supported by ObjectDB, and as a workaround, you can use a sequence of two or more queries, where the results of one query serves as a parameter in the next queries. support Support

JDOQL Subqueries (JDO 2.1)

Subqueries (nested queries) have been added to JDOQL (JDO Query Language) in JDO 2.1. This is the main feature of JDO 2.0-2.1-2.2 that is not implemented yet in ObjectDB 2. support Support

javax.persistence.criteria.CriteriaDelete

() Return the query root. Return: the query root Since: JPA 2.1 Subquery subquery (Class  type) Create a subquery of the query. Parameters: type - the subquery result type Return: subquery Inherited

javax.persistence.criteria.CriteriaUpdate

- new value Return: the modified update query Since: JPA 2.1 Subquery subquery (Class  type) Create a subquery of the query. Parameters: type - the subquery result type Return: subquery Inherited

javax.persistence.criteria.CriteriaQuery

the result type of the query or subquery . If a result type was specified as an argument to the createQuery or subquery method, that type will be returned. If the query was created using ... that have been defined for the CriteriaQuery or Subquery itself, including any subquery roots

javax.persistence.criteria.From

through correlation (use of a Subquery correlate method). Return: the parent of the correlated From ... has been obtained as a result of correlation (use of a Subquery correlate method). Return: boolean indicating

AbstractQuery.getRoots() - JPA Method

JPA Method in javax.persistence.criteria.AbstractQuery Set getRoots () Return the query roots. These are the roots that have been defined for the CriteriaQuery or Subquery itself, including any subquery roots defined as a result of correlation. Returns empty set if no roots have been defined

AbstractQuery.getResultType() - JPA Method

JPA Method in javax.persistence.criteria.AbstractQuery Class getResultType () Return the result type of the query or subquery . If a result type was specified as an argument to the createQuery or subquery method, that type will be returned. If the query was created using the createTupleQuery method

javax.persistence.criteria.Join

has been obtained through correlation (use of a Subquery correlate method). Return: the parent ... () Whether the From object has been obtained as a result of correlation (use of a Subquery correlate

Get the last occurence of a list attribut

HUBERT Subqueries are currently not supported. The workaround in this case (which could also provide much better performance than subqueries ) is to maintain a reference to the last label directly in every RO object. support Support

slow performance for a complex query

over result set with setFirstResult and setMaxResults. I could do this with subqueries , however as I understand it from this post: http://www.objectdb.com/database/issue/10, subqueries are not supported by

find repeated records by JPQL

Subqueries are not support by ObjectDB yet - see this feature request . Getting an OutOfMemoryError ... You do not get the point. I ask a way to subquery in #1. You suggest splitting it into two query in #2. I

Retrieve latest entry in a time-series

As mentioned elsewhere, subqueries are not currently supported.  A subquery is the way that seems recommended to get only the latest entry in a time series (e.g. the latest time-clock entry for all employees).   Is there an ObjectDB way to get the latest entry in a series? 

"where in" query

operator is currently not supported and will be implemented with subqueries  (since its main use is in subqueries ). The following code demonstrates how to use MEMBER OF with parameter for this purpose

From.getCorrelationParent() - JPA Method

JPA Method in javax.persistence.criteria.From From getCorrelationParent () Returns the parent From object from which the correlated From object has been obtained through correlation (use of a Subquery correlate method). Return: the parent of the correlated From object Throws: IllegalStateException

From.isCorrelated() - JPA Method

JPA Method in javax.persistence.criteria.From boolean isCorrelated () Whether the From object has been obtained as a result of correlation (use of a Subquery correlate method). Return: boolean indicating whether the object has been obtained through correlation Since: JPA 2.0

Future JDO versions?

system . Subqueries are currently not supported by ObjectDB also for JPA, and could be added to JPA

javax.jdo.Query

;candidateCollectionExpression) Add a subquery to this query. Parameters: sub - the subquery to add to this Query ... of the subquery candidateCollectionExpression - the candidate collection of the subquery as an expression using ... ;parameters) Add a subquery to this query. The Map version of the method treats the key of each map entry as

Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression,parameters) - JDO Method

;   String... parameters ) Add a subquery to this query. A subquery is composed as a Query ... query. Only some of the query parts are copied for use as the subquery . The parts copied include ... of the variable containing the results of the subquery execution. If the same value of variableDeclaration

Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression,parameter) - JDO Method

;   String parameter ) Add a subquery to this query. The String version of the method binds the named expression to the parameter implictly or explicitly declared in the subquery . Parameters: sub - the subquery to add to this Query variableDeclaration - the name of the variable to be used

Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression,parameters) - JDO Method

;   Map parameters ) Add a subquery to this query. The Map version of the method treats the key of each map entry as the name of the parameter in the subquery , with or without the leading ... , that expression is ignored. Parameters: sub - the subquery to add to this Query variableDeclaration

Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression) - JDO Method

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 of the subquery candidateCollectionExpression - the candidate collection of the subquery as an expression using terms of the outer query