|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Record
Record interface.
Method Summary | |
---|---|
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.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. |
String |
readString()
Read a string from the underlying stream. |
void |
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 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. |
void |
writeString(String s)
Write a string to the underlying stream. |
Method Detail |
---|
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 array
JournalException
- if an error occursName readQName() throws JournalException
Name
frmo the underlying stream.
JournalException
- if an error occursPath.Element readPathElement() throws JournalException
Path.Element
from the underlying stream.
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 occursvoid writeByte(int n) throws JournalException
n
- byte
JournalException
- if an error occursvoid writeChar(char c) throws JournalException
c
- character
JournalException
- if an error occursvoid writeBoolean(boolean b) throws JournalException
b
- boolean
JournalException
- if an error occursvoid writeInt(int n) throws JournalException
n
- integer
JournalException
- if an error occursvoid writeLong(long n) throws JournalException
n
- long
JournalException
- 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 array
JournalException
- if an error occursvoid writeQName(Name name) throws JournalException
Name
to the underlying stream.
name
- name
JournalException
- if an error occursvoid writePathElement(Path.Element element) throws JournalException
Path.Element
to the underlying stream.
element
- path element
JournalException
- if an error occursvoid writePath(Path path) throws JournalException
Path
to the underlying stream.
path
- path
JournalException
- if an error occursvoid writeNodeId(NodeId nodeId) throws JournalException
NodeId
to the underlying stream.
nodeId
- node id
JournalException
- if an error occursvoid writePropertyId(PropertyId propertyId) throws JournalException
PropertyId
to the underlying stream.
propertyId
- property id
JournalException
- if an error occursvoid writeNodeTypeDef(QNodeTypeDefinition ntd) throws JournalException
NodeTypeDef
to the underlying stream.
ntd
- node type definition
JournalException
- if an error occursvoid update() throws JournalException
JournalException
- if this record has not been appended,
or if another error occursvoid cancelUpdate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |