Class AliasToBeanConstructorResultTransformer<T>

    • Constructor Detail

      • AliasToBeanConstructorResultTransformer

        public AliasToBeanConstructorResultTransformer​(Constructor<T> constructor)
        Deprecated.
        Instantiates a AliasToBeanConstructorResultTransformer.
        Parameters:
        constructor - The constructor in which to wrap the tuples.
    • Method Detail

      • transformTuple

        public T transformTuple​(Object[] tuple,
                                String[] aliases)
        Deprecated.
        Wrap the incoming tuples in a call to our configured constructor.
        Specified by:
        transformTuple in interface TupleTransformer<T>
        Parameters:
        tuple - The result elements
        aliases - 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.
        Overrides:
        hashCode in class Object
        Returns:
        Our defined ctor hashCode
      • equals

        public boolean equals​(Object other)
        Deprecated.
        2 AliasToBeanConstructorResultTransformer are considered equal if they have the same defined constructor.
        Overrides:
        equals in class Object
        Parameters:
        other - The other instance to check for equality.
        Returns:
        True if both have the same defined constructor; false otherwise.