public class AliasToBeanConstructorResultTransformer extends Object implements ResultTransformer
| Constructor and Description | 
|---|
AliasToBeanConstructorResultTransformer(Constructor constructor)
Instantiates a AliasToBeanConstructorResultTransformer. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(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. 
 | 
List | 
transformList(List collection)
Here we have an opportunity to perform transformation on the
 query result as a whole. 
 | 
Object | 
transformTuple(Object[] tuple,
              String[] aliases)
Wrap the incoming tuples in a call to our configured constructor. 
 | 
public AliasToBeanConstructorResultTransformer(Constructor constructor)
constructor - The contructor in which to wrap the tuples.public Object transformTuple(Object[] tuple, String[] aliases)
transformTuple in interface ResultTransformertuple - The result elementsaliases - The result aliases ("parallel" array to tuple)public List transformList(List collection)
ResultTransformertransformList in interface ResultTransformercollection - The result.public int hashCode()
public boolean equals(Object other)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.