code: final void setPSLong(PreparedStatement ps, int index, long value) throws SQLException {
          if (usingDB2Connect || usingSQLServer || usingDB2zOS) { // LIDB2775.25 zOS
              ps.setBigDecimal(index, BigDecimal.valueOf(value));
          } else {
              ps.setLong(index, value);
          }
      }
docs: /*
  Sets long value on a preparedstatement