Spring jdbc(java类型和oracle类型的转换)(九)
ception.fillInStackTrace();
throw localSQLException;
}
case 7:
if ((paramObject instanceof Number)) {
setFloatInternal(paramInt1, ((Number)paramObject).floatValue());
} else if ((paramObject instanceof String)) {
setFloatInternal(paramInt1, Float.valueOf((String)paramObject).floatValue());
} else if ((paramObject instanceof Boolean)) {
setFloatInternal(paramInt1, ((Boolean)paramObject).booleanValue() 1.0F : 0.0F);
}
else {
localSQLException = DatabaseError.createSqlException(getConnectionDuringExceptionHandling(), 132);
localSQLException.fillInStackTrace();
throw localSQLException;
}
case 6:
case 8:
if ((paramObject instanceof Number)) {
setDoubleInternal(paramInt1, ((Number)paramObject).doubleva lue());
} else if ((paramObject instanceof String)) {
setDoubleInternal(paramInt1, Double.valueOf((String)paramObject).doubleva lue());
}
else if ((paramObject instanceof Boolean)) {
setDoubleInternal(paramInt1, ((Boolean)paramObject).booleanValue() 1.0D : 0.0D);
}
else
{
localSQLException = DatabaseError.createSqlException(getConnectionDuringExceptionHandling(), 132);
localSQLException.fillInStackTrace();
throw localSQLException;
}
case -2:
if ((paramObject instanceof RAW))
setRAWInternal(paramInt1, (RAW)paramObject);
else {
setBytesInternal(paramInt1, (byte[])(byte[])paramObject);
}
break;
case -3:
setBytesInternal(paramInt1, (byte[])(byte[])paramObject);
break;
case -4:
setBytesInternal(paramInt1, (byte[])(byte[])paramObject);
break;
case 91:
if ((paramObject instanceof DATE)) {
setDATEInternal(paramInt1, (DATE)paramObject);
} else if ((paramObject instanceof Date)) {
setDateInternal(paramInt1, (Date)paramObject);
} else if ((paramObject instanceof Timestamp)) {
setDATEInternal(paramInt1, new DATE((Timestamp)paramObject));
} else if ((paramObject instanceof String)) {
setDateInternal(paramInt1, Date.valueOf((String)paramObject));
}
else {
localSQLException = DatabaseError.createSqlException(getConnectionDuringExceptionHandling(), 132);
localSQLException.fillInStackTrace();
throw localSQLException;
}
case 92:
if ((paramObject instanceof Time)) {
setTimeInternal(paramInt1, (Time)paramObject);
} else if ((paramObject instanceof Timestamp)) {
setTimeInternal(paramInt1, new Time(((Timestamp)paramObject).getTime()));
}
else if ((paramObject instanceof Date)) {
setTimeInternal(paramInt1, new Time(((Date)paramObject).getTime()));
} else if ((paramObject instanceof String)) {
setTimeInte