I am copying some rows from a DB2 database usign a JDBC interface. My worry is this: Some columns are defined as DECIMAL 15. Internaly in DB2 these are stored as binary coded decimal. Copying these via a double precision variable in Java might lose some precision. As the program will run in a bank, this would definitely be a problem.
What’s the best way to handle that?
Why not use
ResultSet.getBigDecimal()?The Javadoc states: