org.nuiton.web.struts2.interceptor
Class TopiaTransactionInterceptor

java.lang.Object
  extended by com.opensymphony.xwork2.interceptor.AbstractInterceptor
      extended by org.nuiton.web.struts2.interceptor.OpenTopiaTransactionInterceptor
          extended by org.nuiton.web.struts2.interceptor.TopiaTransactionInterceptor
All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.Interceptor, Serializable

Deprecated. since 1.5, will be removed soon

@Deprecated
public abstract class TopiaTransactionInterceptor
extends OpenTopiaTransactionInterceptor

Same interceptor as OpenTopiaTransactionInterceptor but close the transaction after action is called. The transaction will be commited (unless asked otherwise) and closed.

Since:
1.2
Author:
tchemit
See Also:
Serialized Form

Nested Class Summary
static interface TopiaTransactionInterceptor.NoCommit
          Deprecated. To specify on your action or method that you never want any commit.
 
Nested classes/interfaces inherited from class org.nuiton.web.struts2.interceptor.OpenTopiaTransactionInterceptor
OpenTopiaTransactionInterceptor.TopiaTransactionProxyInvocationHandler
 
Field Summary
 
Fields inherited from class org.nuiton.web.struts2.interceptor.OpenTopiaTransactionInterceptor
DEFAULT_EXCLUDE_METHODS, excludeMethods, TOPIA_TRANSACTION_REQUEST_ATTRIBUTE
 
Constructor Summary
TopiaTransactionInterceptor()
          Deprecated.  
 
Method Summary
protected  void closeTransaction(org.nuiton.topia.TopiaContext transaction, Object action, com.opensymphony.xwork2.ActionInvocation invocation)
          Deprecated.  
 String intercept(com.opensymphony.xwork2.ActionInvocation invocation)
          Deprecated.  
protected  boolean isCommitNeeded(Object action, com.opensymphony.xwork2.ActionInvocation invocation)
          Deprecated.  
 
Methods inherited from class org.nuiton.web.struts2.interceptor.OpenTopiaTransactionInterceptor
beginTransaction, getExcludeMethods, init, setExcludeMethods
 
Methods inherited from class com.opensymphony.xwork2.interceptor.AbstractInterceptor
destroy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopiaTransactionInterceptor

public TopiaTransactionInterceptor()
Deprecated. 
Method Detail

intercept

public String intercept(com.opensymphony.xwork2.ActionInvocation invocation)
                 throws Exception
Deprecated. 
Specified by:
intercept in interface com.opensymphony.xwork2.interceptor.Interceptor
Overrides:
intercept in class OpenTopiaTransactionInterceptor
Throws:
Exception

closeTransaction

protected void closeTransaction(org.nuiton.topia.TopiaContext transaction,
                                Object action,
                                com.opensymphony.xwork2.ActionInvocation invocation)
                         throws org.nuiton.topia.TopiaException
Deprecated. 
Throws:
org.nuiton.topia.TopiaException

isCommitNeeded

protected boolean isCommitNeeded(Object action,
                                 com.opensymphony.xwork2.ActionInvocation invocation)
Deprecated. 


Copyright © 2010-2011 CodeLutin. All Rights Reserved.