org.seasar.extension.tx
クラス RequiresNewInterceptor
java.lang.Object
org.seasar.extension.tx.AbstractTxInterceptor
org.seasar.extension.tx.RequiresNewInterceptor
- すべての実装インタフェース:
- Advice, Interceptor, MethodInterceptor
- public class RequiresNewInterceptor
- extends AbstractTxInterceptor
新しいトランザクションを要求するメソッドのためのインターセプタです。
このインターセプタが適用されたメソッドが呼び出された際に、新しいトランザクションが開始されます。 メソッドが終了 (例外をスローした場合も)
した後、開始したトランザクションは完了 (コミットまたはロールバック) されます。
メソッドが呼び出された際に、既にトランザクションが開始されていた場合、そのトランザクションは中断されます。
中断されたトランザクションは、メソッドが終了した後に再開されます。
- 作成者:
- higa
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequiresNewInterceptor
public RequiresNewInterceptor()
- インスタンスを構築します。
invoke
public Object invoke(MethodInvocation invocation)
throws Throwable
- 例外:
Throwable
Copyright © 2004-2009 The Seasar Foundation. All Rights Reserved.