| Modifier and Type | Field and Description |
|---|---|
| private final Constructor |
| Access | Constructor and Description |
|---|---|
| public | AliasToBeanConstructorResultTransformer(Constructor<T>
The contructor in which to wrap the tuples. constructor)Instantiates a AliasToBeanConstructorResultTransformer. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True if both have the same defined constuctor; false otherwise.The other instance to check for equality. other)Overrides java. |
| public int | Returns: Our defined ctor hashCodeOverrides java. |
| public List | transformList(List<E>
The result. collection)Implements org. |
| public Object | transformTuple(Object[]
The result elements tuple, String[] The result aliases ("parallel" array to tuple) aliases)Implements org. |
| constructor | back to summary |
|---|---|
| private final Constructor<T> constructor | |
| AliasToBeanConstructorResultTransformer | back to summary |
|---|---|
| public AliasToBeanConstructorResultTransformer(Constructor<T> constructor) Instantiates a AliasToBeanConstructorResultTransformer.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. 2 AliasToBeanConstructorResultTransformer are considered equal if they have the same defined constructor.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Define our hashCode by our defined constructor's hasCode.
| |
| transformList | back to summary |
|---|---|
| public List Implements org. Doc from org. Here we have an opportunity to perform transformation on the query result as a whole. This might be useful to convert from one collection type to another or to remove duplicates from the result, etc. | |
| transformTuple | back to summary |
|---|---|
| public Object transformTuple(Object[] tuple, String[] aliases) Implements org. Wrap the incoming tuples in a call to our configured constructor.
| |