jp.terasoluna.fw.batch.springsupport.transaction
クラス TransactionalSupportLogicResultHandler

java.lang.Object
  上位を拡張 jp.terasoluna.fw.batch.standard.StandardSupportLogicResultHandler
      上位を拡張 jp.terasoluna.fw.batch.springsupport.transaction.TransactionalSupportLogicResultHandler
すべての実装されたインタフェース:
SupportLogicResultHandler

public class TransactionalSupportLogicResultHandler
extends StandardSupportLogicResultHandler

トランザクション処理を行う SupportLogicResultHandler インタフェ ースの実装クラス。

BLogicResult のリターンコードに応じて、トランザクション処理 (コミット、ロールバック)を行う。トランザクション状態は、 TransactionalJobStatus に保持されている。

BLogicResult のリターンコードとして ERROR_END が 返された場合には、実行中のトランザクションをロールバックする。

この処理はセーブポイントを利用しているかどうかによらず行われる。


コンストラクタの概要
TransactionalSupportLogicResultHandler()
           
 
メソッドの概要
protected  void processErrorEnd(JobStatus jobStatus, BLogicResult blogicResult, java.lang.String name)
          BLogicResult のリターンコードが ERROR_END で あるときの処理を行う。
 
クラス jp.terasoluna.fw.batch.standard.StandardSupportLogicResultHandler から継承されたメソッド
handle, processErrorContinue, processNormalContinue, processNormalEnd, writeErrorLog, writeWarnLog
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

TransactionalSupportLogicResultHandler

public TransactionalSupportLogicResultHandler()
メソッドの詳細

processErrorEnd

protected void processErrorEnd(JobStatus jobStatus,
                               BLogicResult blogicResult,
                               java.lang.String name)
BLogicResult のリターンコードが ERROR_END で あるときの処理を行う。

トランザクションをロールバックし、親クラスの処理を呼び出す。

オーバーライド:
クラス StandardSupportLogicResultHandler 内の processErrorEnd
パラメータ:
jobStatus - ジョブステータス
blogicResult - ビジネスロジック処理結果
name - サポート処理名