private static class BufferManager.SessionFlusher extends java.lang.Object implements Commitable
Commitable
registered at a
transaction scope (i.e., before any record buffers).Modifier and Type | Field and Description |
---|---|
private Persistence |
persistence
Persistence service object
|
Constructor and Description |
---|
SessionFlusher(Persistence persistence)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
commit(boolean transaction)
Called when
TransactionManager processes a commit event. |
void |
rollback(boolean transaction)
Called when
TransactionManager processes a rollback
event. |
void |
rollbackPending()
No-op
|
void |
validate(boolean transaction)
No-op
|
private final Persistence persistence
SessionFlusher(Persistence persistence)
persistence
- Persistence service object.public void commit(boolean transaction)
TransactionManager
processes a commit event.
This implementation does nothing.
commit
in interface Commitable
transaction
- true
if this is a full transaction and
false
if this is only a sub-transaction (a
nested scope with transaction support).public void rollback(boolean transaction)
TransactionManager
processes a rollback
event.
Attempt to flush the Hibernate session if necessary.
rollback
in interface Commitable
transaction
- true
if this is a full transaction and
false
if this is only a sub-transaction (a
nested scope with transaction support).public void rollbackPending()
rollbackPending
in interface Commitable
public void validate(boolean transaction)
validate
in interface Commitable
transaction
- true
if this is a full transaction and
false
if this is only a sub-transaction (a
nested scope with transaction support).