Spring jdbc(java类型和oracle类型的转换)(七)
.append(((Date)paramObject).toString()).toString());
} else if ((paramObject instanceof Time)) {
setStringInternal(paramInt1, new StringBuilder().append("").append(((Time)paramObject).toString()).toString());
} else if ((paramObject instanceof Timestamp)) {
setStringInternal(paramInt1, new StringBuilder().append("").append(((Timestamp)paramObject).toString()).toString());
}
else
{
localSQLException = DatabaseError.createSqlException(getConnectionDuringExceptionHandling(), 132);
localSQLException.fillInStackTrace();
throw localSQLException;
}
case 2:
if ((paramObject instanceof NUMBER)) {
setNUMBERInternal(paramInt1, (NUMBER)paramObject);
} else if ((paramObject instanceof Integer)) {
setIntInternal(paramInt1, ((Integer)paramObject).intValue());
} else if ((paramObject instanceof Long)) {
setLongInternal(paramInt1, ((Long)paramObject).longValue());
} else if ((paramObject instanceof Float)) {
setFloatInternal(paramInt1, ((Float)paramObject).floatValue());
} else if ((paramObject instanceof Double)) {
setDoubleInternal(paramInt1, ((Double)paramObject).doubleva lue());
} else if ((paramObject instanceof BigDecimal)) {
setBigDecimalInternal(paramInt1, (BigDecimal)paramObject);
} else if ((paramObject instanceof String)) {
setNUMBERInternal(paramInt1, new NUMBER((String)paramObject, paramInt3));
} else if ((paramObject instanceof Boolean)) {
setIntInternal(paramInt1, ((Boolean)paramObject).booleanValue() 1 : 0);
}
else {
localSQLException = DatabaseError.createSqlException(getConnectionDuringExceptionHandling(), 132);
localSQLException.fillInStackTrace();
throw localSQLException;
}
case 3:
if ((paramObject instanceof BigDecimal)) {
setBigDecimalInternal(paramInt1, (BigDecimal)paramObject);
} else if ((paramObject instanceof Number)) {
setBigDecimalInternal(paramInt1, new BigDecimal(((Number)paramObject).doubleva lue()));
}
else if ((paramObject instanceof NUMBER)) {
setBigDecimalInternal(paramInt1, ((NUMBER)paramObject).bigDecimalValue());
} else if ((paramObject instanceof String)) {
setBigDecimalInternal(paramInt1, new BigDecimal((String)paramObject));
} else if ((paramObject instanceof Boolean)) {
setBigDecimalInternal(paramInt1, new BigDecimal(((Boolean)paramObject).booleanValue() 1.0D : 0.0D));
}
else
{
localSQLException = DatabaseError.createSqlException(getConnectionDuringExceptionHandling(), 132);
localSQLException.fillInStackTrace();
throw localSQLException;
}
case -7:
if ((paramObject instanceof Boolean)) {
setByteInternal(paramInt1, (byte)(((Boolean)paramObject).booleanValue() 1 : 0));
}
else i