org.apache.openjpa.persistence
Class TupleImpl
java.lang.Object
   org.apache.openjpa.persistence.TupleImpl
org.apache.openjpa.persistence.TupleImpl
- All Implemented Interfaces: 
- Tuple
- public class TupleImpl 
- extends Object- implements 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(TupleElement<X> tupleElement)
- 
- Specified by:
- getin interface- Tuple
 
- 
 
get
public <X> X get(String alias,
                 Class<X> type)
- 
- Specified by:
- getin interface- Tuple
 
- 
 
get
public Object get(String alias)
- 
- Specified by:
- getin interface- Tuple
 
- 
 
get
public <X> X get(int i,
                 Class<X> type)
- 
- Specified by:
- getin interface- Tuple
 
- 
 
get
public Object get(int i)
- 
- Specified by:
- getin interface- Tuple
 
- 
 
toArray
public Object[] toArray()
- 
- Specified by:
- toArrayin interface- Tuple
 
- 
 
getElements
public List<TupleElement<?>> getElements()
- 
- Specified by:
- getElementsin interface- 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-2010 Apache Software Foundation. All Rights Reserved.