Clover coverage report - Replica - 1.0-Alpha
Coverage timestamp: Dom Fev 1 2004 17:00:58 WET
file stats: LOC: 52   Methods: 9
NCLOC: 47   Classes: 1
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
MSQLTable.java 0% 0% 0% 0%
coverage
 1   
 package mobisnap.mobile_trx;
 2   
 
 3   
 import java.util.*;
 4   
 
 5   
 public class MSQLTable
 6   
 {
 7   
     public String name;
 8   
     private ArrayList lfields;
 9   
     private ArrayList lconstraints;
 10   
     private ArrayList lclusterids;    // araylist of arraylist of column (MSQLTableField)
 11   
         
 12  0
     MSQLTable( String name) {
 13  0
         this.name = name;
 14  0
         lfields = new ArrayList();
 15  0
         lconstraints = new ArrayList();
 16  0
         lclusterids = new ArrayList();
 17   
     }
 18   
     
 19  0
     void addField( MSQLTableField field) {
 20  0
         lfields.add( field);
 21   
     }
 22  0
     void addConstraint( MSQLTableConstraint cons) {
 23  0
         lconstraints.add( cons);
 24   
     }
 25  0
     void addClusterIds( ArrayList list) {
 26  0
         lclusterids.add( list);
 27   
     }
 28  0
     public Iterator fields() {
 29  0
         return lfields.iterator();
 30   
     }
 31  0
     public MSQLTableField field( int pos) {
 32  0
         return (MSQLTableField)lfields.get(pos);
 33   
     }
 34  0
     public Iterator constraints() {
 35  0
         return lconstraints.iterator();
 36   
     }
 37  0
     public Iterator clusterIds() {
 38  0
         return lclusterids.iterator();
 39   
     }
 40  0
     public MSQLTableField getField( String name) {
 41  0
         if( name == null)
 42  0
             return null;
 43  0
         name = name.trim();
 44  0
         for( int i = 0; i < lfields.size(); i++) {
 45  0
             MSQLTableField field = field( i);
 46  0
             if( field.name.equalsIgnoreCase( name))
 47  0
                 return field;
 48   
         }
 49  0
         return null;
 50   
     }
 51   
 }
 52