'Replacement for the deprecated method java.sql.CallableStatement.getBigDecimal(int parameterIndex, int scale)

I'm trying to replace this deprecated method, but the suggested replacement omits the Scale parameter.

The scale parameter seems critical to my application, but I'm unable to figure out an efficient way to retain the precision value.

In case of ResultSet object, however, the setScale() method is a saving grace, but there's no such method in CallableStatement. Can anyone please suggest an alternative?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source