|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.transform.DistinctRootEntityResultTransformer
public class DistinctRootEntityResultTransformer
Much like RootEntityResultTransformer, but we also distinct
the entity in the final result.
instance.
| Field Summary | |
|---|---|
static DistinctRootEntityResultTransformer |
INSTANCE
|
| Method Summary | |
|---|---|
boolean[] |
includeInTransform(String[] aliases,
int tupleLength)
Returns an array with the i-th element indicating whether the i-th element of the tuple is included in the transformed value. |
boolean |
isTransformedValueATupleElement(String[] aliases,
int tupleLength)
When a tuple is transformed, is the result a single element of the tuple? |
List |
transformList(List list)
Simply delegates to DistinctResultTransformer.transformList(java.util.List). |
Object |
transformTuple(Object[] tuple,
String[] aliases)
Simply delegates to RootEntityResultTransformer.transformTuple(java.lang.Object[], java.lang.String[]). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final DistinctRootEntityResultTransformer INSTANCE
| Method Detail |
|---|
public Object transformTuple(Object[] tuple,
String[] aliases)
RootEntityResultTransformer.transformTuple(java.lang.Object[], java.lang.String[]).
transformTuple in interface ResultTransformertuple - The tuple to transformaliases - The tuple aliases
public List transformList(List list)
DistinctResultTransformer.transformList(java.util.List).
transformList in interface ResultTransformerlist - The list to transform.
public boolean[] includeInTransform(String[] aliases,
int tupleLength)
includeInTransform in interface TupleSubsetResultTransformeraliases - - the aliases that correspond to the tupletupleLength - - the number of elements in the tuple
public boolean isTransformedValueATupleElement(String[] aliases,
int tupleLength)
isTransformedValueATupleElement in interface TupleSubsetResultTransformeraliases - - the aliases that correspond to the tupletupleLength - - the number of elements in the tuple
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||