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 to CachingDataStore. This
class doesn't store any references to attributes but attributes are fetched
on demand from CachingDataStore.
|
Method Summary |
long |
getLastModified()
Returns the last modified of the record. |
long |
getLength()
Returns the length of the binary stream in this record. |
InputStream |
getStream()
Returns the the binary stream in this record. |
CachingDataRecord
public CachingDataRecord(CachingDataStore store,
DataIdentifier identifier)
getLastModified
public long getLastModified()
- Description copied from interface:
DataRecord
- Returns the last modified of the record.
- Returns:
- last modified time of the binary stream
getLength
public long getLength()
throws DataStoreException
- Description copied from interface:
DataRecord
- Returns 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:
DataRecord
- Returns the the binary stream in this record.
- Returns:
- binary stream
- Throws:
DataStoreException - if the record could not be accessed
Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.