Class AlterColumn
- java.lang.Object
-
- com.feedzai.commons.sql.abstraction.dml.Expression
-
- com.feedzai.commons.sql.abstraction.ddl.AlterColumn
-
- All Implemented Interfaces:
Serializable
public class AlterColumn extends Expression
Expression to translateALTER TABLE... ALTER COLUMN...statements.- Since:
- 2.0.0
- Author:
- Rui Vilao (rui.vilao@feedzai.com)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.feedzai.commons.sql.abstraction.dml.Expression
alias, enclosed, joins, ordering, properties, quotes, translator, withNoLock
-
-
Constructor Summary
Constructors Constructor Description AlterColumn(Expression table, DbColumn column)Creates a new instance ofAlterColumn.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DbColumngetColumn()Gets the column to change.ExpressiongetTable()Gets the table expression.Stringtranslate()Translates the expression.-
Methods inherited from class com.feedzai.commons.sql.abstraction.dml.Expression
alias, asc, desc, enclose, fullOuterJoin, getAlias, getJoins, getOrdering, innerJoin, isAliased, isEnclosed, isQuote, isQuotes, isWithNoLock, leftOuterJoin, rightOuterJoin, unquote, withNoLock
-
-
-
-
Constructor Detail
-
AlterColumn
public AlterColumn(Expression table, DbColumn column)
Creates a new instance ofAlterColumn.- Parameters:
table- The table where the column resides.column- The column definition.
-
-
Method Detail
-
translate
public String translate()
Description copied from class:ExpressionTranslates the expression.- Specified by:
translatein classExpression- 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.
-
-