ObjectDB Database Search
1-50 of 66 resultsjakarta.persistence.Tuple Jakarta Persistence (JPA) Interface jakarta.persistence. Tuple Interface for extracting the elements of a query result tuple . See Also: TupleElement Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods X get ( TupleElement tupleElement ) Get the value of the specified tuple element | |
jakarta.persistence.Tuple.get(int,Class) Jakarta Persistence (JPA) Method in jakarta.persistence. Tuple X get ( int i , Class type ) Get the value of the element at the specified position in the result tuple . The first position is 0. Parameters: i - position in result tuple type - type of the tuple element | |
jakarta.persistence.Tuple.get(TupleElement) Jakarta Persistence (JPA) Method in jakarta.persistence. Tuple X get ( TupleElement tupleElement ) Get the value of the specified tuple element. Parameters: tupleElement - tuple element Returns: value of tuple element. Throws: IllegalArgumentException - if tuple element does not | |
jakarta.persistence.Tuple.get(String,Class) Jakarta Persistence (JPA) Method in jakarta.persistence. Tuple X get ( String alias , Class type ) Get the value of the tuple element to which the specified alias has been assigned. Parameters: alias - alias assigned to tuple element type - of the tuple element Returns | |
jakarta.persistence.Tuple.get(String) Jakarta Persistence (JPA) Method in jakarta.persistence. Tuple Object get ( String alias ) Get the value of the tuple element to which the specified alias has been assigned. Parameters: alias - alias assigned to tuple element Returns: value of the tuple element. Throws | |
jakarta.persistence.Tuple.get(int) Jakarta Persistence (JPA) Method in jakarta.persistence. Tuple Object get ( int i ) Get the value of the element at the specified position in the result tuple . The first position is 0. Parameters: i - position in result tuple Returns: value of the tuple element. Throws | |
jakarta.persistence.criteria.CriteriaBuilder.tuple(Selection...) tuple ( Selection ... selections ) Create a tuple -valued selection item. Parameters: selections - selection items Returns: tuple -valued compound selection. Throws: IllegalArgumentException - if an argument is a tuple - or array-valued selection item. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.tuple(List) tuple ( List selections ) Create a tuple -valued selection item. Parameters: selections - list of selection items Returns: tuple -valued compound selection. Throws: IllegalArgumentException - if an argument is a tuple - or array-valued selection item. Since: Jakarta Persistence (JPA) 3.2 | |
jakarta.persistence.Tuple.toArray() Jakarta Persistence (JPA) Method in jakarta.persistence. Tuple Object[] toArray() Return the values of the result tuple elements as an array. Returns: tuple element values. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.Tuple.getElements() Jakarta Persistence (JPA) Method in jakarta.persistence. Tuple List getElements() Return the tuple elements. Returns: tuple elements. Since: Jakarta Persistence (JPA) 1.0 | |
SELECT clause (JPQL / Criteria API) - array , tuple and construct . CriteriaBuilder's array The following JPQL query: SELECT c.name, c ... ]); } CriteriaBuilder's tuple The Tuple interface can be used as a clean alternative to Object[] : CriteriaQuery q ... . get ("capital"). get ("name"))); The tuple method builds a CompoundSelection instance | |
Criteria Query Selection and Results and for representing query results as tuples . SELECT Clause Elements The content of the SELECT ... ;for more details and examples. Query Results as Tuples JPA 2 introduces a new way to represent ... tuples : The Tuple interface can be used as a clean alternative to Object[] . See the SELECT in | |
WHERE clause (JPQL / Criteria API) defines iteration on tuples . In this case the WHERE clause filters tuples before passing ... the WHERE clause are passed through to the SELECT. In multi-variable queries the number of tuples for iteration | |
GROUP BY and HAVING clauses clause. When a GROUP BY clause exists in a JPQL query, database objects (or tuples of database objects ... (count, sum, avg, max, min) that are carried out on all the objects (or the object tuples ) in ... /WHERE objects (or object tuples ) are considered as one group. For example, the following query | |
jakarta.persistence.criteria.CriteriaBuilder. Throws: IllegalArgumentException - if an argument is a tuple - or array-valued selection item ... selection. Throws: IllegalArgumentException - if an argument is a tuple - or array-valued selection item ... Returns: compound selection item. Throws: IllegalArgumentException - if an argument is a tuple - or | |
JPA Query Structure (JPQL / Criteria) , multiselect , array , tuple , construct ). Criteria FROM ( from , join , fetch ). Criteria WHERE   | |
JPA Queries are organized in this reference into three groups. SELECT and ORDER BY elements (including tuples ): FROM clause | |
Paths and Types in JPQL and Criteria API reference. In JPQL, the current FROM variable (or FROM tuple when there are multiple variables | |
JPA Criteria API Queries , multiselect , array , tuple , construct ). FROM clause ( from , join , fetch ). WHERE clause | |
jakarta.persistence.criteria.CriteriaQuery is Tuple . Otherwise, the result type is Object . Inherited from AbstractQuery Returns: result type ... method. An argument to the multiselect method must not be a tuple - or array-valued compound selection ... (i.e., a criteria query object created by either the createTupleQuery method or by passing a Tuple | |
jakarta.persistence.TupleElement of the element The TupleElement interface defines an element that is returned in a query result tuple . See Also: Tuple Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods String getAlias () Return the alias assigned to the tuple element or null, if no alias has been assigned. Returns: alias | |
jakarta.persistence.criteria.Subquery assigned to the tuple element or null, if no alias has been assigned. Inherited from TupleElement ... . Since: Jakarta Persistence (JPA) 1.0 Class getJavaType () Return the Java type of the tuple element. Inherited from TupleElement Returns: the Java type of the tuple element. Since: Jakarta Persistence (JPA | |
jakarta.persistence.criteria.CompoundSelection interface defines a compound selection item (a tuple , array, or result of a constructor ... . Since: Jakarta Persistence (JPA) 1.0 String getAlias () Return the alias assigned to the tuple element or null ... . Since: Jakarta Persistence (JPA) 1.0 Class getJavaType () Return the Java type of the tuple element. Inherited | |
jakarta.persistence.criteria.PluralJoin String getAlias () Return the alias assigned to the tuple element or null, if no alias ... Persistence (JPA) 1.0 Class getJavaType () Return the Java type of the tuple element. Inherited from TupleElement Returns: the Java type of the tuple element. Since: Jakarta Persistence (JPA) 1.0 JoinType | |
jakarta.persistence.criteria.Path the alias assigned to the tuple element or null, if no alias has been assigned. Inherited from ... the Java type of the tuple element. Inherited from TupleElement Returns: the Java type of the tuple | |
jakarta.persistence.criteria.Predicate Persistence (JPA) 3.2 String getAlias () Return the alias assigned to the tuple element or null ... the predicate. Since: Jakarta Persistence (JPA) 1.0 Class getJavaType () Return the Java type of the tuple element. Inherited from TupleElement Returns: the Java type of the tuple element. Since: Jakarta | |
jakarta.persistence.criteria.MapJoin getAlias () Return the alias assigned to the tuple element or null, if no alias has been assigned ... ) 1.0 Class getJavaType () Return the Java type of the tuple element. Inherited from TupleElement Returns: the Java type of the tuple element. Since: Jakarta Persistence (JPA) 1.0 JoinType getJoinType | |
jakarta.persistence.criteria.ParameterExpression getAlias () Return the alias assigned to the tuple element or null, if no alias has been assigned ... getJavaType () Return the Java type of the tuple element. Inherited from TupleElement Returns: the Java type of the tuple element. Since: Jakarta Persistence (JPA) 1.0 String getName () Return | |
jakarta.persistence.criteria.Selection. Since: Jakarta Persistence (JPA) 1.0 String getAlias () Return the alias assigned to the tuple element or ... ) 1.0 Class getJavaType () Return the Java type of the tuple element. Inherited from TupleElement Returns: the Java type of the tuple element. Since: Jakarta Persistence (JPA) 1.0 boolean | |
jakarta.persistence.criteria.Root. Since: Jakarta Persistence (JPA) 1.0 String getAlias () Return the alias assigned to the tuple element ... (JPA) 1.0 Class getJavaType () Return the Java type of the tuple element. Inherited from TupleElement Returns: the Java type of the tuple element. Since: Jakarta Persistence (JPA) 1.0 Set getJoins | |
jakarta.persistence.criteria.SetJoin getAlias () Return the alias assigned to the tuple element or null, if no alias has been assigned ... (JPA) 1.0 Class getJavaType () Return the Java type of the tuple element. Inherited from TupleElement Returns: the Java type of the tuple element. Since: Jakarta Persistence (JPA) 1.0 JoinType | |
jakarta.persistence.criteria.CriteriaBuilder.Case to the tuple element or null, if no alias has been assigned. Inherited from TupleElement Returns: alias ... of the tuple element. Inherited from TupleElement Returns: the Java type of the tuple element | |
jakarta.persistence.criteria.CriteriaBuilder.In () Return the alias assigned to the tuple element or null, if no alias has been assigned. Inherited from ... the Java type of the tuple element. Inherited from TupleElement Returns: the Java type of the tuple | |
jakarta.persistence.criteria.CriteriaBuilder.Coalesce to the tuple element or null, if no alias has been assigned. Inherited from TupleElement Returns: alias ... of the tuple element. Inherited from TupleElement Returns: the Java type of the tuple element. Since: Jakarta | |
jakarta.persistence.criteria.CollectionJoin Persistence (JPA) 1.0 String getAlias () Return the alias assigned to the tuple element or null ... . Since: Jakarta Persistence (JPA) 1.0 Class getJavaType () Return the Java type of the tuple element. Inherited from TupleElement Returns: the Java type of the tuple element. Since: Jakarta | |
jakarta.persistence.criteria.Expression getAlias () Return the alias assigned to the tuple element or null, if no alias has been assigned ... getJavaType () Return the Java type of the tuple element. Inherited from TupleElement Returns: the Java type of the tuple element. Since: Jakarta Persistence (JPA) 1.0 Predicate in ( Object... values | |
jakarta.persistence.criteria.CriteriaBuilder.SimpleCase to the tuple element or null, if no alias has been assigned. Inherited from TupleElement Returns ... Class getJavaType () Return the Java type of the tuple element. Inherited from TupleElement Returns: the Java type of the tuple element. Since: Jakarta Persistence (JPA) 1.0 Predicate in ( Object | |
jakarta.persistence.criteria.ListJoin String getAlias () Return the alias assigned to the tuple element or null, if no alias has been assigned ... Persistence (JPA) 1.0 Class getJavaType () Return the Java type of the tuple element. Inherited from TupleElement Returns: the Java type of the tuple element. Since: Jakarta Persistence (JPA) 1.0 JoinType | |
jakarta.persistence.criteria.From () Return the alias assigned to the tuple element or null, if no alias has been assigned. Inherited from ... . Since: Jakarta Persistence (JPA) 1.0 Class getJavaType () Return the Java type of the tuple element. Inherited from TupleElement Returns: the Java type of the tuple element. Since: Jakarta Persistence | |
jakarta.persistence.criteria.Join. Since: Jakarta Persistence (JPA) 1.0 String getAlias () Return the alias assigned to the tuple element or ... . Since: Jakarta Persistence (JPA) 1.0 Class getJavaType () Return the Java type of the tuple element. Inherited from TupleElement Returns: the Java type of the tuple element. Since: Jakarta Persistence (JPA) 1 | |
jakarta.persistence.criteria.CriteriaQuery.multiselect(Selection...) be a tuple - or array-valued compound selection item. The semantics of this method are as follows ... either the createTupleQuery method or by passing a Tuple class argument to the createQuery method), a Tuple ... : Since this method is not typesafe, the use of CriteriaBuilder.array or CriteriaBuilder. tuple | |
jakarta.persistence.criteria.CriteriaQuery.multiselect(List) method must not be a tuple - or array-valued compound selection item. The semantics of this method are as ... by either the createTupleQuery method or by passing a Tuple class argument to the createQuery method), a Tuple object corresponding to the elements of the list passed to the multiselect method, in | |
ClassCastException in Tuple.get.createQuery(cq); List tuples = query.getResultList(); List candidateDemands = Lists.transform( tuples , d ... .size()]); return demands; } finally { em.close(); } Commented out calls to Tuple .get(int) work as expected, array Tuple .b contains expected values. Also note that call to Lists.transform is evaluated | |
jakarta.persistence.TupleElement.getJavaType() Jakarta Persistence (JPA) Method in jakarta.persistence.TupleElement Class getJavaType() Return the Java type of the tuple element. Returns: the Java type of the tuple element. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.AbstractQuery is returned. If the query was created using the createTupleQuery method, the result type is Tuple | |
jakarta.persistence.criteria.AbstractQuery.getResultType() the createTupleQuery method, the result type is Tuple . Otherwise, the result type is Object . Returns: result type. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.array(Selection...): IllegalArgumentException - if an argument is a tuple - or array-valued selection item. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.array(List): IllegalArgumentException - if an argument is a tuple - or array-valued selection item. Since: Jakarta Persistence (JPA) 3.2 | |
jakarta.persistence.criteria.CriteriaBuilder.createTupleQuery() Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaQuery createTupleQuery() Create a CriteriaQuery object that returns a tuple of objects as its result. Returns: criteria query object. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.criteria.CriteriaBuilder.construct(Class,Selection...) item. Throws: IllegalArgumentException - if an argument is a tuple - or array-valued selection item. Since: Jakarta Persistence (JPA) 1.0 |