cachedRowSet.updateInt(pColOrdinal, integerValue.getIntegerValue());
} else if (pValue instanceof DoubleData) {
DoubleData doubleValue = (DoubleData) pValue;
cachedRowSet.updateDouble(pColOrdinal, doubleValue.getDoubleValue());
} else if (pValue instanceof DecimalData) {
DecimalData value = (DecimalData) pValue;
cachedRowSet.updateBigDecimal(pColOrdinal, value.getBigDecimal());
} else if (pValue instanceof BooleanData) {
BooleanData value = (BooleanData) pValue;
cachedRowSet.updateBoolean(pColOrdinal, value.getBooleanValue());
} else if (pValue instanceof DateTimeData) {
DateTimeData value = (DateTimeData) pValue;
cachedRowSet.updateDate(pColOrdinal, new Date(value.asDate().getTime()));
} else if (pValue instanceof BinaryData) {
BinaryData value = (BinaryData) pValue;
cachedRowSet.updateBinaryStream(pColOrdinal, new ByteArrayInputStream(value.getValue()), value.getActualSize());
}
} catch (SQLException e) {
UsageException errorVar = new UsageException(e.getMessage(), net.helipilot50.stocktrade.framework.Constants.SP_ER_USER, net.helipilot50.stocktrade.framework.Constants.SP_ER_PARAMETERERROR, e);
ErrorMgr.addError(errorVar);
throw errorVar;