org.hibernate.transform
Class AliasToBeanConstructorResultTransformer
java.lang.Object
org.hibernate.transform.AliasToBeanConstructorResultTransformer
- ResultTransformer, Serializable
public class AliasToBeanConstructorResultTransformer
extends java.lang.Object
Wraps the tuples in a constructor call.
todo : why Alias* in the name???
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) -
|
Object | transformTuple(Object[] tuple, String[] aliases) - Wrap the incoming tuples in a call to our configured constructor.
|
AliasToBeanConstructorResultTransformer
public AliasToBeanConstructorResultTransformer(Constructor constructor)
Instantiates a AliasToBeanConstructorResultTransformer.
constructor
- The contructor in which to wrap the tuples.
equals
public boolean equals(Object other)
2 AliasToBeanConstructorResultTransformer are considered equal if they have the same
defined constructor.
other
- The other instance to check for equality.
- True if both have the same defined constuctor; false otherwise.
hashCode
public int hashCode()
Define our hashCode by our defined constructor's hasCode.
- Our defined ctor hashCode
transformTuple
public Object transformTuple(Object[] tuple,
String[] aliases)
Wrap the incoming tuples in a call to our configured constructor.
- transformTuple in interface ResultTransformer