public Double getCalcoloPenaleEstinzioneBersani(long numeroMutuo, Date dataCalcolo) {
Double penaleEstinzioneBersani = 0.0;
final StringBuffer call = new StringBuffer("{? = call CALC_PENALEEST_BERSANI(?, ?)}");
Object[] inputparams = { new Long(numeroMutuo), dataCalcolo };
PdorCallableStatementCreator callStmCreator = new PdorCallableStatementCreator(call.toString(), inputparams, Types.REAL);
PdorFunctionCallableStatementCallback funcStmt = new PdorFunctionCallableStatementCallback();
Object result = getJdbcTemplate().execute(callStmCreator, funcStmt);
if( result == null)
return null;
if (result instanceof Float) {
Float floatResult = (Float) result;