Ejemplo n.º 1
0
  public int[] find(String[] criteria, SearchType type) {
    List<Integer> result = new ArrayList<Integer>();

    List<DatabaseRow> results = filtering.accepts(criteria, lockingFileDatabase.readAll(), type);

    for (DatabaseRow databaseRow : results) result.add(databaseRow.getId());

    return CollectionToArray.convert(result);
  }