Package org.apache.jackrabbit.core.data
Class AbstractDataStore
java.lang.Object
org.apache.jackrabbit.core.data.AbstractDataStore
- All Implemented Interfaces:
DataStore
- Direct Known Subclasses:
AbstractSharedCachingDataStore,CachingDataStore,DbDataStore,FileDataStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRecord(DataIdentifier identifier) Returns the identified data record.getRecordFromReference(String reference) Returns the record that matches the given binary reference.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jackrabbit.core.data.DataStore
addRecord, clearInUse, close, deleteAllOlderThan, getAllIdentifiers, getMinRecordLength, getRecordIfStored, init, updateModifiedDateOnAccess
-
Constructor Details
-
AbstractDataStore
public AbstractDataStore()
-
-
Method Details
-
getRecord
Description copied from interface:DataStoreReturns the identified data record. The given identifier should be the identifier of a previously saved data record. Since records are never removed, there should never be cases where the identified record is not found. Abnormal cases like that are treated as errors and handled by throwing an exception.- Specified by:
getRecordin interfaceDataStore- Parameters:
identifier- data identifier- Returns:
- identified data record
- Throws:
DataStoreException- if the data store could not be accessed, or if the given identifier is invalid
-
getRecordFromReference
Description copied from interface:DataStoreReturns the record that matches the given binary reference. Returnsnullif the reference is invalid, for example if it points to a record that does not exist.- Specified by:
getRecordFromReferencein interfaceDataStore- Parameters:
reference- binary reference- Returns:
- matching record, or
null - Throws:
DataStoreException- if the data store could not be accessed
-