public class AliasToBeanConstructorResultTransformer extends java.lang.Object implements ResultTransformer
Constructor and Description |
---|
AliasToBeanConstructorResultTransformer(java.lang.reflect.Constructor constructor)
Instantiates a AliasToBeanConstructorResultTransformer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
2 AliasToBeanConstructorResultTransformer are considered equal if they have the same
defined constructor.
|
int |
hashCode()
Define our hashCode by our defined constructor's hasCode.
|
java.util.List |
transformList(java.util.List collection)
Here we have an opportunity to perform transformation on the
query result as a whole.
|
java.lang.Object |
transformTuple(java.lang.Object[] tuple,
java.lang.String[] aliases)
Wrap the incoming tuples in a call to our configured constructor.
|
public AliasToBeanConstructorResultTransformer(java.lang.reflect.Constructor constructor)
constructor
- The contructor in which to wrap the tuples.public java.lang.Object transformTuple(java.lang.Object[] tuple, java.lang.String[] aliases)
transformTuple
in interface ResultTransformer
tuple
- The result elementsaliases
- The result aliases ("parallel" array to tuple)public java.util.List transformList(java.util.List collection)
ResultTransformer
transformList
in interface ResultTransformer
collection
- The result.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- The other instance to check for equality.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.