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); }
public void unlock(int recordNumber, long cookie) throws RecordNotFoundException, SecurityException { lockingFileDatabase.unlock(recordNumber, cookie); }
public long lock(int recordNumber) throws RecordNotFoundException { return lockingFileDatabase.lock(recordNumber); }
public int create(String[] data) throws DuplicateKeyException { return lockingFileDatabase.create(data); }
public void delete(int recordNumber, long lockCookie) throws RecordNotFoundException, SecurityException { lockingFileDatabase.delete(recordNumber, lockCookie); }
public void update(int recordNumber, String[] data, long lockCookie) throws RecordNotFoundException, SecurityException { lockingFileDatabase.update(recordNumber, data, lockCookie); }
public String[] read(int recordNumber) throws RecordNotFoundException { return lockingFileDatabase.read(recordNumber); }