Package org.apache.jackrabbit.core.data
Class CachingDataRecord
- java.lang.Object
-
- org.apache.jackrabbit.core.data.AbstractDataRecord
-
- org.apache.jackrabbit.core.data.CachingDataRecord
-
- All Implemented Interfaces:
DataRecord
public class CachingDataRecord extends AbstractDataRecord
CachingDataRecord which stores reference toCachingDataStore. This class doesn't store any references to attributes but attributes are fetched on demand fromCachingDataStore.
-
-
Constructor Summary
Constructors Constructor Description CachingDataRecord(CachingDataStore store, DataIdentifier identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetLastModified()Returns the last modified of the record.longgetLength()Returns the length of the binary stream in this record.InputStreamgetStream()Returns the the binary stream in this record.-
Methods inherited from class org.apache.jackrabbit.core.data.AbstractDataRecord
equals, getIdentifier, getReference, hashCode, toString
-
-
-
-
Constructor Detail
-
CachingDataRecord
public CachingDataRecord(CachingDataStore store, DataIdentifier identifier)
-
-
Method Detail
-
getLastModified
public long getLastModified()
Description copied from interface:DataRecordReturns the last modified of the record.- Returns:
- last modified time of the binary stream
-
getLength
public long getLength() throws DataStoreExceptionDescription copied from interface:DataRecordReturns the length of the binary stream in this record.- Returns:
- length of the binary stream
- Throws:
DataStoreException- if the record could not be accessed
-
getStream
public InputStream getStream() throws DataStoreException
Description copied from interface:DataRecordReturns the the binary stream in this record.- Returns:
- binary stream
- Throws:
DataStoreException- if the record could not be accessed
-
-