com.atlassian.confluence.setup.webwork
Class ConfluenceXWorkTransactionInterceptor
java.lang.Object
  
com.atlassian.xwork.interceptors.XWorkTransactionInterceptor
      
com.atlassian.confluence.setup.webwork.ConfluenceXWorkTransactionInterceptor
- All Implemented Interfaces: 
 - com.opensymphony.xwork.interceptor.Interceptor
 
public class ConfluenceXWorkTransactionInterceptor
- extends com.atlassian.xwork.interceptors.XWorkTransactionInterceptor
 
An interceptor that wraps the action execution in a single Hibernate transaction.
 
| 
Method Summary | 
 org.springframework.transaction.PlatformTransactionManager | 
getTransactionManager()
 
            | 
 void | 
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
 
          Set the transaction manager. | 
protected  boolean | 
shouldIntercept(com.opensymphony.xwork.ActionInvocation invocation)
 
          We do not want to wrap an invocation in a transaction until we have a database to commit to :) | 
 
| Methods inherited from class com.atlassian.xwork.interceptors.XWorkTransactionInterceptor | 
currentTransactionStatus, destroy, init, intercept | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ConfluenceXWorkTransactionInterceptor
public ConfluenceXWorkTransactionInterceptor()
getTransactionManager
public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
- Specified by:
 getTransactionManager in class com.atlassian.xwork.interceptors.XWorkTransactionInterceptor
 
 
shouldIntercept
protected boolean shouldIntercept(com.opensymphony.xwork.ActionInvocation invocation)
- We do not want to wrap an invocation in a transaction until we have a database to commit to :)
- Specified by:
 shouldIntercept in class com.atlassian.xwork.interceptors.XWorkTransactionInterceptor
 
 
 
setTransactionManager
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
- Set the transaction manager. This will perform actual
 transaction management: This class is just a way of invoking it.
 
 
Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.