|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.tx.recovery.RollbackRecord
class RollbackRecord
The ROLLBACK log record.
Field Summary |
---|
Fields inherited from interface simpledb.tx.recovery.LogRecord |
---|
CHECKPOINT, COMMIT, logMgr, ROLLBACK, SETINT, SETSTRING, START |
Constructor Summary | |
---|---|
RollbackRecord(BasicLogRecord rec)
Creates a log record by reading one other value from the log. |
|
RollbackRecord(int txnum)
Creates a new rollback log record for the specified transaction. |
Method Summary | |
---|---|
int |
op()
Returns the log record's type. |
java.lang.String |
toString()
|
int |
txNumber()
Returns the transaction id stored with the log record. |
void |
undo(int txnum)
Does nothing, because a rollback record contains no undo information. |
int |
writeToLog()
Writes a rollback record to the log. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RollbackRecord(int txnum)
txnum
- the ID of the specified transactionpublic RollbackRecord(BasicLogRecord rec)
rec
- the basic log recordMethod Detail |
---|
public int writeToLog()
writeToLog
in interface LogRecord
public int op()
LogRecord
op
in interface LogRecord
public int txNumber()
LogRecord
txNumber
in interface LogRecord
public void undo(int txnum)
undo
in interface LogRecord
txnum
- the id of the transaction that is performing the undo.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |