Clover coverage report - Replica - 1.0-Alpha
Coverage timestamp: Dom Fev 1 2004 17:00:58 WET
file stats: LOC: 51   Methods: 6
NCLOC: 37   Classes: 2
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
ASTUpdateStatement.java - 0% 0% 0%
coverage
 1   
 /* JJT:    0.2.2 */
 2   
 
 3   
 package    mobisnap.mobile_trx;
 4   
 
 5   
 import java.util.*;
 6   
 
 7   
 public class ASTUpdateStatement extends mobisnap.mobile_trx.SimpleNode {
 8   
     public ASTTableReference table;
 9   
     public ASTSQLExpression where;
 10   
     public boolean simpleUpdate = true;
 11   
     public Vector updates;            // list of update
 12   
     public String tableId;
 13   
     
 14   
     public class update {
 15   
         public ASTTableColumn column;
 16   
         public ASTSQLExpression expr;
 17   
         
 18  0
         public update( ASTTableColumn column, ASTSQLExpression expr) {
 19  0
             this.column = column;
 20  0
             this.expr = expr;
 21   
         }
 22   
     }
 23   
     
 24   
     /** Accept the visitor. **/
 25  0
     public Object jjtAccept(MobisnapSQLVisitor visitor, Object data) {
 26  0
         return visitor.visit(this, data);
 27   
     }
 28   
     
 29  0
     public ASTUpdateStatement(int id) {
 30  0
         super(id);
 31  0
         updates = new Vector();
 32   
     }
 33   
 
 34  0
     public ASTUpdateStatement( MobisnapSQL p, int i) {
 35  0
         super( p, i);
 36  0
         id = i;
 37  0
         updates = new Vector();
 38   
     }
 39   
     
 40  0
     public void insert( ASTTableColumn column, ASTSQLExpression expr) {
 41  0
         updates.addElement( new update( column, expr));
 42   
     }
 43   
     
 44  0
     public void process( int msql_type) throws Exception {
 45  0
         StringBuffer buf = new StringBuffer();
 46  0
         sourceCode( msql_type, buf);
 47  0
         MobisnapSQL.transaction.executeUpdate( buf.toString().trim());
 48   
     }
 49   
 
 50   
 }
 51