001package gudusoft.gsqlparser.stmt;
002
003import gudusoft.gsqlparser.*;
004import gudusoft.gsqlparser.nodes.*;
005
006public class TAlterRelation extends TCustomSqlStatement {
007
008    public TAlterRelation(EDbVendor dbvendor) {
009        super(dbvendor);
010        sqlstatementtype = ESqlStatementType.sstAlterRelation;
011    }
012
013    void buildsql() {
014    }
015
016    void clear() {
017    }
018
019    String getasprettytext() {
020        return "";
021    }
022
023    void iterate(TVisitorAbs pvisitor) {
024    }
025
026    TAlterTableOptionList alterTableOptionList = null;
027
028    /**
029     * Alter options
030     * @return Alter options
031     */
032    public TAlterTableOptionList getAlterTableOptionList() {
033        return alterTableOptionList;
034    }
035
036    public void setAlterTableOptionList(TAlterTableOptionList alterTableOptionList) {
037        this.alterTableOptionList = alterTableOptionList;
038    }
039
040    // ADD
041    // { < column_definition > | < table_constraint > } [ ,...n ]
042    private TTableElementList tableElementList = null;
043
044    /**
045     * @deprecated As of v1.6.4.1, all alter table options moved to {@link #getAlterTableOptionList()}
046     */
047    public TTableElementList getTableElementList() {
048        return tableElementList;
049    }
050    public void setTableElementList(TTableElementList tableElementList) {
051        this.tableElementList = tableElementList;
052    }
053
054}