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
public abstract class AbstractDataRecord extends Object implements DataRecord
Abstract data record base class. This base class contains only a reference to the data identifier of the record and implements the standardObjectequality, hash code, and string representation methods based on the identifier.
-
-
Constructor Summary
Constructors Constructor Description AbstractDataRecord(AbstractDataStore store, DataIdentifier identifier)Creates a data record with the given identifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Checks if the given object is a data record with the same identifier as this one.DataIdentifiergetIdentifier()Returns the data identifier.StringgetReference()Returns a secure reference to this binary, ornullif no such reference is available.inthashCode()Returns the hash code of the data identifier.StringtoString()Returns the string representation of the data identifier.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.core.data.DataRecord
getLastModified, getLength, getStream
-
-
-
-
Constructor Detail
-
AbstractDataRecord
public AbstractDataRecord(AbstractDataStore store, DataIdentifier identifier)
Creates a data record with the given identifier.- Parameters:
identifier- data identifier
-
-
Method Detail
-
getIdentifier
public DataIdentifier getIdentifier()
Returns the data identifier.- Specified by:
getIdentifierin interfaceDataRecord- Returns:
- data identifier
-
getReference
public String 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
public String toString()
Returns the string representation of the data identifier.
-
equals
public boolean equals(Object object)
Checks if the given object is a data record with the same identifier as this one.
-
-