|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.transform.AliasToBeanConstructorResultTransformer
public class AliasToBeanConstructorResultTransformer
Wraps the tuples in a constructor call. todo : why Alias* in the name???
| Constructor Summary | |
|---|---|
AliasToBeanConstructorResultTransformer(Constructor constructor)
Instantiates a AliasToBeanConstructorResultTransformer. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AliasToBeanConstructorResultTransformer(Constructor constructor)
constructor - The contructor in which to wrap the tuples.| Method Detail |
|---|
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)
transformList in interface ResultTransformercollection - The result.
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Objectother - The other instance to check for equality.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||