code: protected void setParameterValues(final PreparedStatement ps, final int index, final Object param) throws SQLException {
          if (param instanceof byte[]) {
              ps.setBytes(index, (byte[]) param);
          } else {
              ps.setObject(index, param);
          }
      }
  }
docs: Sets the value of a parameter in {@code index} to the value provided in {@code param}.
  
  @param ps    The {@link PreparedStatement} to insert the association between index and the param.
  @param index The index to set the value to.
  @param param The value to be set at the provided index.
  @throws SQLException If something goes wrong accessing the database.