private static class SavepointManager.Block
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<BaseRecord> |
changed
Records which have been changed in the scope of this block
|
private java.sql.Savepoint |
savepoint
Database savepoint for a sub-transaction block (
null for full transaction |
private int |
txLevel
Transaction nesting level of this block (0 = full transaction, 1 = first sub-transaction, etc.)
|
| Constructor and Description |
|---|
Block(int txLevel)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
commit()
Notify all changed, undoable records that the current transaction has been committed.
|
(package private) void |
invalidateFastFind(Database database,
java.lang.String tenantId)
Notify the FastFind cache that the changed tables need to be invalidated.
|
(package private) void |
rollback()
Roll back changes to undoable records.
|
(package private) void |
rollUp(SavepointManager.Block from)
Add all changed, undoable records stored in the
from Block into the current block. |
(package private) void |
setSavepoint(java.sql.Savepoint savepoint)
Set this block's savepoint.
|
java.lang.String |
toString()
Get a debug text representation of this object.
|
private final int txLevel
private java.util.Set<BaseRecord> changed
private java.sql.Savepoint savepoint
null for full transactionvoid setSavepoint(java.sql.Savepoint savepoint)
savepoint - Database savepoint to be stored for this block. Must be null if the
current block represents a full transaction.void rollUp(SavepointManager.Block from)
from Block into the current block.from - Block from which to copy information into this block.void commit()
void rollback()
throws PersistenceException
PersistenceExceptionvoid invalidateFastFind(Database database, java.lang.String tenantId)
database - The instance of the database to work with.tenantId - The tenant to be used when creating the cache.public java.lang.String toString()
toString in class java.lang.Object