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