Clover coverage report - Replica - 1.0-Alpha
Coverage timestamp: Dom Fev 1 2004 17:00:58 WET
file stats: LOC: 74   Methods: 5
NCLOC: 52   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
ASTTableColumn.java 0% 0% 0% 0%
coverage
 1   
 /* JJT:    0.2.2 */
 2   
 
 3   
 package    mobisnap.mobile_trx;
 4   
 
 5   
 import mobisnap.*;
 6   
 
 7   
 /**
 8   
  * Implements table reference
 9   
  */
 10   
 public class ASTTableColumn extends mobisnap.mobile_trx.SimpleNode {
 11   
     String s1, s2, s3;
 12   
     
 13  0
     public ASTTableColumn(int id) {
 14  0
         super(id);
 15   
     }
 16   
 
 17  0
     public ASTTableColumn( MobisnapSQL p, int i) {
 18  0
         super( p, i);
 19  0
         id = i;
 20   
     }
 21   
     
 22   
     /** Accept the visitor. **/
 23  0
     public Object jjtAccept(MobisnapSQLVisitor visitor, Object data) {
 24  0
         return visitor.visit(this, data);
 25   
     }
 26   
     
 27  0
     public String columnName() {
 28  0
         return toString( MobisnapConstants.MSQL_ORIGINAL).trim();
 29   
     }
 30   
     /**
 31   
      * Displays the source code of the node
 32   
      * 
 33   
      * @param msql_type Specifies which type of processing should be performed
 34   
      *        MobisnapConstants.MSQL_SERVER = 1
 35   
      *        MobisnapConstants.MSQL_TENTATIVE_CLIENT = 2
 36   
      *        MobisnapConstants.MSQL_STABLE_CLIENT = 3
 37   
      */
 38  0
     public void    sourceCode(    int msql_type, StringBuffer buffer) throws Exception {
 39  0
         if( msql_type == mobisnap.MobisnapConstants.MSQL_ORIGINAL) {
 40  0
             super.sourceCode( msql_type, buffer);
 41  0
             return;
 42   
         }
 43  0
         if( s2 == null) {
 44  0
             try {
 45  0
                 buffer.append( " ");
 46  0
                 Object obj = MobisnapSQL.names.getName( s1).getValue();
 47  0
                 if( obj instanceof String) {
 48  0
                     buffer.append( "'");
 49  0
                     buffer.append( obj.toString());
 50  0
                     buffer.append( "'");
 51  0
                 } else if( obj instanceof java.sql.Date)
 52  0
                     buffer.append( MSQLTypeUtil.date2String( (java.sql.Date)obj));
 53   
                 else
 54  0
                     buffer.append( obj.toString());
 55  0
                 buffer.append( " ");
 56  0
                 return;
 57   
             } catch( Exception e) {
 58   
                 // do nothing
 59   
             }
 60   
         }
 61  0
         buffer.append( " ");
 62  0
         buffer.append( s1);
 63  0
         if( s2 != null) {
 64  0
             buffer.append( ".");
 65  0
             buffer.append( s2);
 66   
         }
 67  0
         if( s3 != null) {
 68  0
             buffer.append( ".");
 69  0
             buffer.append( s3);
 70   
         }
 71  0
         buffer.append( " ");
 72   
     }
 73   
 }
 74