ObjectDB ObjectDB

Internal Website Search

1-10 of 69 resultsRefresh
108

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
89

get(tupleElement)

Method javax.persistence.Tuple X get( TupleElement<X> 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
89

get(i, type)

Method javax.persistence.Tuple X get( int i, Class<X> 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
89

get(alias, type)

Method javax.persistence.Tuple X get( String alias, Class<X> 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
88

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
88

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

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
86

getElements()

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

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
62

SELECT clause (JPQL / Criteria API)

instances - array, tuple and construct. CriteriaBuilder's array The following JPQL query: SELECT c ... : " + result[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

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