commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgra...@apache.org
Subject cvs commit: jakarta-commons-sandbox/mapper/src/share/org/apache/commons/mapper/jdbc JdbcHelper.java
Date Thu, 28 Aug 2003 00:07:22 GMT
dgraham     2003/08/27 17:07:22

  Modified:    mapper/src/share/org/apache/commons/mapper/jdbc
                        JdbcHelper.java
  Log:
  Removed toBoolean() and toInt() because JDBC drivers handle these 
  conversions.
  
  Revision  Changes    Path
  1.9       +3 -17     jakarta-commons-sandbox/mapper/src/share/org/apache/commons/mapper/jdbc/JdbcHelper.java
  
  Index: JdbcHelper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/mapper/src/share/org/apache/commons/mapper/jdbc/JdbcHelper.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- JdbcHelper.java	29 Jul 2003 04:54:58 -0000	1.8
  +++ JdbcHelper.java	28 Aug 2003 00:07:22 -0000	1.9
  @@ -495,20 +495,6 @@
       }
   
       /**
  -     * Converts a boolean to an integer.  False is 0, true is 1.
  -     */
  -    public int toInt(boolean bool) {
  -        return bool ? 1 : 0;
  -    }
  -
  -    /**
  -     * Converts an integer to a boolean.  Zero is false, anything else is true.
  -     */
  -    public boolean toBoolean(int value) {
  -        return (value == 0) ? false : true;
  -    }
  -
  -    /**
        * JdbcHelper uses this method internally whenever it needs a database 
        * Connection.  This implementation retrieves a Connection from the 
        * DataSource.  Subclasses can override this method to change how 
  
  
  

Mime
View raw message