|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.tx.recovery.StartRecord
class StartRecord
Field Summary |
---|
Fields inherited from interface simpledb.tx.recovery.LogRecord |
---|
CHECKPOINT, COMMIT, logMgr, ROLLBACK, SETINT, SETSTRING, START |
Constructor Summary | |
---|---|
StartRecord(BasicLogRecord rec)
Creates a log record by reading one other value from the log. |
|
StartRecord(int txnum)
Creates a new start 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 start record contains no undo information. |
int |
writeToLog()
Writes a start record to the log. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StartRecord(int txnum)
txnum
- the ID of the specified transactionpublic StartRecord(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 |