code: public static void setArguments(PreparedStatement statement,
  			Object[] selectionArgs) throws SQLException {
  		if (selectionArgs != null) {
  			for (int i = 0; i < selectionArgs.length; i++) {
  				statement.setObject(i + 1, selectionArgs[i]);
  			}
  		}
  	}
docs: Set the prepared statement arguments
  
  @param statement
  prepared statement
  @param selectionArgs
  selection arguments
  @throws SQLException
  upon failure