org.hibernate.transform
Class DistinctRootEntityResultTransformer
java.lang.Object
org.hibernate.transform.DistinctRootEntityResultTransformer
- All Implemented Interfaces:
- java.io.Serializable, ResultTransformer
public class DistinctRootEntityResultTransformer
- extends java.lang.Object
- implements ResultTransformer, java.io.Serializable
Much like RootEntityResultTransformer, but we also distinct the entity in the final result.
Since this transformer is stateless, all instances would be considered equal. So for optimization purposes
we limit it to a single, singleton instance (this is not quite true yet: see deprecation notice
on constructor).
- Author:
- Gavin King, Steve Ebersole
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final DistinctRootEntityResultTransformer INSTANCE
DistinctRootEntityResultTransformer
public DistinctRootEntityResultTransformer()
- Deprecated. Use the
INSTANCE reference instead of explicitly creating a new one (to be removed in 3.4).
- Instantiate a DistinctRootEntityResultTransformer.
todo : make private, see deprecation notice
transformTuple
public java.lang.Object transformTuple(java.lang.Object[] tuple,
java.lang.String[] aliases)
- Simply delegates to
RootEntityResultTransformer.transformTuple(java.lang.Object[], java.lang.String[]).
- Specified by:
transformTuple in interface ResultTransformer
- Parameters:
tuple - The tuple to transformaliases - The tuple aliases
- Returns:
- The transformed tuple row.
transformList
public java.util.List transformList(java.util.List list)
- Simply delegates to
DistinctResultTransformer.transformList(java.util.List).
- Specified by:
transformList in interface ResultTransformer
- Parameters:
list - The list to transform.
- Returns:
- The transformed List.
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals in class java.lang.Object
Copyright © 2008 Hibernate.org. All Rights Reserved.