Class AliasToBeanConstructorResultTransformer<T>
java.lang.Object
org.hibernate.transform.AliasToBeanConstructorResultTransformer<T>
- All Implemented Interfaces:
TupleTransformer<T>, TypedTupleTransformer<T>
@Deprecated
public class AliasToBeanConstructorResultTransformer<T>
extends Object
implements TypedTupleTransformer<T>
Deprecated.
TupleTransformer which wraps the tuples in calls to a class constructor.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAliasToBeanConstructorResultTransformer(Constructor<T> constructor) Deprecated.Instantiates a AliasToBeanConstructorResultTransformer. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.2 AliasToBeanConstructorResultTransformer are considered equal if they have the same defined constructor.static <T> TypedTupleTransformer<T> forConstructor(Constructor<T> constructor) Deprecated.Deprecated.The type resulting from this transformationinthashCode()Deprecated.Define our hashCode by our defined constructor's hasCode.transformTuple(Object[] tuple, String[] aliases) Deprecated.Wrap the incoming tuples in a call to our configured constructor.
-
Constructor Details
-
AliasToBeanConstructorResultTransformer
Deprecated.Instantiates a AliasToBeanConstructorResultTransformer.- Parameters:
constructor- The constructor in which to wrap the tuples.
-
-
Method Details
-
forConstructor
Deprecated. -
getTransformedType
Deprecated.Description copied from interface:TypedTupleTransformerThe type resulting from this transformation- Specified by:
getTransformedTypein interfaceTypedTupleTransformer<T>
-
transformTuple
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
-
equals
Deprecated.2 AliasToBeanConstructorResultTransformer are considered equal if they have the same defined constructor.
-
select new MyClass(...) ...) or using a ConstructorResult