Package org.hibernate.context.internal
Class ThreadLocalSessionContext.CleanupSync
java.lang.Object
org.hibernate.context.internal.ThreadLocalSessionContext.CleanupSync
- All Implemented Interfaces:
Synchronization,Serializable
- Enclosing class:
- ThreadLocalSessionContext
protected static class ThreadLocalSessionContext.CleanupSync
extends Object
implements Synchronization, Serializable
Transaction sync used for cleanup of the internal session map.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterCompletion(int i) This method is called by the transaction manager after the transaction is committed or rolled back.voidThe beforeCompletion method is called by the transaction manager prior to the start of the two-phase transaction commit process.
-
Field Details
-
factory
-
-
Constructor Details
-
CleanupSync
-
-
Method Details
-
beforeCompletion
public void beforeCompletion()Description copied from interface:SynchronizationThe beforeCompletion method is called by the transaction manager prior to the start of the two-phase transaction commit process. This call is executed with the transaction context of the transaction that is being committed.- Specified by:
beforeCompletionin interfaceSynchronization
-
afterCompletion
public void afterCompletion(int i) Description copied from interface:SynchronizationThis method is called by the transaction manager after the transaction is committed or rolled back.- Specified by:
afterCompletionin interfaceSynchronization- Parameters:
i- The status of the transaction completion.
-