Fast Object Database for Java - with JPA/JDO support

Internal Website Search

1-10 of 68 resultsRefresh
109

javax.persistence.Tuple

javax.persistence Interface Tuple Interface for extracting the elements of a query result tuple ... position in the result tuple. 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
91

get(alias, type)

Method 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 Returns: value of the tuple element Throws: IllegalArgumentException
91

get(tupleElement)

Method javax.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 correspond to an element in the query result tuple Since: JPA 2.0
91

get(i, type)

Method 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 Returns: value of the tuple element Throws
91

SELECT clause (JPQL / Criteria API)

instances - array, tuple and construct. CriteriaBuilder's array The following JPQL query: SELECT c ... [0] + ", Capital: " + result[1]); } CriteriaBuilder's tuple The Tuple interface can be used as a clean alternative to Object[]: CriteriaQuery<Tuple> q = cb.createTupleQuery(); Root
90

get(i)

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

get(alias)

Method 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 Returns: value of the tuple element Throws: IllegalArgumentException - if alias does not correspond to an element in the query result tuple Since: JPA 2.0
90

tuple(selections)

Method javax.persistence.criteria.CriteriaBuilder CompoundSelection<Tuple> 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: JPA 2.0
88

toArray()

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

getElements()

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

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support