|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.data.AbstractDataStore
public abstract class AbstractDataStore
| Constructor Summary | |
|---|---|
AbstractDataStore()
|
|
| Method Summary | |
|---|---|
protected static String |
encodeHexString(byte[] value)
Returns the hex encoding of the given bytes. |
protected byte[] |
getOrCreateReferenceKey()
Returns the reference key of this data store. |
DataRecord |
getRecord(DataIdentifier identifier)
Returns the identified data record. |
DataRecord |
getRecordFromReference(String reference)
Returns the record that matches the given binary reference. |
protected String |
getReferenceFromIdentifier(DataIdentifier identifier)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jackrabbit.core.data.DataStore |
|---|
addRecord, clearInUse, close, deleteAllOlderThan, getAllIdentifiers, getMinRecordLength, getRecordIfStored, init, updateModifiedDateOnAccess |
| Constructor Detail |
|---|
public AbstractDataStore()
| Method Detail |
|---|
public DataRecord getRecord(DataIdentifier identifier)
throws DataStoreException
DataStore
getRecord in interface DataStoreidentifier - data identifier
DataStoreException - if the data store could not be accessed,
or if the given identifier is invalid
public DataRecord getRecordFromReference(String reference)
throws DataStoreException
DataStorenull if the reference is invalid, for example if it
points to a record that does not exist.
getRecordFromReference in interface DataStorereference - binary reference
null
DataStoreException - if the data store could not be accessedprotected static String encodeHexString(byte[] value)
value - value to be encoded
protected String getReferenceFromIdentifier(DataIdentifier identifier)
protected byte[] getOrCreateReferenceKey()
throws DataStoreException
This method is called only once during the lifetime of a data store instance and the return value is cached in memory, so it's no problem if the implementation is slow.
DataStoreException - if the key is not available
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||