|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.journal.AbstractRecord
public abstract class AbstractRecord
Base implementation for a record.
| Field Summary | |
|---|---|
protected NamespaceResolver |
nsResolver
Namespace resolver. |
protected NamePathResolver |
resolver
Name and Path resolver. |
| Constructor Summary | |
|---|---|
AbstractRecord(NamespaceResolver nsResolver,
NamePathResolver resolver)
Create a new instance of this class. |
|
| Method Summary | |
|---|---|
NodeId |
readNodeId()
Read a NodeId from the underlying stream. |
QNodeTypeDefinition |
readNodeTypeDef()
Read a NodeTypeDef from the underlying stream. |
Path |
readPath()
Read a Path from the underlying stream. |
Path.Element |
readPathElement()
Read a Path.Element from the underlying stream. |
PropertyId |
readPropertyId()
Read a PropertyId from the underlying stream. |
Name |
readQName()
Read a Name frmo the underlying stream. |
void |
writeNodeId(NodeId nodeId)
Write a NodeId to the underlying stream. |
void |
writeNodeTypeDef(QNodeTypeDefinition ntd)
Write a NodeTypeDef to the underlying stream. |
void |
writePath(Path path)
Write a Path to the underlying stream. |
void |
writePathElement(Path.Element element)
Write a Path.Element to the underlying stream. |
void |
writePropertyId(PropertyId propertyId)
Write a PropertyId to the underlying stream. |
void |
writeQName(Name name)
Write a Name to the underlying stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jackrabbit.core.journal.Record |
|---|
cancelUpdate, getJournalId, getProducerId, getRevision, readBoolean, readByte, readChar, readFully, readInt, readLong, readString, update, write, writeBoolean, writeByte, writeChar, writeInt, writeLong, writeString |
| Field Detail |
|---|
protected final NamespaceResolver nsResolver
protected final NamePathResolver resolver
| Constructor Detail |
|---|
public AbstractRecord(NamespaceResolver nsResolver,
NamePathResolver resolver)
nsResolver - the namespace resolverresolver - the name-path resolver| Method Detail |
|---|
public void writeQName(Name name)
throws JournalException
Name to the underlying stream.
writeQName in interface Recordname - name
JournalException - if an error occurs
public void writePathElement(Path.Element element)
throws JournalException
Path.Element to the underlying stream.
writePathElement in interface Recordelement - path element
JournalException - if an error occurs
public void writePath(Path path)
throws JournalException
Path to the underlying stream.
writePath in interface Recordpath - path
JournalException - if an error occurs
public void writeNodeId(NodeId nodeId)
throws JournalException
NodeId to the underlying stream.
writeNodeId in interface RecordnodeId - node id
JournalException - if an error occurs
public void writePropertyId(PropertyId propertyId)
throws JournalException
PropertyId to the underlying stream.
writePropertyId in interface RecordpropertyId - property id
JournalException - if an error occurs
public void writeNodeTypeDef(QNodeTypeDefinition ntd)
throws JournalException
NodeTypeDef to the underlying stream.
writeNodeTypeDef in interface Recordntd - node type definition
JournalException - if an error occurs
public Name readQName()
throws JournalException
Name frmo the underlying stream.
readQName in interface RecordJournalException - if an error occurs
public Path.Element readPathElement()
throws JournalException
Path.Element from the underlying stream.
readPathElement in interface RecordJournalException - if an error occurs
public Path readPath()
throws JournalException
Path from the underlying stream.
readPath in interface RecordJournalException - if an error occurs
public NodeId readNodeId()
throws JournalException
NodeId from the underlying stream.
readNodeId in interface RecordJournalException - if an error occurs
public PropertyId readPropertyId()
throws JournalException
PropertyId from the underlying stream.
readPropertyId in interface RecordJournalException - if an error occurs
public QNodeTypeDefinition readNodeTypeDef()
throws JournalException
NodeTypeDef from the underlying stream.
readNodeTypeDef in interface RecordJournalException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||