Clover coverage report - brownies library - 1.0-beta-1
Coverage timestamp: 月 8 16 2004 17:14:42 GMT+09:00
file stats: LOC: 61   Methods: 5
NCLOC: 20   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
BeanSQL.java - 0% 0% 0%
coverage
 1   
 /*
 2   
  * Joey and its relative products are published under the terms
 3   
  * of the Apache Software License.
 4   
  */
 5   
 package org.asyrinx.brownie.core.sql;
 6   
 
 7   
 
 8   
 /**
 9   
  * @author Akima
 10   
  */
 11   
 public class BeanSQL {
 12   
 
 13   
     /**
 14   
      * Constructor for BeanSQL.
 15   
      */
 16  0
     public BeanSQL() {
 17  0
         super();
 18   
     }
 19   
 
 20   
     /**
 21   
      * Constructor for BeanSQL.
 22   
      */
 23  0
     public BeanSQL(String sql) {
 24  0
         super();
 25  0
         this.setSql(sql);
 26   
     }
 27   
 
 28   
     private String sql = null;
 29   
 
 30   
     /**
 31   
      * Method toSQL.
 32   
      * 
 33   
      * @param bean
 34   
      * @return String
 35   
      */
 36  0
     public String toSQL(Object bean) {
 37   
         //Map props = toPropMap(bean);
 38  0
         final NamedParamSQL replacer = new NamedParamSQL(sql);
 39  0
         return replacer.toExecutable(bean);
 40   
     }
 41   
 
 42   
     /**
 43   
      * Returns the sql.
 44   
      * 
 45   
      * @return String
 46   
      */
 47  0
     public String getSql() {
 48  0
         return sql;
 49   
     }
 50   
 
 51   
     /**
 52   
      * Sets the sql.
 53   
      * 
 54   
      * @param sql
 55   
      *            The sql to set
 56   
      */
 57  0
     public void setSql(String sql) {
 58  0
         this.sql = sql;
 59   
     }
 60   
 
 61   
 }