ObjectDB Database Search
1-22 of 22 resultsSELECT 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 | |
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 | |
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.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 | |
Multi selection and distinct in a criteria query selection element in my tuple selection only? I.e. I don't want to every selection expression | |
Join performance in Objectdb, executing the JOIN may require iteration over 160,000 x 160,000 x 160,000 tuples . The following test | |
combined index not used (for every result tuple of the steps above) ------------------------------------------ [Step 4a] Scan ... .linkedObjects join v$2). Step 5: Process ObjectProperty (v$3) instances (for every result tuple ... ='(OP)'). Step 3: Process ObjectProperty (p1) instances (for every result tuple of the steps | |
queries under 2.7.6_4 significantly slower than under 2.7.6) instances (for every result tuple of the steps ... tuple of the steps above) --------------------------------------------- [Step 4a] Scan type com ... ) instances (for every result tuple of the steps | |
@FetchGroup in JPA similar to JDO_NAME, "names"); This will be equivalent to query using tuples : TypedQuery query = em.createQuery("select e.firstName, e.lastName FROM Entity e", Tuple .class); But with fetch group you don't have to convert tuples to objects. I know that you can add many constructors to Entity and change query |