Spring jdbc(java类型和oracle类型的转换)(八)
f ((paramObject instanceof String)) {
setByteInternal(paramInt1, (byte)(("true".equalsIgnoreCase((String)paramObject)) || ("1".equals(paramObject)) 1 : 0));
}
else if ((paramObject instanceof Number)) {
setIntInternal(paramInt1, ((Number)paramObject).byteva lue() != 0 1 : 0);
}
else {
localSQLException = DatabaseError.createSqlException(getConnectionDuringExceptionHandling(), 132);
localSQLException.fillInStackTrace();
throw localSQLException;
}
case -6:
if ((paramObject instanceof Number)) {
setByteInternal(paramInt1, ((Number)paramObject).byteva lue());
} else if ((paramObject instanceof String)) {
setByteInternal(paramInt1, Byte.parseByte((String)paramObject));
} else if ((paramObject instanceof Boolean)) {
setByteInternal(paramInt1, (byte)(((Boolean)paramObject).booleanValue() 1 : 0));
}
else
{
localSQLException = DatabaseError.createSqlException(getConnectionDuringExceptionHandling(), 132);
localSQLException.fillInStackTrace();
throw localSQLException;
}
case 5:
if ((paramObject instanceof Number)) {
setShortInternal(paramInt1, ((Number)paramObject).shortValue());
} else if ((paramObject instanceof String)) {
setShortInternal(paramInt1, Short.parseShort((String)paramObject));
} else if ((paramObject instanceof Boolean)) {
setShortInternal(paramInt1, (short)(((Boolean)paramObject).booleanValue() 1 : 0));
}
else
{
localSQLException = DatabaseError.createSqlException(getConnectionDuringExceptionHandling(), 132);
localSQLException.fillInStackTrace();
throw localSQLException;
}
case 4:
if ((paramObject instanceof Number)) {
setIntInternal(paramInt1, ((Number)paramObject).intValue());
} else if ((paramObject instanceof String)) {
setIntInternal(paramInt1, Integer.parseInt((String)paramObject));
} else if ((paramObject instanceof Boolean)) {
setIntInternal(paramInt1, ((Boolean)paramObject).booleanValue() 1 : 0);
}
else {
localSQLException = DatabaseError.createSqlException(getConnectionDuringExceptionHandling(), 132);
localSQLException.fillInStackTrace();
throw localSQLException;
}
case -5:
if ((paramObject instanceof Number)) {
setLongInternal(paramInt1, ((Number)paramObject).longValue());
} else if ((paramObject instanceof String)) {
setLongInternal(paramInt1, Long.parseLong((String)paramObject));
} else if ((paramObject instanceof Boolean)) {
setLongInternal(paramInt1, ((Boolean)paramObject).booleanValue() 1L : 0L);
}
else {
localSQLException = DatabaseError.createSqlException(getConnectionDuringExceptionHandling(), 132);
localSQLEx