Package org.hibernate.transform
Class RootEntityResultTransformer
java.lang.Object
org.hibernate.transform.BasicTransformerAdapter
org.hibernate.transform.RootEntityResultTransformer
- All Implemented Interfaces:
Serializable,ResultTransformer
public final class RootEntityResultTransformer
extends BasicTransformerAdapter
implements Serializable
ResultTransformer implementation which limits the result tuple
to only the "root entity".
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) Return just the root entity from the row tuple.Methods inherited from class org.hibernate.transform.BasicTransformerAdapter
transformList
-
Field Details
-
INSTANCE
-
-
Method Details
-
transformTuple
Return just the root entity from the row tuple.- Specified by:
transformTuplein interfaceResultTransformer- Overrides:
transformTuplein classBasicTransformerAdapter- Parameters:
tuple- The result elementsaliases- The result aliases ("parallel" array to tuple)- Returns:
- The transformed row.
-