Package org.hibernate.transform
Class AliasedTupleSubsetResultTransformer
- java.lang.Object
-
- org.hibernate.transform.BasicTransformerAdapter
-
- org.hibernate.transform.AliasedTupleSubsetResultTransformer
-
- All Implemented Interfaces:
java.io.Serializable
,ResultTransformer
,TupleSubsetResultTransformer
- Direct Known Subclasses:
AliasToBeanResultTransformer
,AliasToEntityMapResultTransformer
public abstract class AliasedTupleSubsetResultTransformer extends BasicTransformerAdapter implements TupleSubsetResultTransformer
An implementation of TupleSubsetResultTransformer that ignores a tuple element if its corresponding alias is null.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AliasedTupleSubsetResultTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean[]
includeInTransform(java.lang.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.-
Methods inherited from class org.hibernate.transform.BasicTransformerAdapter
transformList, transformTuple
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.transform.ResultTransformer
transformList, transformTuple
-
Methods inherited from interface org.hibernate.transform.TupleSubsetResultTransformer
isTransformedValueATupleElement
-
-
-
-
Method Detail
-
includeInTransform
public boolean[] includeInTransform(java.lang.String[] aliases, int tupleLength)
Description copied from interface:TupleSubsetResultTransformer
Returns an array with the i-th element indicating whether the i-th element of the tuple is included in the transformed value.- Specified by:
includeInTransform
in interfaceTupleSubsetResultTransformer
- Parameters:
aliases
- - the aliases that correspond to the tupletupleLength
- - the number of elements in the tuple- Returns:
- array with the i-th element indicating whether the i-th element of the tuple is included in the transformed value.
-
-