001package gudusoft.gsqlparser.stmt; 002 003import java.util.ArrayList; 004 005import gudusoft.gsqlparser.*; 006import gudusoft.gsqlparser.nodes.*; 007 008 009public class TAlterTypeStatement extends TCustomSqlStatement { 010 011 private TObjectName typeName; 012 private ArrayList<TAlterTypeOption> alterTypeOptionList; 013 014 015 public ArrayList<TAlterTypeOption> getAlterTypeOptionList() { 016 return alterTypeOptionList; 017 } 018 019 020 public TAlterTypeStatement(EDbVendor dbvendor) { 021 super(dbvendor); 022 sqlstatementtype = ESqlStatementType.sstaltertype; 023 } 024 025 void buildsql() { 026 } 027 028 void clear() { 029 } 030 031 String getasprettytext() { 032 return ""; 033 } 034 035 void iterate(TVisitorAbs pvisitor) { 036 } 037 038 public TObjectName getTypeName() { 039 return typeName; 040 } 041 042 public int doParseStatement(TCustomSqlStatement psql) { 043 if (rootNode == null) return -1; 044 super.doParseStatement(psql); 045 046 TAlterTypeSqlNode node = (TAlterTypeSqlNode) rootNode; 047 typeName = node.getTypeName(); 048 typeName.setDbObjectTypeDirectly(EDbObjectType.type); 049 this.alterTypeOptionList = node.getAlterTypeOptionList(); 050 051 052 return 0; 053 } 054 055 public void accept(TParseTreeVisitor v){ 056 v.preVisit(this); 057 v.postVisit(this); 058 } 059 060 public void acceptChildren(TParseTreeVisitor v){ 061 v.preVisit(this); 062 v.postVisit(this); 063 } 064}