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.dialect.mysql.ast.statement.MySqlAlterLogFileGroupStatement; 17 18 import hunt.sql.ast.SQLExpr; 19 import hunt.sql.ast.SQLName; 20 import hunt.sql.ast.statement.SQLAlterStatement; 21 import hunt.sql.dialect.mysql.visitor.MySqlASTVisitor; 22 import hunt.sql.dialect.mysql.ast.statement.MySqlStatementImpl; 23 24 public class MySqlAlterLogFileGroupStatement : MySqlStatementImpl , SQLAlterStatement { 25 alias accept0 = MySqlStatementImpl.accept0; 26 27 private SQLName name; 28 private SQLExpr addUndoFile; 29 private SQLExpr initialSize; 30 private bool wait; 31 private SQLExpr engine; 32 33 override public void accept0(MySqlASTVisitor visitor) { 34 if (visitor.visit(this)) { 35 acceptChild(visitor, name); 36 acceptChild(visitor, addUndoFile); 37 acceptChild(visitor, initialSize); 38 acceptChild(visitor, engine); 39 } 40 visitor.endVisit(this); 41 } 42 43 public SQLName getName() { 44 return name; 45 } 46 47 public void setName(SQLName name) { 48 if (name !is null) { 49 name.setParent(this); 50 } 51 this.name = name; 52 } 53 54 public SQLExpr getAddUndoFile() { 55 return addUndoFile; 56 } 57 58 public void setAddUndoFile(SQLExpr x) { 59 if (x !is null) { 60 x.setParent(this); 61 } 62 this.addUndoFile = x; 63 } 64 65 public SQLExpr getInitialSize() { 66 return initialSize; 67 } 68 69 public void setInitialSize(SQLExpr x) { 70 if (x !is null) { 71 x.setParent(this); 72 } 73 this.initialSize = x; 74 } 75 76 public bool isWait() { 77 return wait; 78 } 79 80 public void setWait(bool wait) { 81 this.wait = wait; 82 } 83 84 public SQLExpr getEngine() { 85 return engine; 86 } 87 88 public void setEngine(SQLExpr engine) { 89 if (engine !is null) { 90 engine.setParent(this); 91 } 92 this.engine = engine; 93 } 94 }