org.seasar.extension.jdbc.gen.internal.sql
クラス SqlUnitExecutorImpl

java.lang.Object
  上位を拡張 org.seasar.extension.jdbc.gen.internal.sql.SqlUnitExecutorImpl
すべての実装されたインタフェース:
SqlUnitExecutor

public class SqlUnitExecutorImpl
extends java.lang.Object
implements SqlUnitExecutor

SqlUnitExecutorの実装クラスです。

作成者:
taedium

入れ子のクラスの概要
 
インタフェース org.seasar.extension.jdbc.gen.sql.SqlUnitExecutor から継承された入れ子のクラス/インタフェース
SqlUnitExecutor.Callback
 
フィールドの概要
protected  javax.sql.DataSource dataSource
          データソース
protected  boolean haltOnError
          エラー発生時に処理を即座に中断する場合true、中断しない場合false
protected static Logger logger
          ロガー
protected  UserTransaction userTransaction
          ユーザトランザクション
 
コンストラクタの概要
SqlUnitExecutorImpl(javax.sql.DataSource dataSource, UserTransaction userTransaction, boolean haltOnError)
          インスタンスを構築します。
 
メソッドの概要
protected  boolean begin()
          トランザクションを開始します。
protected  SqlExecutionContext createSqlExecutionContext()
          SqlExecutionContextの実装クラスを作成します。
protected  void end(boolean commit)
          トランザクションを終了します。
 void execute(SqlUnitExecutor.Callback callback)
          実行します。
protected  void executeInternal(SqlUnitExecutor.Callback callback)
          内部的に実行します。
protected  int getTransactionStatus()
          トランザクションのステータスを返します。
protected  boolean hasTransaction()
          現在のスレッド上でトランザクションがアクティブな場合はtrueを、それ以外の場合はfalse を返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

logger

protected static Logger logger
ロガー


dataSource

protected javax.sql.DataSource dataSource
データソース


userTransaction

protected UserTransaction userTransaction
ユーザトランザクション


haltOnError

protected boolean haltOnError
エラー発生時に処理を即座に中断する場合true、中断しない場合false

コンストラクタの詳細

SqlUnitExecutorImpl

public SqlUnitExecutorImpl(javax.sql.DataSource dataSource,
                           UserTransaction userTransaction,
                           boolean haltOnError)
インスタンスを構築します。

パラメータ:
dataSource - データソース
userTransaction - ユーザートランザクション、トランザクションを使用しない場合null
haltOnError - エラー発生時に処理を即座に中断する場合true、中断しない場合false
メソッドの詳細

execute

public void execute(SqlUnitExecutor.Callback callback)
インタフェース SqlUnitExecutor の記述:
実行します。

定義:
インタフェース SqlUnitExecutor 内の execute
パラメータ:
callback - コールバック

executeInternal

protected void executeInternal(SqlUnitExecutor.Callback callback)
内部的に実行します。

パラメータ:
callback - コールバック

begin

protected boolean begin()
トランザクションを開始します。

戻り値:
トランザクションが開始された場合true

hasTransaction

protected boolean hasTransaction()
現在のスレッド上でトランザクションがアクティブな場合はtrueを、それ以外の場合はfalse を返します。

戻り値:
現在のスレッド上でトランザクションがアクティブな場合はtrue

end

protected void end(boolean commit)
トランザクションを終了します。

パラメータ:
commit - コミットする場合true

getTransactionStatus

protected int getTransactionStatus()
トランザクションのステータスを返します。

戻り値:
トランザクションのステータス

createSqlExecutionContext

protected SqlExecutionContext createSqlExecutionContext()
SqlExecutionContextの実装クラスを作成します。

戻り値:
SqlExecutionContextの実装クラス


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