1 /* JJT: 0.2.2 */ 2 3 package mobisnap.mobile_trx; 4 5 import java.util.*; 6 7 public class ASTInsertStatement extends mobisnap.mobile_trx.SimpleNode { 8 public ASTTableReference table; 9 public Vector values; // list of ASTPlSqlExpression 10 public Vector columns; // list of ASTTableColumn 11 public boolean simpleInsert = true; 12 13 public ASTInsertStatement(int id) { 14 super(id); 15 values = new Vector(); 16 columns = new Vector(); 17 } 18 19 public ASTInsertStatement( MobisnapSQL p, int i) { 20 super( p, i); 21 id = i; 22 values = new Vector(); 23 columns = new Vector(); 24 } 25 26 /*** Accept the visitor. **/ 27 public Object jjtAccept(MobisnapSQLVisitor visitor, Object data) { 28 return visitor.visit(this, data); 29 } 30 31 public void addColumn( ASTTableColumn col ){ 32 columns.addElement(col); 33 } 34 35 public void process( int msql_type) throws Exception { 36 StringBuffer buf = new StringBuffer(); 37 buf.setLength( 0); 38 sourceCode( msql_type, buf); 39 MobisnapSQL.transaction.executeUpdate( buf.toString().trim()); 40 } 41 42 }

This page was automatically generated by Maven