Package nablarch.fw.action
Class NoInputDataBatchAction
- All Implemented Interfaces:
DataReaderFactory<Object>,Handler<Object,,Result> ExecutionHandlerCallback<CommandLine,,Result> TransactionEventCallback<Object>
入力データを必要としないバッチ処理用の基本実装クラス。
本クラスの各メソッドがフレームワークによって呼び出される順序は以下のとおり。
initialize() <-- 本処理開始前に一度だけ呼ばれる。
try {
handle() <-- 1度だけ呼ばれる。
} catch(e) {
error() <-- 本処理がエラー終了した場合に、一度だけ呼ばれる。
} finally {
terminate() <-- 本処理が全て終了した後、一度だけ呼ばれる。
}
- Author:
- hisaaki sioiri
-
Nested Class Summary
Nested classes/interfaces inherited from interface nablarch.fw.TransactionEventCallback
TransactionEventCallback.Provider<TData> -
Field Summary
Fields inherited from interface nablarch.fw.TransactionEventCallback
REQUEST_DATA_REQUEST_SCOPE_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal DataReader<Object>1度だけ本処理を呼び出すためのDataReaderを生成する。final Resulthandle(Object inputData, ExecutionContext ctx) データリーダによって読み込まれた1件分の入力データに対する 業務処理を実行する。abstract Resulthandle(ExecutionContext ctx) 本処理を実行する。Methods inherited from class nablarch.fw.action.BatchActionBase
error, errorInExecution, initialize, postExecution, preExecution, terminate, transactionAbnormalEnd, transactionFailure, transactionNormalEnd, transactionSuccess, writeErrorLog, writeFatalLog, writeLogMethods inherited from class nablarch.core.db.support.DbAccessSupport
countByParameterizedSql, countByStatementSql, getParameterizedSqlStatement, getParameterizedSqlStatement, getSqlCStatement, getSqlPStatement, search
-
Constructor Details
-
NoInputDataBatchAction
インスタンスを生成する。
-
-
Method Details
-
handle
データリーダによって読み込まれた1件分の入力データに対する 業務処理を実行する。 処理をhandle(nablarch.fw.ExecutionContext)に委譲する。 -
handle
本処理を実行する。- Parameters:
ctx- 実行コンテキスト- Returns:
- 処理結果を表す
Result
-
createReader
1度だけ本処理を呼び出すためのDataReaderを生成する。- Specified by:
createReaderin interfaceDataReaderFactory<Object>- Specified by:
createReaderin classBatchAction<Object>- Parameters:
ctx- 実行コンテキスト- Returns:
- データリーダ
-