code: public void setObject(final int parameterIndex, 
                            final Object x, 
                            final int targetSqlType) 
          throws SQLException {
  
          if (!Defaults.jdbcTypeMappings.containsKey(targetSqlType)) {
              throw new SQLFeatureNotSupportedException();
          } // end of if
  
          // ---
  
          if (x == null) {
              setNull(parameterIndex, targetSqlType);
              return;
          } // end of if
  
          // ---
          
          switch (targetSqlType) {
          case Types.DOUBLE:
              setDouble(parameterIndex, (Double)x);
              break;
  
          case Types.REAL:
              setReal(parameterIndex, (Float)x);
              break;
  
          case Types.FLOAT:
              setFloat(parameterIndex, (Float)x);
              break;
  
          case Types.NUMERIC: 
              setBigDecimal(parameterIndex, (BigDecimal)x); 
              break;
  
          case Types.DECIMAL: 
              setDecimal(parameterIndex, (BigDecimal)x); 
              break;
  
          default:
              setParam(parameterIndex, Default(targetSqlType), x);
              break;
          }
      }
docs: {@inheritDoc}