org.compass.spring.transaction
Class SpringSyncTransactionFactory

java.lang.Object
  extended by org.compass.core.transaction.AbstractTransactionFactory
      extended by org.compass.spring.transaction.SpringSyncTransactionFactory
All Implemented Interfaces:
TransactionFactory

public class SpringSyncTransactionFactory
extends AbstractTransactionFactory


Field Summary
 
Fields inherited from class org.compass.core.transaction.AbstractTransactionFactory
commitBeforeCompletion, compass, log
 
Constructor Summary
SpringSyncTransactionFactory()
           
 
Method Summary
protected  InternalCompassTransaction doBeginTransaction(InternalCompassSession session, CompassTransaction.TransactionIsolation transactionIsolation)
           
protected  void doBindSessionToTransaction(CompassTransaction tr, CompassSession session)
           
protected  void doConfigure(CompassSettings settings)
           
protected  InternalCompassTransaction doContinueTransaction(InternalCompassSession session)
           
 CompassSession getTransactionBoundSession()
          Retuns a transaction bound session, or null if none is found.
 org.springframework.transaction.PlatformTransactionManager getTransactionManager()
           
protected  boolean isWithinExistingTransaction(InternalCompassSession session)
           
static void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
           
 void unbindSessionFromTransaction(org.springframework.transaction.support.TransactionSynchronization sync)
           
 
Methods inherited from class org.compass.core.transaction.AbstractTransactionFactory
beginTransaction, configure, tryJoinExistingTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringSyncTransactionFactory

public SpringSyncTransactionFactory()
Method Detail

setTransactionManager

public static void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)

doConfigure

protected void doConfigure(CompassSettings settings)
Overrides:
doConfigure in class AbstractTransactionFactory

isWithinExistingTransaction

protected boolean isWithinExistingTransaction(InternalCompassSession session)
                                       throws CompassException
Specified by:
isWithinExistingTransaction in class AbstractTransactionFactory
Throws:
CompassException

doBeginTransaction

protected InternalCompassTransaction doBeginTransaction(InternalCompassSession session,
                                                        CompassTransaction.TransactionIsolation transactionIsolation)
                                                 throws CompassException
Specified by:
doBeginTransaction in class AbstractTransactionFactory
Throws:
CompassException

doContinueTransaction

protected InternalCompassTransaction doContinueTransaction(InternalCompassSession session)
                                                    throws CompassException
Specified by:
doContinueTransaction in class AbstractTransactionFactory
Throws:
CompassException

getTransactionBoundSession

public CompassSession getTransactionBoundSession()
                                          throws CompassException
Description copied from interface: TransactionFactory
Retuns a transaction bound session, or null if none is found.

Throws:
CompassException

doBindSessionToTransaction

protected void doBindSessionToTransaction(CompassTransaction tr,
                                          CompassSession session)
                                   throws CompassException
Specified by:
doBindSessionToTransaction in class AbstractTransactionFactory
Throws:
CompassException

unbindSessionFromTransaction

public void unbindSessionFromTransaction(org.springframework.transaction.support.TransactionSynchronization sync)

getTransactionManager

public org.springframework.transaction.PlatformTransactionManager getTransactionManager()


Copyright (c) 2004-2008 The Compass Project.