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.clause.MySqlSelectIntoStatement; 17 18 19 import hunt.collection; 20 import hunt.sql.ast.SQLObject; 21 22 import hunt.sql.ast.statement.SQLSelect; 23 import hunt.sql.dialect.mysql.ast.statement.MySqlStatementImpl; 24 import hunt.sql.dialect.mysql.visitor.MySqlASTVisitor; 25 import hunt.sql.ast.SQLExpr; 26 27 public class MySqlSelectIntoStatement : MySqlStatementImpl{ 28 29 alias accept0 = MySqlStatementImpl.accept0; 30 31 //select statement 32 private SQLSelect select; 33 //var list 34 private List!(SQLExpr) varList; 35 36 this(){ 37 varList=new ArrayList!(SQLExpr)(); 38 } 39 40 public SQLSelect getSelect() { 41 return select; 42 } 43 44 public void setSelect(SQLSelect select) { 45 this.select = select; 46 } 47 48 public List!(SQLExpr) getVarList() { 49 return varList; 50 } 51 52 public void setVarList(List!(SQLExpr) varList) { 53 this.varList = varList; 54 } 55 56 57 58 override 59 public void accept0(MySqlASTVisitor visitor) { 60 if (visitor.visit(this)) { 61 acceptChild(visitor, select); 62 acceptChild!SQLExpr(visitor, varList); 63 } 64 visitor.endVisit(this); 65 } 66 67 }