org.compass.spring.transaction
Class SpringSyncTransaction.SpringTransactionSynchronization

java.lang.Object
  extended by org.compass.spring.transaction.SpringSyncTransaction.SpringTransactionSynchronization
All Implemented Interfaces:
org.springframework.transaction.support.TransactionSynchronization
Enclosing class:
SpringSyncTransaction

public static class SpringSyncTransaction.SpringTransactionSynchronization
extends Object
implements org.springframework.transaction.support.TransactionSynchronization


Field Summary
 
Fields inherited from interface org.springframework.transaction.support.TransactionSynchronization
STATUS_COMMITTED, STATUS_ROLLED_BACK, STATUS_UNKNOWN
 
Constructor Summary
SpringSyncTransaction.SpringTransactionSynchronization(InternalCompassSession session, boolean compassControledTransaction, boolean commitBeforeCompletion, TransactionFactory transactionFactory)
           
 
Method Summary
 void afterCommit()
           
 void afterCompletion(int status)
           
 void beforeCommit(boolean readOnly)
           
 void beforeCompletion()
           
 InternalCompassSession getSession()
           
 void resume()
           
 void suspend()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringSyncTransaction.SpringTransactionSynchronization

public SpringSyncTransaction.SpringTransactionSynchronization(InternalCompassSession session,
                                                              boolean compassControledTransaction,
                                                              boolean commitBeforeCompletion,
                                                              TransactionFactory transactionFactory)
Method Detail

getSession

public InternalCompassSession getSession()

suspend

public void suspend()
Specified by:
suspend in interface org.springframework.transaction.support.TransactionSynchronization

resume

public void resume()
Specified by:
resume in interface org.springframework.transaction.support.TransactionSynchronization

beforeCommit

public void beforeCommit(boolean readOnly)
Specified by:
beforeCommit in interface org.springframework.transaction.support.TransactionSynchronization

beforeCompletion

public void beforeCompletion()
Specified by:
beforeCompletion in interface org.springframework.transaction.support.TransactionSynchronization

afterCommit

public void afterCommit()
Specified by:
afterCommit in interface org.springframework.transaction.support.TransactionSynchronization

afterCompletion

public void afterCompletion(int status)
Specified by:
afterCompletion in interface org.springframework.transaction.support.TransactionSynchronization


Copyright (c) 2004-2008 The Compass Project.