|
||||||||||
| 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 occurs
char readChar()
throws JournalException
JournalException - if an error occurs
boolean readBoolean()
throws JournalException
JournalException - if an error occurs
int readInt()
throws JournalException
JournalException - if an error occurs
long readLong()
throws JournalException
JournalException - if an error occurs
String readString()
throws JournalException
null
JournalException - if an error occurs
void readFully(byte[] b)
throws JournalException
b - byte array
JournalException - if an error occurs
Name readQName()
throws JournalException
Name frmo the underlying stream.
JournalException - if an error occurs
Path.Element readPathElement()
throws JournalException
Path.Element from the underlying stream.
JournalException - if an error occurs
Path readPath()
throws JournalException
Path from the underlying stream.
JournalException - if an error occurs
NodeId readNodeId()
throws JournalException
NodeId from the underlying stream.
JournalException - if an error occurs
PropertyId readPropertyId()
throws JournalException
PropertyId from the underlying stream.
JournalException - if an error occurs
QNodeTypeDefinition readNodeTypeDef()
throws JournalException
NodeTypeDef from the underlying stream.
JournalException - if an error occurs
void writeByte(int n)
throws JournalException
n - byte
JournalException - if an error occurs
void writeChar(char c)
throws JournalException
c - character
JournalException - if an error occurs
void writeBoolean(boolean b)
throws JournalException
b - boolean
JournalException - if an error occurs
void writeInt(int n)
throws JournalException
n - integer
JournalException - if an error occurs
void writeLong(long n)
throws JournalException
n - long
JournalException - if an error occurs
void writeString(String s)
throws JournalException
s - string, may be null
JournalException - if an error occurs
void write(byte[] b)
throws JournalException
b - byte array
JournalException - if an error occurs
void writeQName(Name name)
throws JournalException
Name to the underlying stream.
name - name
JournalException - if an error occurs
void writePathElement(Path.Element element)
throws JournalException
Path.Element to the underlying stream.
element - path element
JournalException - if an error occurs
void writePath(Path path)
throws JournalException
Path to the underlying stream.
path - path
JournalException - if an error occurs
void writeNodeId(NodeId nodeId)
throws JournalException
NodeId to the underlying stream.
nodeId - node id
JournalException - if an error occurs
void writePropertyId(PropertyId propertyId)
throws JournalException
PropertyId to the underlying stream.
propertyId - property id
JournalException - if an error occurs
void writeNodeTypeDef(QNodeTypeDefinition ntd)
throws JournalException
NodeTypeDef to the underlying stream.
ntd - node type definition
JournalException - if an error occurs
void 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 | |||||||||