code: protected void setObjects(PreparedStatement ps, Object... objects)
              throws SQLException {
          int index = 1;
          for (Object obj : objects) {
              ps.setObject(index, obj);
              index++;
          }
      }
docs: Helper function to set the values given, to a {@link PreparedStatement},
  in the order in which they are given.
  
  @param ps
  @param objects
  @throws SQLException