protected static class ThreadLocalSessionContext.CleanupSync extends Object implements Synchronization, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected SessionFactory |
factory |
| Constructor and Description |
|---|
CleanupSync(SessionFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCompletion(int i)
This method is called by the transaction
manager after the transaction is committed or rolled back.
|
void |
beforeCompletion()
The beforeCompletion method is called by the transaction manager prior
to the start of the two-phase transaction commit process.
|
protected final SessionFactory factory
public CleanupSync(SessionFactory factory)
public void beforeCompletion()
SynchronizationbeforeCompletion in interface Synchronizationpublic void afterCompletion(int i)
SynchronizationafterCompletion in interface Synchronizationi - The status of the transaction completion.Copyright © 2019 JBoss by Red Hat. All rights reserved.