org.seasar.doma.jdbc
クラス NullRequiresNewController

java.lang.Object
  上位を拡張 org.seasar.doma.jdbc.NullRequiresNewController
すべての実装されたインタフェース:
RequiresNewController

public class NullRequiresNewController
extends Object
implements RequiresNewController

REQUIRES_NEW のトランザクション属性について何ら制御を行わない RequiresNewControllerの実装です。

通常は、このクラスを使用せず、環境にあわせた実装を作成し使用してください。

作成者:
taedium

入れ子のクラスの概要
 
インタフェース org.seasar.doma.jdbc.RequiresNewController から継承された入れ子のクラス/インタフェース
RequiresNewController.Callback<R>
 
コンストラクタの概要
NullRequiresNewController()
           
 
メソッドの概要
<R> R
requiresNew(RequiresNewController.Callback<R> callback)
          REQUIRES_NEW の属性をもつトランザクションを実行します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

NullRequiresNewController

public NullRequiresNewController()
メソッドの詳細

requiresNew

public <R> R requiresNew(RequiresNewController.Callback<R> callback)
              throws Throwable
インタフェース RequiresNewController の記述:
REQUIRES_NEW の属性をもつトランザクションを実行します。

定義:
インタフェース RequiresNewController 内の requiresNew
型パラメータ:
R - 戻り値の型
パラメータ:
callback - REQUIRES_NEW のトランザクション属性下で扱いたい処理
戻り値:
任意の値
例外:
DomaNullPointerException - {@code callback} が null の場合
Throwable - {@code callback} の処理中に何らかの例外が発生した場合


Copyright © 2009-2014 The Seasar Foundation. All Rights Reserved.