Diff for /FM2SQL/Attic/DBBean.java between versions 1.26 and 1.29

version 1.26, 2004/07/06 10:23:30 version 1.29, 2004/07/27 10:41:36
Line 612  public class DBBean Line 612  public class DBBean
           // container fields            // container fields
           try            try
           {            {
             tableRow.addElement(new Double(resultSet.getDouble(i)));              Double value =new Double(resultSet.getDouble(i));
             m_columnClasses.addElement(Double.class);            
             
             // tableRow.addElement(new Double(resultSet.getDouble(i)));
             String tVal =value.toString();
             tVal = tVal.substring(tVal.indexOf('.')+1);
             boolean checkMe = tVal.length()==1&&tVal.equals("0");
           //  System.out.println("check was"+checkMe+" "+tVal);
             if(checkMe)
             tableRow.addElement(new Integer(value.intValue()));
             else          
             tableRow.addElement(value);
   
           } catch (Exception e)            } catch (Exception e)
           {            {
Line 1354  public class DBBean Line 1364  public class DBBean
           String tVal =value.toString();            String tVal =value.toString();
           tVal = tVal.substring(tVal.indexOf('.')+1);            tVal = tVal.substring(tVal.indexOf('.')+1);
           boolean checkMe = tVal.length()==1&&tVal.equals("0");            boolean checkMe = tVal.length()==1&&tVal.equals("0");
           System.out.println("check was"+checkMe+" "+tVal);          //  System.out.println("check was"+checkMe+" "+tVal);
           if(checkMe)            if(checkMe)
           tableRow.addElement(new Integer(value.intValue()));            tableRow.addElement(new Integer(value.intValue()));
           else                      else          
Line 1545  public class DBBean Line 1555  public class DBBean
   {    {
     useNormanToUnicodeMapper = b;      useNormanToUnicodeMapper = b;
   }    }
     /**
      * 
      */
     protected void closeAllConnections() 
     {
       Enumeration enumeration =  connectionPool.elements();
        while(enumeration.hasMoreElements())
        {
          ConnectionPool conPol =(ConnectionPool)enumeration.nextElement();
          try
         {
           System.out.println(conPol);
           conPol.con.close();
         } catch (SQLException e)
         {
           // TODO Auto-generated catch block
           e.printStackTrace();
         }
        }
      
     }
   
 }  }
   

Removed from v.1.26  
changed lines
  Added in v.1.29


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>