Clover coverage report - Replica - 1.0-Alpha
Coverage timestamp: Dom Fev 1 2004 17:00:58 WET
file stats: LOC: 32   Methods: 2
NCLOC: 22   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
MSQLTDate.java 0% 0% 0% 0%
coverage
 1   
 package mobisnap.mobile_trx;
 2   
 
 3   
 import java.sql.*;
 4   
 
 5   
 /**
 6   
  * Used to represent variables and constants internally
 7   
  */
 8   
 public class MSQLTDate extends MSQLTVariable
 9   
 {
 10  0
     public MSQLTDate( boolean constant, boolean notnull) {
 11  0
         super( constant, notnull);
 12   
     }
 13   
     
 14   
     /**
 15   
      * Sets the value of the given variable
 16   
      */
 17  0
     public void setValue( Object obj) throws Exception {
 18  0
         if( constant && value != null)
 19  0
             throw new mobisnap.MobisnapException( "Assigning value to constant");
 20  0
         if( obj instanceof java.sql.Date)
 21  0
             value = obj;
 22  0
         else if( obj instanceof SQLNull && ! notnull)
 23  0
             value = obj;
 24  0
         else if( obj instanceof String && MSQLTypeUtil.mayBeDate( obj))
 25  0
             value = MSQLTypeUtil.string2Date((String)obj);
 26  0
         else if( obj instanceof java.sql.Timestamp)
 27  0
             value = new java.sql.Date( ((java.sql.Timestamp)obj).getTime());
 28   
         else
 29  0
             throw new mobisnap.MobisnapException( "Invalid assgnment to date : " + obj.getClass().getName() + " : " + obj.toString());
 30   
     }
 31   
 }
 32