|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.log.UndoLog
public class UndoLog
Each session keeps a undo log if rollback is required.
| Constructor Summary | |
|---|---|
UndoLog(Session session)
Create a new undo log for the given session. |
|
| Method Summary | |
|---|---|
void |
add(UndoLogRecord entry)
Append an undo log entry to the log. |
void |
clear()
Clear the undo log. |
UndoLogRecord |
getLast()
Get the last record and remove it from the list of operations. |
void |
removeLast(boolean trimToSize)
Remove the last record from the list of operations. |
int |
size()
Get the number of active rows in this undo log. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UndoLog(Session session)
session - the session| Method Detail |
|---|
public int size()
public void clear()
public UndoLogRecord getLast()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void removeLast(boolean trimToSize)
trimToSize - if the undo array should shrink to conserve memory
public void add(UndoLogRecord entry)
throws java.sql.SQLException
entry - the entry
java.sql.SQLException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||