org.apache.openjpa.persistence
Class TupleImpl
java.lang.Object
org.apache.openjpa.persistence.TupleImpl
- All Implemented Interfaces:
- javax.persistence.Tuple
public class TupleImpl
- extends Object
- implements javax.persistence.Tuple
Tuple holds a set of values corresponding to a set of TupleElement
.
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PUT
public static Method PUT
get
public <X> X get(javax.persistence.TupleElement<X> tupleElement)
- Specified by:
get
in interface javax.persistence.Tuple
get
public <X> X get(String alias,
Class<X> type)
- Specified by:
get
in interface javax.persistence.Tuple
get
public Object get(String alias)
- Specified by:
get
in interface javax.persistence.Tuple
get
public <X> X get(int i,
Class<X> type)
- Specified by:
get
in interface javax.persistence.Tuple
get
public Object get(int i)
- Specified by:
get
in interface javax.persistence.Tuple
toArray
public Object[] toArray()
- Specified by:
toArray
in interface javax.persistence.Tuple
getElements
public List<javax.persistence.TupleElement<?>> getElements()
- Specified by:
getElements
in interface javax.persistence.Tuple
put
public void put(Integer key,
Object value)
- Put the value at the given key index.
This is invoked by the kernel to populate a Tuple.
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.