Class DbDataRecord
java.lang.Object
org.apache.jackrabbit.core.data.AbstractDataRecord
org.apache.jackrabbit.core.data.db.DbDataRecord
- All Implemented Interfaces:
DataRecord
Data record that is stored in a database
-
Constructor Summary
ConstructorsConstructorDescriptionDbDataRecord(DbDataStore store, DataIdentifier identifier, long length, long lastModified) Creates a data record based on the given identifier and length. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the last modified of the record.longReturns the length of the binary stream in this record.Returns the the binary stream in this record.Methods inherited from class org.apache.jackrabbit.core.data.AbstractDataRecord
equals, getIdentifier, getReference, hashCode, toString
-
Constructor Details
-
DbDataRecord
Creates a data record based on the given identifier and length.- Parameters:
identifier- data identifierlength- the lengthlastModified-
-
-
Method Details
-
getLength
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
Returns the the binary stream in this record.- Returns:
- binary stream
- Throws:
DataStoreException- if the record could not be accessed
-
getLastModified
public long getLastModified()Returns the last modified of the record.- Returns:
- last modified time of the binary stream
-