public class TupleImpl extends Object implements javax.persistence.Tuple
TupleElement
.
This implementation prefers index-based access.
A Tuple instance is constructed by a TupleFactory.
The TupleElemets are shared across all the tuple instances.Modifier and Type | Method and Description |
---|---|
Object |
get(int i) |
<X> X |
get(int i,
Class<X> type) |
Object |
get(String alias) |
<X> X |
get(String alias,
Class<X> type) |
<X> X |
get(javax.persistence.TupleElement<X> tupleElement) |
List<javax.persistence.TupleElement<?>> |
getElements() |
void |
put(Integer key,
Object value)
Put the value at the given key index.
|
Object[] |
toArray() |
public static Method PUT
public <X> X get(javax.persistence.TupleElement<X> tupleElement)
get
in interface javax.persistence.Tuple
public <X> X get(String alias, Class<X> type)
get
in interface javax.persistence.Tuple
public <X> X get(int i, Class<X> type)
get
in interface javax.persistence.Tuple
public Object get(int i)
get
in interface javax.persistence.Tuple
public Object[] toArray()
toArray
in interface javax.persistence.Tuple
public List<javax.persistence.TupleElement<?>> getElements()
getElements
in interface javax.persistence.Tuple
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.