Package org.hibernate.transform
Class DistinctResultTransformer
java.lang.Object
org.hibernate.transform.BasicTransformerAdapter
org.hibernate.transform.DistinctResultTransformer
- All Implemented Interfaces:
Serializable,ResultTransformer
Distinctions the result tuples in the final result based on the defined
equality of the tuples.
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 TypeMethodDescriptiontransformList(List list) Uniquely distinct each tuple row here.Methods inherited from class org.hibernate.transform.BasicTransformerAdapter
transformTuple
-
Field Details
-
INSTANCE
-
-
Method Details
-
transformList
Uniquely distinct each tuple row here.- Specified by:
transformListin interfaceResultTransformer- Overrides:
transformListin classBasicTransformerAdapter- Parameters:
list- The result.- Returns:
- The transformed result.
-