|
||||||||||
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. |
NodeTypeDef |
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(NodeTypeDef 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)
Method Detail |
---|
public void writeQName(Name name) throws JournalException
Name
to the underlying stream.
writeQName
in interface Record
name
- name
JournalException
- if an error occurspublic void writePathElement(Path.Element element) throws JournalException
Path.Element
to the underlying stream.
writePathElement
in interface Record
element
- path element
JournalException
- if an error occurspublic void writePath(Path path) throws JournalException
Path
to the underlying stream.
writePath
in interface Record
path
- path
JournalException
- if an error occurspublic void writeNodeId(NodeId nodeId) throws JournalException
NodeId
to the underlying stream.
writeNodeId
in interface Record
nodeId
- node id
JournalException
- if an error occurspublic void writePropertyId(PropertyId propertyId) throws JournalException
PropertyId
to the underlying stream.
writePropertyId
in interface Record
propertyId
- property id
JournalException
- if an error occurspublic void writeNodeTypeDef(NodeTypeDef ntd) throws JournalException
NodeTypeDef
to the underlying stream.
writeNodeTypeDef
in interface Record
ntd
- node type definition
JournalException
- if an error occurspublic Name readQName() throws JournalException
Name
frmo the underlying stream.
readQName
in interface Record
JournalException
- if an error occurspublic Path.Element readPathElement() throws JournalException
Path.Element
from the underlying stream.
readPathElement
in interface Record
JournalException
- if an error occurspublic Path readPath() throws JournalException
Path
from the underlying stream.
readPath
in interface Record
JournalException
- if an error occurspublic NodeId readNodeId() throws JournalException
NodeId
from the underlying stream.
readNodeId
in interface Record
JournalException
- if an error occurspublic PropertyId readPropertyId() throws JournalException
PropertyId
from the underlying stream.
readPropertyId
in interface Record
JournalException
- if an error occurspublic NodeTypeDef readNodeTypeDef() throws JournalException
NodeTypeDef
from the underlying stream.
readNodeTypeDef
in interface Record
JournalException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |