Class Cast

  • All Implemented Interfaces:
    Serializable

    public class Cast
    extends Expression
    The cast expression.
    Since:
    2.4.0
    Author:
    Francisco Santos (francisco.santos@feedzai.com)
    See Also:
    Serialized Form
    • Constructor Detail

      • Cast

        public Cast​(Expression expression,
                    DbColumnType type)
        Creates a new cast expression.
        Parameters:
        expression - the expression.
        type - the type to be converted.
    • Method Detail

      • getExpression

        public Expression getExpression()
        Gets the expression.
        Returns:
        The expression.
      • getType

        public DbColumnType getType()
        Gets the type to be converted.
        Returns:
        The type to be converted.
      • translate

        public String translate()
        Description copied from class: Expression
        Translates the expression.
        Specified by:
        translate in class Expression
        Returns:
        A translation of the implementing expression.