Package org.hibernate.transform
Class AliasToBeanConstructorResultTransformer<T>
- java.lang.Object
-
- org.hibernate.transform.AliasToBeanConstructorResultTransformer<T>
-
- All Implemented Interfaces:
Serializable,ResultListTransformer<T>,TupleTransformer<T>,TypedTupleTransformer<T>,ResultTransformer<T>
@Deprecated public class AliasToBeanConstructorResultTransformer<T> extends Object implements ResultTransformer<T>, TypedTupleTransformer<T>
Deprecated.sinceResultTransformeris deprecatedWraps the tuples in a constructor call.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AliasToBeanConstructorResultTransformer(Constructor<T> constructor)Deprecated.Instantiates a AliasToBeanConstructorResultTransformer.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object other)Deprecated.2 AliasToBeanConstructorResultTransformer are considered equal if they have the same defined constructor.Class<T>getTransformedType()Deprecated.The type resulting from this transformationinthashCode()Deprecated.Define our hashCode by our defined constructor's hasCode.TtransformTuple(Object[] tuple, String[] aliases)Deprecated.Wrap the incoming tuples in a call to our configured constructor.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.transform.ResultTransformer
transformList
-
-
-
-
Constructor Detail
-
AliasToBeanConstructorResultTransformer
public AliasToBeanConstructorResultTransformer(Constructor<T> constructor)
Deprecated.Instantiates a AliasToBeanConstructorResultTransformer.- Parameters:
constructor- The constructor in which to wrap the tuples.
-
-
Method Detail
-
getTransformedType
public Class<T> getTransformedType()
Deprecated.Description copied from interface:TypedTupleTransformerThe type resulting from this transformation- Specified by:
getTransformedTypein interfaceTypedTupleTransformer<T>
-
transformTuple
public T transformTuple(Object[] tuple, String[] aliases)
Deprecated.Wrap the incoming tuples in a call to our configured constructor.- Specified by:
transformTuplein interfaceTupleTransformer<T>- Parameters:
tuple- The result elementsaliases- The result aliases ("parallel" array to tuple)- Returns:
- The transformed row.
-
hashCode
public int hashCode()
Deprecated.Define our hashCode by our defined constructor's hasCode.
-
equals
public boolean equals(Object other)
Deprecated.2 AliasToBeanConstructorResultTransformer are considered equal if they have the same defined constructor.
-
-