|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.extension.jdbc.gen.internal.sql.SqlUnitExecutorImpl
public class SqlUnitExecutorImpl
SqlUnitExecutorの実装クラスです。
| 入れ子のクラスの概要 |
|---|
| インタフェース 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 |
| フィールドの詳細 |
|---|
protected static Logger logger
protected javax.sql.DataSource dataSource
protected UserTransaction userTransaction
protected boolean haltOnError
true、中断しない場合false
| コンストラクタの詳細 |
|---|
public SqlUnitExecutorImpl(javax.sql.DataSource dataSource,
UserTransaction userTransaction,
boolean haltOnError)
dataSource - データソースuserTransaction - ユーザートランザクション、トランザクションを使用しない場合nullhaltOnError - エラー発生時に処理を即座に中断する場合true、中断しない場合false| メソッドの詳細 |
|---|
public void execute(SqlUnitExecutor.Callback callback)
SqlUnitExecutor の記述:
SqlUnitExecutor 内の executecallback - コールバックprotected void executeInternal(SqlUnitExecutor.Callback callback)
callback - コールバックprotected boolean begin()
trueprotected boolean hasTransaction()
trueを、それ以外の場合はfalse
を返します。
trueprotected void end(boolean commit)
commit - コミットする場合trueprotected int getTransactionStatus()
protected SqlExecutionContext createSqlExecutionContext()
SqlExecutionContextの実装クラスを作成します。
SqlExecutionContextの実装クラス
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||