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.MySqlSetTransactionStatement; 17 18 import hunt.sql.ast.SQLObject; 19 import hunt.sql.dialect.mysql.visitor.MySqlASTVisitor; 20 import hunt.sql.dialect.mysql.ast.statement.MySqlStatementImpl; 21 import hunt.Boolean; 22 23 import hunt.collection; 24 25 public class MySqlSetTransactionStatement : MySqlStatementImpl { 26 27 alias accept0 = MySqlStatementImpl.accept0; 28 29 private Boolean global; 30 31 private string isolationLevel; 32 33 private string accessModel; 34 35 private Boolean session; 36 37 38 public Boolean getSession() { 39 return session; 40 } 41 42 public void setSession(Boolean session) { 43 this.session = session; 44 } 45 46 override public void accept0(MySqlASTVisitor visitor) { 47 visitor.visit(this); 48 visitor.endVisit(this); 49 } 50 51 public Boolean getGlobal() { 52 return global; 53 } 54 55 public void setGlobal(Boolean global) { 56 this.global = global; 57 } 58 59 public string getIsolationLevel() { 60 return isolationLevel; 61 } 62 63 public void setIsolationLevel(string isolationLevel) { 64 this.isolationLevel = isolationLevel; 65 } 66 67 public string getAccessModel() { 68 return accessModel; 69 } 70 71 public void setAccessModel(string accessModel) { 72 this.accessModel = accessModel; 73 } 74 75 override 76 public List!(SQLObject) getChildren() { 77 return Collections.emptyList!(SQLObject)(); 78 } 79 }