ObjectDB Database Search

1-48 of 48 results

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

javax.persistence.Tuple

JPA Interface Tuple Interface for extracting the elements of a query result tuple . See Also: TupleElement Since: JPA 2.0 Public Methods 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

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

Tuple.get(i,type) - JPA Method

JPA Method in javax.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 Return: value

Tuple.get(alias,type) - JPA Method

JPA Method in javax.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 Return: value

Tuple.get(tupleElement) - JPA Method

JPA Method in javax.persistence. Tuple X get (    TupleElement  tupleElement ) Get the value of the specified tuple element. Parameters: tupleElement - tuple element Return: value of tuple element Throws: IllegalArgumentException - if tuple element does not correspond to an element in the query result tuple Since: JPA 2.0

Tuple.get(i) - JPA Method

JPA Method in javax.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 Return: value of the tuple element Throws: IllegalArgumentException - if i exceeds length of result tuple Since: JPA 2.0

Tuple.get(alias) - JPA Method

JPA Method in javax.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 Return: value of the tuple element Throws: IllegalArgumentException - if alias

CriteriaBuilder.tuple(selections) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder CompoundSelection tuple (    Selection ... selections ) Create a tuple -valued selection item. Parameters: selections - selection items Return: tuple -valued compound selection Throws: IllegalArgumentException - if an argument is a tuple - or array-valued selection item Since: JPA 2.0

Tuple.toArray() - JPA Method

JPA Method in javax.persistence. Tuple Object[] toArray () Return the values of the result tuple elements as an array. Return: tuple element values Since: JPA 2.0

Tuple.getElements() - JPA Method

JPA Method in javax.persistence. Tuple List getElements () Return the tuple elements. Return: tuple elements Since: JPA 2.0

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

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

javax.persistence.criteria.CriteriaBuilder

- if an argument is a tuple - or array-valued selection item Since: JPA 2.0 Order asc ( Expression   ... - if an argument is a tuple - or array-valued selection item Since: JPA 2.0 Expression count ... Since: JPA 2.0 CriteriaQuery createTupleQuery () Create a CriteriaQuery object that returns a tuple

javax.persistence.criteria.CriteriaQuery

the createTupleQuery method, the result type is Tuple . Otherwise, the result type is Object . Return: result type ... to the multiselect method must not be a tuple - or array-valued compound selection item ... ., a criteria query object created by either the createTupleQuery method or by passing a Tuple class argument

javax.persistence.TupleElement

defines an element that is returned in a query result tuple . See Also: Tuple Since: JPA 2.0 Public Methods String getAlias () Return the alias assigned to the tuple element or null, if no alias has been assigned. Return: alias Since: JPA 2.0 Class getJavaType () Return the Java type of the tuple

Entity is not related to ObjectDB, but i get exception from ObjectDB

: Could not instantiate entity: granat.dp.domain.entity.psql.DialogNew at org.hibernate. tuple ... ] at org.hibernate. tuple .PojoInstantiator.instantiate(PojoInstantiator.java:136) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate. tuple .entity.AbstractEntityTuplizer.instantiate

javax.persistence.criteria.Selection

: selection item Since: JPA 2.0 String getAlias () Return the alias assigned to the tuple element or null ... of the tuple element. Return: the Java type of the tuple element Inherited from: TupleElement

CriteriaQuery.multiselect(selectionList) - JPA Method

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 object

CriteriaQuery.multiselect(selections) - JPA Method

the arguments to the multiselect method. An argument to the multiselect method must not be a tuple - or ... method or by passing a Tuple class argument to the createQuery method), a Tuple object

query hint

tuple of the steps above) ------------------------------------------ [Step 3a] Iterate ... .classIdentifier='(TC)'). Step 4: Process ObjectProperty (p2) instances   (for every result tuple ... ='scheduledEndSlot'). Step 7: Process ObjectProperty (p4) instances   (for every result tuple of the steps

TupleElement.getJavaType() - JPA Method

JPA Method in javax.persistence.TupleElement Class getJavaType () Return the Java type of the tuple element. Return: the Java type of the tuple element Since: JPA 2.0

TupleElement.getAlias() - JPA Method

JPA Method in javax.persistence.TupleElement String getAlias () Return the alias assigned to the tuple element or null, if no alias has been assigned. Return: alias Since: JPA 2.0

javax.persistence.criteria.CompoundSelection

JPA Interface CompoundSelection Type Parameters: - the type of the selection item Super Interfaces: Selection , TupleElement The CompoundSelection interface defines a compound selection item ( tuple , array, or result of constructor). Since: JPA 2.0 Public Methods Selection alias (String name

AbstractQuery.getResultType() - JPA Method

, the result type is Tuple . Otherwise, the result type is Object . Return: result type Since: JPA 2.0

javax.persistence.criteria.AbstractQuery

method, the result type is Tuple . Otherwise, the result type is Object . Return: result type Since: JPA

CriteriaBuilder.array(selections) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder CompoundSelection array (    Selection ... selections ) Create an array-valued selection item. Parameters: selections - selection items Return: array-valued compound selection Throws: IllegalArgumentException - if an argument is a tuple - or array-valued selection item Since: JPA 2.0

CriteriaBuilder.createTupleQuery() - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder CriteriaQuery createTupleQuery () Create a CriteriaQuery object that returns a tuple of objects as its result. Return: criteria query object Since: JPA 2.0

javax.persistence.criteria.Subquery

. If the query was created using the createTupleQuery method, the result type is Tuple

CriteriaBuilder.construct(resultClass,selections) - JPA Method

Throws: IllegalArgumentException - if an argument is a tuple - or array-valued selection item Since: JPA 2.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

Group by date / time

;         Tuple .class);       

Issue with alias

execution in managing result elements using Tuple ). This is because the real order of query clauses

composite index not used in query

)'). Step 3: Process ObjectNode (v$1) instances (for every result tuple of the steps

Different behavior for two equal queries

.organisation. Step 3: Process IndividualCommunicationInfo (v$2) instances   (for every result tuple ... IndividualCommunicationClassification (v$3) instances   (for every result tuple of the steps ... .classification. Step 6: Process IndividualPostalAddress (v$4) instances   (for every result tuple

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

Issue with UPPER ?

($4) instances   (for every result tuple of the steps ... IndividualPostalAddress ($5) instances   (for every result tuple of the steps ... ; (for every result tuple of the steps above) ---------------------------------------------------------- [Step 8a

Issue with DISTINCT Select

more than on tuple , e.g. if (1,2a) and (1,2b) are both result tuples - only 1 is returned ... .. however, it returns either Object[] or Tuple element result lists and I need only a clean Collection ... and extracting the first part of each tuple element and putting it into my own list.. Isn't there any

@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

Weird issue with variable naming

.persistence.OneToMany; import javax.persistence.Persistence; import javax.persistence. Tuple ; import javax

ObjectDB 2.7.5

). Fixed a ClassCastException in using  Tuple .get on a criteria query path ( issue #2200 ).