Package org.apache.jackrabbit.core.data
Class AbstractDataRecord
java.lang.Object
org.apache.jackrabbit.core.data.AbstractDataRecord
- All Implemented Interfaces:
DataRecord
- Direct Known Subclasses:
CachingDataRecord,DbDataRecord,FileDataRecord
Abstract data record base class. This base class contains only
a reference to the data identifier of the record and implements
the standard
Object equality, hash code, and string
representation methods based on the identifier.-
Constructor Summary
ConstructorsConstructorDescriptionAbstractDataRecord(AbstractDataStore store, DataIdentifier identifier) Creates a data record with the given identifier. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the given object is a data record with the same identifier as this one.Returns the data identifier.Returns a secure reference to this binary, ornullif no such reference is available.inthashCode()Returns the hash code of the data identifier.toString()Returns the string representation of the data identifier.Methods inherited from interface org.apache.jackrabbit.core.data.DataRecord
getLastModified, getLength, getStream
-
Constructor Details
-
AbstractDataRecord
Creates a data record with the given identifier.- Parameters:
identifier- data identifier
-
-
Method Details
-
getIdentifier
Returns the data identifier.- Specified by:
getIdentifierin interfaceDataRecord- Returns:
- data identifier
-
getReference
Description copied from interface:DataRecordReturns a secure reference to this binary, ornullif no such reference is available.- Specified by:
getReferencein interfaceDataRecord- Returns:
- binary reference, or
null
-
toString
Returns the string representation of the data identifier. -
equals
Checks if the given object is a data record with the same identifier as this one. -
hashCode
public int hashCode()Returns the hash code of the data identifier.
-