i'm using spring jdbcTemplate.batchupdate to insert a set of records.
String SQL_QUERY = "UPDATE RECORD_TABLE SET VALUE=?,LAST_UPDATE=?, LAST_USERNAME=? WHERE RECORD_NBR=?"
List<Object[]> updateParams = new Object[]{
myDomainVO.getBigDoubleValue(),
myDomainVO.getLastupdateDate(),
myDomainVO.getLastUserName(),
myDomainVO.getRecordNbr()
};
getJdbcTemplate().batchupdate(sql,updateParams);
now my Domain object has got a double value with 22 digit, but as i execute this code, DB gets updated with 2147483647 , the Integer.MAX_VALUE.
I also tried to pass the int[] argType as third param in batchUpdate as
int[] updateParamType = new int[]{
Types.DOUBLE,Types.DATE,Types.VARCHAR,Types.NUMERIC
}
Can anyone please explain why its behaving such ?
FYI I'm using oracle 11g.