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 ResultTransformertuple - The result elementsaliases - The result aliases ("parallel" array to tuple)public java.util.List transformList(java.util.List collection)
ResultTransformertransformList in interface ResultTransformercollection - The result.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - The other instance to check for equality.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.