public interface RecordStorage
| Modifier and Type | Method and Description |
|---|---|
boolean |
existsRecord(java.lang.String id)
Checks if a Record exists in the storage.
|
Record |
loadRecord(java.lang.String id)
Load the record from storage.
|
java.util.Iterator<Record> |
loadRecords(java.lang.String source)
Loads all records of the given source.
|
void |
removeRecord(java.lang.String id)
Removes the record.
|
void |
storeRecord(Record record)
Stores the given Record object.
|
Record loadRecord(java.lang.String id) throws RecordStorageException
id - Id of the recordRecordStorageException - if any error occursvoid storeRecord(Record record) throws RecordStorageException
record - the Record objectRecordStorageException - if any error occursvoid removeRecord(java.lang.String id)
throws RecordStorageException
id - Id of the recordRecordStorageException - if any error occursboolean existsRecord(java.lang.String id)
throws RecordStorageException
id - Id of the recordRecordStorageException - if any error occursjava.util.Iterator<Record> loadRecords(java.lang.String source) throws RecordStorageException
source - the name of the data sourceRecordStorageException - if any error occurs