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