Package org.apache.openjpa.persistence
Class TupleImpl
- java.lang.Object
-
- org.apache.openjpa.persistence.TupleImpl
-
- All Implemented Interfaces:
jakarta.persistence.Tuple
public class TupleImpl extends java.lang.Object implements jakarta.persistence.Tuple
Tuple holds a set of values corresponding to a set ofTupleElement
. This implementation prefers index-based access. A Tuple instance is constructed by a TupleFactory. The TupleElemets are shared across all the tuple instances.- Author:
- Pinaki Poddar
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.reflect.Method
PUT
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get(int i)
<X> X
get(int i, java.lang.Class<X> type)
<X> X
get(jakarta.persistence.TupleElement<X> tupleElement)
java.lang.Object
get(java.lang.String alias)
<X> X
get(java.lang.String alias, java.lang.Class<X> type)
java.util.List<jakarta.persistence.TupleElement<?>>
getElements()
void
put(java.lang.Integer key, java.lang.Object value)
Put the value at the given key index.java.lang.Object[]
toArray()
-
-
-
Method Detail
-
get
public <X> X get(jakarta.persistence.TupleElement<X> tupleElement)
- Specified by:
get
in interfacejakarta.persistence.Tuple
-
get
public <X> X get(java.lang.String alias, java.lang.Class<X> type)
- Specified by:
get
in interfacejakarta.persistence.Tuple
-
get
public java.lang.Object get(java.lang.String alias)
- Specified by:
get
in interfacejakarta.persistence.Tuple
-
get
public <X> X get(int i, java.lang.Class<X> type)
- Specified by:
get
in interfacejakarta.persistence.Tuple
-
get
public java.lang.Object get(int i)
- Specified by:
get
in interfacejakarta.persistence.Tuple
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interfacejakarta.persistence.Tuple
-
getElements
public java.util.List<jakarta.persistence.TupleElement<?>> getElements()
- Specified by:
getElements
in interfacejakarta.persistence.Tuple
-
put
public void put(java.lang.Integer key, java.lang.Object value)
Put the value at the given key index. This is invoked by the kernel to populate a Tuple.
-
-