| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | transformTuple(Object[]
The result elements tuple, String[] The result aliases ("parallel" array to tuple) aliases)Overrides org. Implements org. |
| NativeQueryTupleTransformer | back to summary |
|---|---|
| public NativeQueryTupleTransformer() | |
| transformTuple | back to summary |
|---|---|
| public Object transformTuple(Object[] tuple, String[] aliases) Overrides org. Implements org. Doc from org. Tuples are the elements making up each "row" of the query result. The contract here is to transform these elements into the final row. | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlias()
Implements javax. |
| public Class | getJavaType()
Implements javax. |
| alias | back to summary |
|---|---|
| private final String alias | |
| javaType | back to summary |
|---|---|
| private final Class<? extends X> javaType | |
| NativeTupleElementImpl | back to summary |
|---|---|
| public NativeTupleElementImpl(Class<? extends X> javaType, String alias) | |
| getAlias | back to summary |
|---|---|
| public String getAlias() Implements javax. Doc from javax. Return the alias assigned to the tuple element or null, if no alias has been assigned. | |
| getJavaType | back to summary |
|---|---|
| public Class Implements javax. Doc from javax. Return the Java type of the tuple element. | |
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private Map | |
| private Object[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <X> X | get(String
alias assigned to tuple element alias, Class<X> of the tuple element type)Implements javax. |
| public Object | get(String
alias assigned to tuple element alias)Implements javax. |
| public <X> X | get(int
position in result tuple i, Class<X> type of the tuple element type)Implements javax. |
| public Object | get(int
position in result tuple i)Implements javax. |
| public <X> X | get(TupleElement<X>
tuple element tupleElement)Implements javax. |
| public List | |
| private Class | |
| public Object[] | toArray()
Implements javax. |
| aliasReferences | back to summary |
|---|---|
| private Map<String, String> aliasReferences | |
| aliasToValue | back to summary |
|---|---|
| private Map<String, Object> aliasToValue | |
| tuple | back to summary |
|---|---|
| private Object[] tuple | |
| NativeTupleImpl | back to summary |
|---|---|
| public NativeTupleImpl(Object[] tuple, String[] aliases) | |
| get | back to summary |
|---|---|
| public <X> X get(String alias, Class<X> type) Implements javax. Doc from javax. Get the value of the tuple element to which the specified alias has been assigned. | |
| get | back to summary |
|---|---|
| public Object get(String alias) Implements javax. Doc from javax. Get the value of the tuple element to which the specified alias has been assigned. | |
| get | back to summary |
|---|---|
| public <X> X get(int i, Class<X> type) Implements javax. Doc from javax. Get the value of the element at the specified position in the result tuple. The first position is 0. | |
| get | back to summary |
|---|---|
| public Object get(int i) Implements javax. Doc from javax. Get the value of the element at the specified position in the result tuple. The first position is 0. | |
| get | back to summary |
|---|---|
| public <X> X get(TupleElement<X> tupleElement) Implements javax. Doc from javax. Get the value of the specified tuple element.
| |
| getElements | back to summary |
|---|---|
| public List Implements javax. Doc from javax. Return the tuple elements.
| |
| getValueClass | back to summary |
|---|---|
| private Class | |
| toArray | back to summary |
|---|---|
| public Object[] toArray() Implements javax. Doc from javax. Return the values of the result tuple elements as an array. | |