Package org.hibernate.transform
Class AliasToEntityMapResultTransformer
java.lang.Object
org.hibernate.transform.BasicTransformerAdapter
org.hibernate.transform.AliasToEntityMapResultTransformer
- All Implemented Interfaces:
Serializable,ResultTransformer
public class AliasToEntityMapResultTransformer
extends BasicTransformerAdapter
implements Serializable
ResultTransformer implementation which builds a map for each "row",
made up of each aliased value where the alias is the map key.
Since this transformer is stateless, all instances would be considered equal.
So for optimization purposes we limit it to a single, singleton instance.- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiontransformTuple(Object[] tuple, String[] aliases) Tuples are the elements making up each "row" of the query result.Methods inherited from class org.hibernate.transform.BasicTransformerAdapter
transformList
-
Field Details
-
INSTANCE
-
-
Method Details
-
transformTuple
Tuples are the elements making up each "row" of the query result. The contract here is to transform these elements into the final row.- Specified by:
transformTuplein interfaceResultTransformer- Overrides:
transformTuplein classBasicTransformerAdapter- Parameters:
tuple- The result elementsaliases- The result aliases ("parallel" array to tuple)- Returns:
- The transformed row.
-