Package org.hibernate.transform
Class DistinctResultTransformer
- java.lang.Object
-
- org.hibernate.transform.BasicTransformerAdapter
-
- org.hibernate.transform.DistinctResultTransformer
-
- All Implemented Interfaces:
java.io.Serializable
,ResultTransformer
public class DistinctResultTransformer extends BasicTransformerAdapter
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, singletoninstance
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DistinctResultTransformer
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List
transformList(java.util.List list)
Uniquely distinct each tuple row here.-
Methods inherited from class org.hibernate.transform.BasicTransformerAdapter
transformTuple
-
-
-
-
Field Detail
-
INSTANCE
public static final DistinctResultTransformer INSTANCE
-
-
Method Detail
-
transformList
public java.util.List transformList(java.util.List list)
Uniquely distinct each tuple row here.- Specified by:
transformList
in interfaceResultTransformer
- Overrides:
transformList
in classBasicTransformerAdapter
- Parameters:
list
- The result.- Returns:
- The transformed result.
-
-