org.seasar.extension.tx
クラス AbstractTxInterceptor

java.lang.Object
  拡張org.seasar.extension.tx.AbstractTxInterceptor
すべての実装インタフェース:
Advice, Interceptor, MethodInterceptor
直系の既知のサブクラス:
MandatoryInterceptor, NeverInterceptor, NotSupportedInterceptor, RequiredInterceptor, RequiresNewInterceptor

public abstract class AbstractTxInterceptor
extends Object
implements MethodInterceptor

作成者:
higa

コンストラクタの概要
AbstractTxInterceptor(TransactionManager transactionManager)
           
 
メソッドの概要
 void addCommitRule(Class exceptionClass)
           
 void addRollbackRule(Class exceptionClass)
           
 void begin()
           
 boolean complete(Throwable t)
           
 void end()
           
 Transaction getTransaction()
           
 TransactionManager getTransactionManager()
           
 boolean hasTransaction()
           
 void resume(Transaction transaction)
           
 void rollback()
           
 Transaction suspend()
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース org.aopalliance.intercept.MethodInterceptor から継承したメソッド
invoke
 

コンストラクタの詳細

AbstractTxInterceptor

public AbstractTxInterceptor(TransactionManager transactionManager)
メソッドの詳細

getTransactionManager

public final TransactionManager getTransactionManager()

hasTransaction

public final boolean hasTransaction()
                             throws SystemException
例外:
SystemException

getTransaction

public final Transaction getTransaction()
                                 throws SystemException
例外:
SystemException

begin

public final void begin()
                 throws NotSupportedException,
                        SystemException
例外:
NotSupportedException
SystemException

end

public final void end()
               throws SecurityException,
                      IllegalStateException,
                      RollbackException,
                      HeuristicMixedException,
                      HeuristicRollbackException,
                      SystemException
例外:
SecurityException
IllegalStateException
RollbackException
HeuristicMixedException
HeuristicRollbackException
SystemException

rollback

public final void rollback()
                    throws IllegalStateException,
                           SecurityException,
                           SystemException
例外:
IllegalStateException
SecurityException
SystemException

suspend

public final Transaction suspend()
                          throws SystemException
例外:
SystemException

resume

public final void resume(Transaction transaction)
                  throws InvalidTransactionException,
                         IllegalStateException,
                         SystemException
例外:
InvalidTransactionException
IllegalStateException
SystemException

complete

public final boolean complete(Throwable t)
                       throws SecurityException,
                              IllegalStateException,
                              RollbackException,
                              HeuristicMixedException,
                              HeuristicRollbackException,
                              SystemException
例外:
SecurityException
IllegalStateException
RollbackException
HeuristicMixedException
HeuristicRollbackException
SystemException

addCommitRule

public final void addCommitRule(Class exceptionClass)

addRollbackRule

public final void addRollbackRule(Class exceptionClass)


Copyright © 2004-2007 The Seasar Foundation. All Rights Reserved.