public class

DistinctRootEntityResultTransformer

extends Object
implements Serializable ResultTransformer
java.lang.Object
   ↳ org.hibernate.transform.DistinctRootEntityResultTransformer

Class Overview

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.

Summary

Fields
public static final DistinctRootEntityResultTransformer INSTANCE
Public Methods
List transformList(List list)
Simply delegates to transformList(List).
Object transformTuple(Object[] tuple, String[] aliases)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.transform.ResultTransformer

Fields

public static final DistinctRootEntityResultTransformer INSTANCE

Public Methods

public List transformList (List list)

Simply delegates to transformList(List).

Parameters
list The list to transform.
Returns
  • The transformed List.

public Object transformTuple (Object[] tuple, String[] aliases)

Parameters
tuple The tuple to transform
aliases The tuple aliases
Returns
  • The transformed tuple row.