public interface Record
Modifier and Type | Method and Description |
---|---|
void |
cancelUpdate()
Cancel the changes made to an appended record.
|
String |
getJournalId()
Return this record's journal identifier.
|
String |
getProducerId()
Return this record's producer identifier.
|
long |
getRevision()
Returns the revision this record represents.
|
boolean |
readBoolean()
Read a boolean from the underlying stream.
|
byte |
readByte()
Read a byte from the underlying stream.
|
char |
readChar()
Read a character from the underlying stream.
|
void |
readFully(byte[] b)
Fully read an array of bytes from the underlying stream.
|
int |
readInt()
Read an integer from the underlying stream.
|
long |
readLong()
Read a long from the underlying stream.
|
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 |
readPathElement()
Read a named path element from the underlying stream.
|
PrivilegeDefinition |
readPrivilegeDef()
Read a
PrivilegeDefinition from the underlying stream. |
PropertyId |
readPropertyId()
Read a
PropertyId from the underlying stream. |
Name |
readQName()
Read a
Name frmo the underlying stream. |
String |
readString()
Read a string from the underlying stream.
|
long |
update()
Update the changes made to an appended record.
|
void |
write(byte[] b)
Write an array of bytes to the underlying stream.
|
void |
writeBoolean(boolean b)
Write a boolean from the underlying stream.
|
void |
writeByte(int n)
Write a byte to the underlying stream.
|
void |
writeChar(char c)
Write a character to the underlying stream.
|
void |
writeInt(int n)
Write an integer to the underlying stream.
|
void |
writeLong(long n)
Write a long to 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)
Write a
Path.Element to the underlying stream. |
void |
writePrivilegeDef(PrivilegeDefinition privilegeDefinition)
Write a
PrivilegeDefinition 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. |
void |
writeString(String s)
Write a string to the underlying stream.
|
long getRevision()
String getJournalId()
String getProducerId()
byte readByte() throws JournalException
JournalException
- if an error occurschar readChar() throws JournalException
JournalException
- if an error occursboolean readBoolean() throws JournalException
JournalException
- if an error occursint readInt() throws JournalException
JournalException
- if an error occurslong readLong() throws JournalException
JournalException
- if an error occursString readString() throws JournalException
null
JournalException
- if an error occursvoid readFully(byte[] b) throws JournalException
b
- byte arrayJournalException
- if an error occursName readQName() throws JournalException
Name
frmo the underlying stream.JournalException
- if an error occursPath readPathElement() throws JournalException
JournalException
- if an error occursPath readPath() throws JournalException
Path
from the underlying stream.JournalException
- if an error occursNodeId readNodeId() throws JournalException
NodeId
from the underlying stream.JournalException
- if an error occursPropertyId readPropertyId() throws JournalException
PropertyId
from the underlying stream.JournalException
- if an error occursQNodeTypeDefinition readNodeTypeDef() throws JournalException
NodeTypeDef
from the underlying stream.JournalException
- if an error occursPrivilegeDefinition readPrivilegeDef() throws JournalException
PrivilegeDefinition
from the underlying stream.JournalException
- if an error occursvoid writeByte(int n) throws JournalException
n
- byteJournalException
- if an error occursvoid writeChar(char c) throws JournalException
c
- characterJournalException
- if an error occursvoid writeBoolean(boolean b) throws JournalException
b
- booleanJournalException
- if an error occursvoid writeInt(int n) throws JournalException
n
- integerJournalException
- if an error occursvoid writeLong(long n) throws JournalException
n
- longJournalException
- if an error occursvoid writeString(String s) throws JournalException
s
- string, may be null
JournalException
- if an error occursvoid write(byte[] b) throws JournalException
b
- byte arrayJournalException
- if an error occursvoid writeQName(Name name) throws JournalException
Name
to the underlying stream.name
- nameJournalException
- if an error occursvoid writePathElement(Path element) throws JournalException
Path.Element
to the underlying stream.element
- path elementJournalException
- if an error occursvoid writePath(Path path) throws JournalException
Path
to the underlying stream.path
- pathJournalException
- if an error occursvoid writeNodeId(NodeId nodeId) throws JournalException
NodeId
to the underlying stream.nodeId
- node idJournalException
- if an error occursvoid writePropertyId(PropertyId propertyId) throws JournalException
PropertyId
to the underlying stream.propertyId
- property idJournalException
- if an error occursvoid writeNodeTypeDef(QNodeTypeDefinition ntd) throws JournalException
NodeTypeDef
to the underlying stream.ntd
- node type definitionJournalException
- if an error occursvoid writePrivilegeDef(PrivilegeDefinition privilegeDefinition) throws JournalException
PrivilegeDefinition
to the underlying stream.privilegeDefinition
- privilege definitionJournalException
- if an error occurslong update() throws JournalException
JournalException
- if this record has not been appended,
or if another error occursvoid cancelUpdate()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.