Class AlterColumn

  • All Implemented Interfaces:
    Serializable

    public class AlterColumn
    extends Expression
    Expression to translate ALTER TABLE... ALTER COLUMN... statements.
    Since:
    2.0.0
    Author:
    Rui Vilao (rui.vilao@feedzai.com)
    See Also:
    Serialized Form
    • Constructor Detail

      • AlterColumn

        public AlterColumn​(Expression table,
                           DbColumn column)
        Creates a new instance of AlterColumn.
        Parameters:
        table - The table where the column resides.
        column - The column definition.
    • Method Detail

      • 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.
      • getTable

        public Expression getTable()
        Gets the table expression.
        Returns:
        The table expression.
      • getColumn

        public DbColumn getColumn()
        Gets the column to change.
        Returns:
        The column to change.