|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.transform.BasicTransformerAdapter org.hibernate.transform.AliasToEntityMapResultTransformer
public class AliasToEntityMapResultTransformer
ResultTransformer
implementation which builds a map for each "row", made up of each aliased value
where the alias is the map key.
instance
(this is not quite true yet, see deprecation notice
on constructor
).
Field Summary | |
---|---|
static AliasToEntityMapResultTransformer |
INSTANCE
|
Constructor Summary | |
---|---|
AliasToEntityMapResultTransformer()
Deprecated. Use the INSTANCE reference instead of explicitly creating a new one (to be removed in 3.4). |
Method Summary | |
---|---|
boolean |
equals(Object other)
All AliasToEntityMapResultTransformer are considered equal |
int |
hashCode()
All AliasToEntityMapResultTransformer are considered equal |
Object |
transformTuple(Object[] tuple,
String[] aliases)
Tuples are the elements making up each "row" of the query result. The contract here is to transform these elements into the final row. |
Methods inherited from class org.hibernate.transform.BasicTransformerAdapter |
---|
transformList |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final AliasToEntityMapResultTransformer INSTANCE
Constructor Detail |
---|
public AliasToEntityMapResultTransformer()
INSTANCE
reference instead of explicitly creating a new one (to be removed in 3.4).
Method Detail |
---|
public Object transformTuple(Object[] tuple, String[] aliases)
transformTuple
in interface ResultTransformer
transformTuple
in class BasicTransformerAdapter
tuple
- The result elementsaliases
- The result aliases ("parallel" array to tuple)
public boolean equals(Object other)
equals
in class Object
other
- The other instance to check for equality
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |