Class SQLAlterTableAddColumn
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.statement.SQLAlterTableAddColumn
-
- All Implemented Interfaces:
SQLObject,SQLAlterTableItem
public class SQLAlterTableAddColumn extends SQLObjectImpl implements SQLAlterTableItem
-
-
Field Summary
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLAlterTableAddColumn()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(SQLASTVisitor visitor)voidaddColumn(SQLColumnDefinition column)SQLNamegetAfterColumn()List<SQLColumnDefinition>getColumns()SQLNamegetFirstColumn()BooleangetRestrict()booleanisCascade()booleanisFirst()booleanisIfNotExists()booleanisRestrict()voidsetAfterColumn(SQLName after)voidsetCascade(boolean cascade)voidsetFirst(boolean first)voidsetFirstColumn(SQLName first)voidsetIfNotExists(boolean ifNotExists)voidsetRestrict(boolean restrict)-
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, clone, cloneTo, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setHint, setParent, setSource, setSourceLine, toString
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, clone, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setParent, setSource
-
-
-
-
Method Detail
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Specified by:
accept0in classSQLObjectImpl
-
isIfNotExists
public boolean isIfNotExists()
-
setIfNotExists
public void setIfNotExists(boolean ifNotExists)
-
getColumns
public List<SQLColumnDefinition> getColumns()
-
addColumn
public void addColumn(SQLColumnDefinition column)
-
getFirstColumn
public SQLName getFirstColumn()
-
setFirstColumn
public void setFirstColumn(SQLName first)
-
isFirst
public boolean isFirst()
-
setFirst
public void setFirst(boolean first)
-
getAfterColumn
public SQLName getAfterColumn()
-
setAfterColumn
public void setAfterColumn(SQLName after)
-
getRestrict
public Boolean getRestrict()
-
isRestrict
public boolean isRestrict()
-
setRestrict
public void setRestrict(boolean restrict)
-
isCascade
public boolean isCascade()
-
setCascade
public void setCascade(boolean cascade)
-
-