|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.tx.recovery.SetIntRecord
class SetIntRecord
Field Summary |
---|
Fields inherited from interface simpledb.tx.recovery.LogRecord |
---|
CHECKPOINT, COMMIT, logMgr, ROLLBACK, SETINT, SETSTRING, START |
Constructor Summary | |
---|---|
SetIntRecord(BasicLogRecord rec)
Creates a log record by reading five other values from the log. |
|
SetIntRecord(int txnum,
Block blk,
int offset,
int val)
Creates a new setint log record. |
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)
Replaces the specified data value with the value saved in the log record. |
int |
writeToLog()
Writes a setInt record to the log. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SetIntRecord(int txnum, Block blk, int offset, int val)
txnum
- the ID of the specified transactionblk
- the block containing the valueoffset
- the offset of the value in the blockval
- the new valuepublic SetIntRecord(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 java.lang.String toString()
toString
in class java.lang.Object
public void undo(int txnum)
undo
in interface LogRecord
txnum
- the id of the transaction that is performing the undo.LogRecord.undo(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |