org.apache.jackrabbit.core.journal
Class AbstractRecord

java.lang.Object
  extended by org.apache.jackrabbit.core.journal.AbstractRecord
All Implemented Interfaces:
Record
Direct Known Subclasses:
AppendRecord

public abstract class AbstractRecord
extends Object
implements Record

Base implementation for a record.


Field Summary
protected  NamespaceResolver resolver
          Namespace resolver.
 
Constructor Summary
AbstractRecord(NamespaceResolver resolver)
          Create a new instance of this class.
 
Method Summary
 NodeId readNodeId()
          Read a NodeId from the underlying stream.
 NodeTypeDef readNodeTypeDef()
          Read a NodeTypeDef from the underlying stream.
 Path readPath()
          Read a Path from the underlying stream.
 Path.PathElement readPathElement()
          Read a Path.PathElement from the underlying stream.
 PropertyId readPropertyId()
          Read a PropertyId from the underlying stream.
 QName readQName()
          Read a QName frmo the underlying stream.
 void writeNodeId(NodeId nodeId)
          Write a NodeId to the underlying stream.
 void writeNodeTypeDef(NodeTypeDef ntd)
          Write a NodeTypeDef to the underlying stream.
 void writePath(Path path)
          Write a Path to the underlying stream.
 void writePathElement(Path.PathElement element)
          Write a Path.PathElement to the underlying stream.
 void writePropertyId(PropertyId propertyId)
          Write a PropertyId to the underlying stream.
 void writeQName(QName name)
          Write a QName 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, readString, update, write, writeBoolean, writeByte, writeChar, writeInt, writeString
 

Field Detail

resolver

protected final NamespaceResolver resolver
Namespace resolver.

Constructor Detail

AbstractRecord

public AbstractRecord(NamespaceResolver resolver)
Create a new instance of this class.

Method Detail

writeQName

public void writeQName(QName name)
                throws JournalException
Write a QName to the underlying stream.

Specified by:
writeQName in interface Record
Parameters:
name - name
Throws:
JournalException - if an error occurs

writePathElement

public void writePathElement(Path.PathElement element)
                      throws JournalException
Write a Path.PathElement to the underlying stream.

Specified by:
writePathElement in interface Record
Parameters:
element - path element
Throws:
JournalException - if an error occurs

writePath

public void writePath(Path path)
               throws JournalException
Write a Path to the underlying stream.

Specified by:
writePath in interface Record
Parameters:
path - path
Throws:
JournalException - if an error occurs

writeNodeId

public void writeNodeId(NodeId nodeId)
                 throws JournalException
Write a NodeId to the underlying stream.

Specified by:
writeNodeId in interface Record
Parameters:
nodeId - node id
Throws:
JournalException - if an error occurs

writePropertyId

public void writePropertyId(PropertyId propertyId)
                     throws JournalException
Write a PropertyId to the underlying stream.

Specified by:
writePropertyId in interface Record
Parameters:
propertyId - property id
Throws:
JournalException - if an error occurs

writeNodeTypeDef

public void writeNodeTypeDef(NodeTypeDef ntd)
                      throws JournalException
Write a NodeTypeDef to the underlying stream.

Specified by:
writeNodeTypeDef in interface Record
Parameters:
ntd - node type definition
Throws:
JournalException - if an error occurs

readQName

public QName readQName()
                throws JournalException
Read a QName frmo the underlying stream.

Specified by:
readQName in interface Record
Returns:
name name
Throws:
JournalException - if an error occurs

readPathElement

public Path.PathElement readPathElement()
                                 throws JournalException
Read a Path.PathElement from the underlying stream.

Specified by:
readPathElement in interface Record
Returns:
path element
Throws:
JournalException - if an error occurs

readPath

public Path readPath()
              throws JournalException
Read a Path from the underlying stream.

Specified by:
readPath in interface Record
Returns:
path
Throws:
JournalException - if an error occurs

readNodeId

public NodeId readNodeId()
                  throws JournalException
Read a NodeId from the underlying stream.

Specified by:
readNodeId in interface Record
Returns:
node id
Throws:
JournalException - if an error occurs

readPropertyId

public PropertyId readPropertyId()
                          throws JournalException
Read a PropertyId from the underlying stream.

Specified by:
readPropertyId in interface Record
Returns:
property id
Throws:
JournalException - if an error occurs

readNodeTypeDef

public NodeTypeDef readNodeTypeDef()
                            throws JournalException
Read a NodeTypeDef from the underlying stream.

Specified by:
readNodeTypeDef in interface Record
Returns:
node type definition
Throws:
JournalException - if an error occurs


Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.