--- FM2SQL/Attic/DBBean.java 2004/06/23 09:59:53 1.25 +++ FM2SQL/Attic/DBBean.java 2004/07/19 11:01:29 1.28 @@ -1347,7 +1347,19 @@ public class DBBean // container fields try { - tableRow.addElement(new Double(resultSet.getDouble(i))); + Double value =new Double(resultSet.getDouble(i)); + + + // 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); + // m_columnClasses.addElement(Integer.class); } catch (Exception e) @@ -1533,5 +1545,26 @@ public class DBBean { 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(); + } + } + + } } \ No newline at end of file