|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.journal.AbstractRecord org.apache.jackrabbit.core.journal.AppendRecord
public class AppendRecord
Default temporary record used for appending to some journal.
Field Summary |
---|
Fields inherited from class org.apache.jackrabbit.core.journal.AbstractRecord |
---|
nsResolver, resolver |
Constructor Summary | |
---|---|
AppendRecord(AbstractJournal journal,
String producerId)
Create a new instance of this class. |
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()
Unsupported methods when appending. |
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. |
String |
readString()
Read a string from the underlying stream. |
void |
setRevision(long revision)
Set the revision this record represents. |
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 |
writeString(String s)
Write a string to the underlying stream. |
Methods inherited from class org.apache.jackrabbit.core.journal.AbstractRecord |
---|
readNodeId, readNodeTypeDef, readPath, readPathElement, readPropertyId, readQName, writeNodeId, writeNodeTypeDef, writePath, writePathElement, writePropertyId, writeQName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AppendRecord(AbstractJournal journal, String producerId)
journal
- journal where record is being appendedproducerId
- producer identifierMethod Detail |
---|
public String getJournalId()
public String getProducerId()
public long getRevision()
public void setRevision(long revision)
revision
- revisionpublic void writeByte(int n) throws JournalException
n
- byte
JournalException
- if an error occurspublic void writeChar(char c) throws JournalException
c
- character
JournalException
- if an error occurspublic void writeBoolean(boolean b) throws JournalException
b
- boolean
JournalException
- if an error occurspublic void writeInt(int n) throws JournalException
n
- integer
JournalException
- if an error occurspublic void writeLong(long n) throws JournalException
n
- long
JournalException
- if an error occurspublic void writeString(String s) throws JournalException
s
- string, may be null
JournalException
- if an error occurspublic void write(byte[] b) throws JournalException
b
- byte array
JournalException
- if an error occurspublic void update() throws JournalException
JournalException
- if this record has not been appended,
or if another error occurspublic void cancelUpdate()
public byte readByte() throws JournalException
JournalException
- if an error occurspublic char readChar() throws JournalException
Record
JournalException
- if an error occurspublic boolean readBoolean() throws JournalException
Record
JournalException
- if an error occurspublic int readInt() throws JournalException
Record
JournalException
- if an error occurspublic long readLong() throws JournalException
Record
JournalException
- if an error occurspublic String readString() throws JournalException
Record
null
JournalException
- if an error occurspublic void readFully(byte[] b) throws JournalException
Record
b
- byte array
JournalException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |