Deprecated
as a consequence of ResultTransformer being deprecated. See corresponding docs for further information.
ResultTransformer for handling JPA Tuple results from native queries.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final NativeQueryTupleTransformer | INSTANCE
Deprecated
as a consequence of
NativeQueryTupleTransformer being deprecated.
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Class | getTransformedType()
Implements org. |
| public Tuple | transformTuple(Object[]
The result elements tuple, String[] The result aliases ("parallel" array to tuple) aliases)Implements org. |
| INSTANCE | back to summary |
|---|---|
| public static final NativeQueryTupleTransformer INSTANCE
Deprecated as a consequence of | |
| NativeQueryTupleTransformer | back to summary |
|---|---|
| public NativeQueryTupleTransformer() | |
| getTransformedType | back to summary |
|---|---|
| public Class Implements org. Doc from org. The type resulting from this transformation
| |
| transformTuple | back to summary |
|---|---|
| public Tuple transformTuple(Object[] tuple, String[] aliases) 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 shape. | |
| 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 jakarta. |
| public Class | getJavaType()
Implements jakarta. |
| 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 jakarta. Doc from jakarta. Return the alias assigned to the tuple element or null, if no alias has been assigned. | |
| getJavaType | back to summary |
|---|---|
| public Class Implements jakarta. Doc from jakarta. Return the Java type of the tuple element. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Map | |
| private final int | |
| private final 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 jakarta. |
| public Object | get(String
alias assigned to tuple element alias)Implements jakarta. |
| public <X> X | get(int
position in result tuple i, Class<X> type of the tuple element type)Implements jakarta. |
| public Object | get(int
position in result tuple i)Implements jakarta. |
| public <X> X | get(TupleElement<X>
tuple element tupleElement)Implements jakarta. |
| public List | |
| private Class | |
| public Object[] | toArray()
Implements jakarta. |
| public String |
| aliasReferences | back to summary |
|---|---|
| private final Map<String, String> aliasReferences | |
| aliasToValue | back to summary |
|---|---|
| private final Map<String, Object> aliasToValue | |
| size | back to summary |
|---|---|
| private final int size | |
| tuple | back to summary |
|---|---|
| private final 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 jakarta. Doc from jakarta. 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 jakarta. Doc from jakarta. 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 jakarta. Doc from jakarta. 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 jakarta. Doc from jakarta. 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 jakarta. Doc from jakarta. Get the value of the specified tuple element.
| |
| getElements | back to summary |
|---|---|
| public List Implements jakarta. Doc from jakarta. Return the tuple elements.
| |
| getValueClass | back to summary |
|---|---|
| private Class | |
| toArray | back to summary |
|---|---|
| public Object[] toArray() Implements jakarta. Doc from jakarta. Return the values of the result tuple elements as an array. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |