1 /* 2 * Copyright 2015-2018 HuntLabs.cn 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 module hunt.sql.ast.statement.SQLAlterProcedureStatement; 17 18 import hunt.sql.ast.SQLExpr; 19 import hunt.sql.ast.SQLStatementImpl; 20 // import hunt.sql.dialect.oracle.ast.stmt.OracleAlterStatement; 21 // import hunt.sql.dialect.oracle.ast.stmt.OracleStatementImpl; 22 // import hunt.sql.dialect.oracle.visitor.OracleASTVisitor; //@gxc 23 import hunt.sql.visitor.SQLASTVisitor; 24 import hunt.sql.ast.statement.SQLAlterStatement; 25 26 27 public class SQLAlterProcedureStatement : SQLStatementImpl , SQLAlterStatement { 28 29 private SQLExpr name; 30 31 private bool compile = false; 32 private bool reuseSettings = false; 33 34 private SQLExpr comment; 35 private bool languageSql; 36 private bool containsSql; 37 private SQLExpr sqlSecurity; 38 39 override public void accept0(SQLASTVisitor visitor) { 40 if (visitor.visit(this)) { 41 acceptChild(visitor, name); 42 } 43 visitor.endVisit(this); 44 } 45 46 public SQLExpr getName() { 47 return name; 48 } 49 50 public void setName(SQLExpr name) { 51 this.name = name; 52 } 53 54 public bool isCompile() { 55 return compile; 56 } 57 58 public void setCompile(bool compile) { 59 this.compile = compile; 60 } 61 62 public bool isReuseSettings() { 63 return reuseSettings; 64 } 65 66 public void setReuseSettings(bool reuseSettings) { 67 this.reuseSettings = reuseSettings; 68 } 69 70 public bool isLanguageSql() { 71 return languageSql; 72 } 73 74 public void setLanguageSql(bool languageSql) { 75 this.languageSql = languageSql; 76 } 77 78 public bool isContainsSql() { 79 return containsSql; 80 } 81 82 public void setContainsSql(bool containsSql) { 83 this.containsSql = containsSql; 84 } 85 86 public SQLExpr getSqlSecurity() { 87 return sqlSecurity; 88 } 89 90 public void setSqlSecurity(SQLExpr sqlSecurity) { 91 if (sqlSecurity !is null) { 92 sqlSecurity.setParent(this); 93 } 94 this.sqlSecurity = sqlSecurity; 95 } 96 97 public SQLExpr getComment() { 98 return comment; 99 } 100 101 public void setComment(SQLExpr comment) { 102 if (comment !is null) { 103 comment.setParent(this); 104 } 105 this.comment = comment; 106 } 107 }