org.apache.jackrabbit.core.data
Class CachingDataRecord

java.lang.Object
  extended by org.apache.jackrabbit.core.data.AbstractDataRecord
      extended by 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.


Constructor Summary
CachingDataRecord(CachingDataStore store, DataIdentifier identifier)
           
 
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.
 
Methods inherited from class org.apache.jackrabbit.core.data.AbstractDataRecord
equals, getIdentifier, getReference, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CachingDataRecord

public CachingDataRecord(CachingDataStore store,
                         DataIdentifier identifier)
Method Detail

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.