ObjectDB Database Search

1-50 of 65 results

jakarta.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)

, tuple , and construct . CriteriaBuilder.array The following JPQL query: SELECT c.name, c.capital ... ) { System.out.println( "Country: " + result[0] + ", Capital: " + result[1]); } CriteriaBuilder. tuple The Tuple interface can be used as a clean alternative to Object[] : CriteriaQuery q = cb

JPA Criteria Query Selection and Results

( CriteriaBuilder.array ), application defined result classes  ( CriteriaBuilder.construct ), and tuples ( CriteriaBuilder. tuple ). When compound selection results are returned as tuples : Represents ... of this selection in result tuples , rather than by index or string that are considered

WHERE clause (JPQL / Criteria API)

-variable queries In a multi-variable query, the FROM clause defines an iteration over tuples . In this case, the WHERE clause filters these tuples before passing them to the SELECT clause. For example ... . In multi-variable queries, the number of tuples for iteration can be very large even if the database

GROUP BY and HAVING clauses

. When a query includes a GROUP BY clause, the database objects (or tuples ) that result from the FROM clause ... ) that are performed on all the objects or object tuples in the group. Aggregate calculations ... of aggregate query that does not have a GROUP BY clause. In these queries, all objects or tuples

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)

( select , distinct , multiselect , array , tuple , construct ) Criteria FROM ( from , join , fetch

Paths and Types in JPQL and Criteria API

through a null reference. In JPQL, the current FROM variable (or FROM tuple , when there are multiple

JPA Criteria API Queries

, multiselect , array , tuple , construct ) FROM clause ( from , join , fetch ) WHERE clause ( where ) GROUP

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. Since: Jakarta

jakarta.persistence.criteria.CriteriaBuilder.In

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 Persistence

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

jakarta.persistence.TupleElement.getAlias()

Jakarta Persistence (JPA) Method in jakarta.persistence.TupleElement String getAlias() Return the alias assigned to the tuple element or null, if no alias has been assigned. Returns: alias. Since: Jakarta Persistence (JPA) 1.0