Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.context
Class JTASessionContext.CleanupSynch  view JTASessionContext.CleanupSynch download JTASessionContext.CleanupSynch.java

java.lang.Object
  extended byorg.hibernate.context.JTASessionContext.CleanupSynch
All Implemented Interfaces:
javax.transaction.Synchronization
Enclosing class:
JTASessionContext

protected static class JTASessionContext.CleanupSynch
extends java.lang.Object
implements javax.transaction.Synchronization

JTA transaction synch used for cleanup of the internal session map.


Field Summary
private  JTASessionContext context
           
private  javax.transaction.Transaction txn
           
 
Constructor Summary
JTASessionContext.CleanupSynch(javax.transaction.Transaction txn, JTASessionContext context)
           
 
Method Summary
 void afterCompletion(int i)
           
 void beforeCompletion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

txn

private javax.transaction.Transaction txn

context

private JTASessionContext context
Constructor Detail

JTASessionContext.CleanupSynch

public JTASessionContext.CleanupSynch(javax.transaction.Transaction txn,
                                      JTASessionContext context)
Method Detail

beforeCompletion

public void beforeCompletion()
Specified by:
beforeCompletion in interface javax.transaction.Synchronization

afterCompletion

public void afterCompletion(int i)
Specified by:
afterCompletion in interface javax.transaction.Synchronization