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.Constructor and Description |
---|
TupleImpl(TupleFactory factory)
Supply the factory that creates prototypes and holds the elements.
|
Modifier and Type | Method and Description |
---|---|
(package private) <X> X |
assertAndConvertType(String id,
Object value,
Class<X> type)
Assert that the given value is convertible to the given type and convert.
|
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
TupleImpl(TupleFactory factory)
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
public void put(Integer key, Object value)
Copyright © 2006–2015 Apache Software Foundation. All rights reserved.