SETTINGS
- JPR
- public abstract class AbstractExtOtherJob<SETTINGS extends jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF<?>,JPR extends jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_jop_process_result.GenericJobProcessResult> extends Object
import,exportのどちらでもないジョブが継承します。
修飾子とタイプ | クラスと説明 |
---|---|
protected static class |
AbstractJob.Constans
皆伝!JobSchedulerで利用する各種定数値.
|
修飾子とタイプ | フィールドと説明 |
---|---|
protected List<String> |
companyList
会社コードリスト.
|
protected CompanyManagerHelper |
companyManagerHelper
CompanyManagerHelper.
|
protected ContextHelper |
contextHelper
ContextHelper.
|
protected LinkedHashMap<String,List<?>> |
dataMap
処理対象データリスト格納Map.
|
protected DateHelper |
dateHelper
DateHelper.
|
protected boolean |
eachCompanyModeFlag
会社単位処理モードフラグ.
|
protected int |
errorCount
異常データ件数.
|
protected ErrorMode |
errorMode
エラー時処理続行制御.
|
protected JPR |
jobProcessResult
汎用処理結果出力XML.
|
protected SETTINGS |
jobSettings
ジョブ設定.
|
protected LockHelper |
lockHelper
LockHelper.
|
protected int |
normalCount
正常データ件数.
|
protected String |
processingCompanyCd
処理中会社コード.
|
protected String |
processTargetCompanyCd
処理対象会社コード.
|
protected PropertyHelper |
propertyHelper
PropertyHelper.
|
protected SystemLocaleHelper |
systemLocaleHelper
SystemLocaleHelper.
|
protected TransactionHelper |
transactionHelper
TransactionHelper.
|
protected Map<String,KaidenValidateExecutorForJob> |
validateMap
バリデート実行クラス格納Map.
|
protected XmlOutputHelper |
xmlOutputHelper
XmlOutputHelper.
|
コンストラクタと説明 |
---|
AbstractExtOtherJob(KaidenJobProcessType kjpType,
KaidenJobIdIF kaidenJobId,
ErrorMode errorMode)
コンストラクタ.
|
AbstractExtOtherJob(KaidenJobTypeIF jpType,
KaidenJobIdIF kaidenJobId)
コンストラクタ.
|
修飾子とタイプ | メソッドと説明 |
---|---|
protected void |
addAllValidate(String targetKey,
List<ValidateDefsDto> validateDefsList)
実行バリデート定義リストをバリデータの実行バリデート定義リストに追加.
|
protected void |
addValidate(String targetKey,
String fieldKey,
KaidenValidatorIF obj,
String... args)
固有実行バリデート定義を追加.
|
protected void |
addValidate(String targetKey,
String fieldKey,
String validationId,
String... args)
実行バリデート定義を追加.
|
protected void |
addValidateRule()
サブクラス固有のバリデート定義追加処理.
|
protected void |
clearValidateMap(String targetCompany)
バリデート実行クラス格納Mapのクリア.
|
protected abstract void |
closeMain()
サブクラス固有の後処理.
|
protected void |
complementSettings()
設定の省略された項目を、ジョブスケジューラーで設定した値、またはデフォルト値に保管する.
|
protected void |
complementSettingsSub(jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF.Settings ds,
jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF.Settings js)
デフォルト設定にジョブスケジューラー設定を補完.
|
protected void |
complementSettingsSubCompany(jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF.Settings cs,
jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF.Settings ds,
jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF.Settings js)
会社別設定にジョブスケジューラー設定を補完.
|
protected void |
conductorErrorJobProcess()
終了処理(エラー).
|
protected void |
conductorExceptionJobProcess()
終了処理(例外).
|
protected void |
conductorFailureCompanyLock(String companyCd,
String lockKey)
ロック失敗処理(会社別).
|
protected void |
conductorFailureSingleLock(String lockKey)
ロック失敗処理(単一).
|
protected void |
conductorPostCompanyProcess(String companyCd)
後処理(会社別).
|
protected void |
conductorPostJobProcess()
後処理.
|
protected void |
conductorPostSingleProcess()
後処理(単一).
|
protected void |
conductorPreCompanyProcess(String companyCd)
前処理(会社別).
|
protected void |
conductorPreJobProcess()
前処理.
|
protected void |
conductorPreSingleProcess()
前処理(単一).
|
protected void |
conductorSuccessJobProcess()
終了処理(成功).
|
protected void |
conductorWarnJobProcess()
終了処理(警告).
|
protected String |
createUniqueKey(String key)
会社別のユニークなキーを生成します.
|
protected String |
decodeUniqueKey(String key)
会社別ユニークキーを対象キーに戻します.
|
protected void |
doExecuteCatch(Throwable e)
ジョブの実行処理のCatch節の処理.
|
protected void |
doExecuteFinally()
ジョブの実行処理のfinally節の処理.
|
protected jp.co.intra_mart.foundation.job_scheduler.JobResult |
errorProcess(Throwable e)
例外時処理.
|
jp.co.intra_mart.foundation.job_scheduler.JobResult |
execute() |
protected jp.co.slcs.kaiden.v2.base.foundation.job.AbstractJob.ExecuteBodyResult |
executeBody()
ジョブの実行メイン処理(単発).
|
protected jp.co.slcs.kaiden.v2.base.foundation.job.AbstractJob.ExecuteBodyResult |
executeBodyEachCompany()
ジョブの実行メイン処理(会社単位).
|
protected String |
formatValidateErrorMessage(KaidenValidateResult validateResult)
バリデートエラーメッセージを整形して返却.
|
protected int |
getAllWarnCnt()
総警告件数を返却.
|
protected String |
getAnotherErrEndMessage4Log(String errorMsg)
ログ用ジョブ異常終了(その他)メッセージを返却.
|
protected String |
getAnotherErrEndMsg4JobResult(String errorMsg)
ジョブスケジューラー異常(その他)終了メッセージを返却.
|
protected List<AbstractJobProcessConductor> |
getConductor()
ジョブスケジューラパラメータ(conductor)の設定内容を返却.
|
protected String |
getEachCompanyModeStartMessage4Log()
ログ用会社別処理開始時メッセージを返却.
|
protected String |
getErrEndMsg4JobResult()
ジョブスケジューラー異常終了メッセージを返却.
|
protected String |
getErrEndMsg4Log()
ログ用ジョブ異常終了メッセージを返却.
|
protected int |
getErrorCnt()
異常データ件数を返却.
|
protected jp.co.slcs.kaiden.v2.base.foundation.job.AbstractJob.ExecuteBodyResult |
getExecuteBodyResultObject() |
protected abstract JPR |
getGenericJobProcessResult()
汎用処理結果出力XMLを取得.
|
protected jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF.Settings |
getJobSchedulerSettingsInstance()
ジョブスケジューラ設定インスタンスを返却.
|
protected String |
getKaidenJobId()
ジョブIDを返却.
|
protected String |
getKaidenJobName()
ジョブ名称を返却.
|
protected Integer |
getKaidenJobTypeId()
処理種類コードを返却.
|
protected String |
getMessage(String key,
Object... args)
プロパティからメッセージを返却.
|
protected int |
getNormalCnt()
正常データ件数を返却.
|
protected String |
getProcessTargetCompanyCd()
処理対象会社コードを返却.
|
protected jp.co.intra_mart.foundation.job_scheduler.JobResult |
getResult()
保持するジョブ実行の処理結果を返却.
|
protected String |
getScsEndMsg4JobResult()
ジョブスケジューラー正常終了メッセージを返却.
|
protected String |
getScsEndMsg4Log()
ログ用ジョブ正常終了メッセージを返却.
|
protected <T> T |
getSettingsParameter(T _job,
T _this,
T _default)
設定値の優先度による、設定値を返却します.
|
protected String |
getStartMessage4Log()
ログ用ジョブ開始時メッセージを返却.
|
protected String |
getSurface(String key,
Object... args)
プロパティからラベルを返却.
|
protected abstract LinkedHashMap<String,Map<String,String>> |
getSurfacesMap()
ラベル定義を格納したMapを返却します.
|
protected LinkedHashMap<String,List<?>> |
getTargetDataListMap()
処理対象データリストをデータリストを格納したMapを取得します.
|
protected KaidenValidateExecutorForJob |
getValidateExecuter()
対象キーに紐づくジョブスケジューラーバリデート実行クラスを取得します.
|
protected KaidenValidateExecutorForJob |
getValidateExecuter(String targetKey)
対象キーに紐づくジョブスケジューラーバリデート実行クラスを取得します.
|
protected int |
getWarnCnt()
警告件数を返却.
|
Map<String,Integer> |
getWarnCountsMap()
警告件数格納Mapを返却.
|
protected String |
getWarnEndMsg4JobResult()
ジョブスケジューラー警告終了メッセージを返却.
|
protected String |
getWarnEndMsg4Log()
ログ用ジョブ警告終了メッセージを返却.
|
protected void |
globalPost(jp.co.slcs.kaiden.v2.base.foundation.job.AbstractJob.ExecuteBodyResult _result)
後処理.
|
protected void |
initForCompany()
会社別初期化処理.
|
protected void |
initJobProcessResult()
処理結果の初期化.
|
protected void |
initMain()
初期化処理.
|
protected boolean |
isIncossisteneData()
不整合データ出力有無を返却します.
|
protected boolean |
isUseCacheOnXmlRead()
XMLセッテイングのキャッシュ利用有無.
|
protected boolean |
isValidate()
バリデート処理.
|
protected jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF.Settings |
makeJobSchedulerSettings()
ジョブスケジューラ側から設定されたパラメータを取得し、設定クラスを作成.
|
protected void |
outputJobProcessResult()
処理結果XMLを出力します.
|
protected void |
outsetMain()
サブクラス固有の前処理.
|
protected abstract void |
outsetMainSub(SETTINGS settings)
ジョブ固有の前処理を行います.
|
protected boolean |
postValidate(List<KaidenValidateResult> validateResultList)
バリデート後固有処理.
|
protected void |
preValidate()
バリデート前固有処理.
|
protected jp.co.intra_mart.foundation.job_scheduler.JobResult |
processMain()
サブクラス固有の本処理.
|
protected abstract jp.co.intra_mart.foundation.job_scheduler.JobResult |
processMainDetail(jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF.Settings settings)
サブクラスのジョブメイン処理.
|
protected SETTINGS |
read(Class<SETTINGS> clazz)
xsdによるスキーマ検証を行わずに、Export設定を読み込んで返却します.
|
protected abstract SETTINGS |
readSettingsForPlain()
設定ファイル読込.
|
protected void |
registHistoryToResult()
ジョブの実行履歴と処理結果XMLファイルを紐づけるトランデータを登録します.
|
protected void |
removeValidateDef(String targetKey,
String fieldKey,
Class<? extends KaidenValidatorIF> clazz)
バリデータの実行バリデート定義を削除.
|
protected void |
setExecuteBodyResultError(jp.co.slcs.kaiden.v2.base.foundation.job.AbstractJob.ExecuteBodyResult bodyResult,
boolean _isError)
実行メイン処理結果エラー有無を設定.
|
protected void |
setExecuteBodyResultException(jp.co.slcs.kaiden.v2.base.foundation.job.AbstractJob.ExecuteBodyResult bodyResult,
Throwable e)
実行メイン処理結果発生Exceptionを設定.
|
protected void |
setExecuteBodyResultWarning(jp.co.slcs.kaiden.v2.base.foundation.job.AbstractJob.ExecuteBodyResult bodyResult,
boolean _isWarning)
実行メイン処理結果警告有無を設定.
|
protected void |
setIgnoreValidate(Class<? extends KaidenValidatorIF> clazz)
バリデート実行結果異常を無視するバリデートクラスを追加.
|
protected void |
setJobSchedulerParameter()
ジョブスケジューラ側から設定されたパラメータを取得し、XML設定より優先度の高い設定値とする.
|
protected void |
setProcessTargetCompanyCd(String companyCd)
処理対象会社コードを設定.
|
protected void |
setResult(jp.co.intra_mart.foundation.job_scheduler.JobResult _result)
ジョブ実行の処理結果を設定.
|
protected void |
setResult(jp.co.intra_mart.foundation.job_scheduler.JobResult _result,
boolean forceFlag)
ジョブ実行の処理結果を設定.
|
protected void |
setSettingsForPlainJob()
パラメータ設定.
|
protected void |
validateSettings(jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF.Settings ss,
boolean isJobSettings)
パラメータ情報の整合性チェック.
|
protected SETTINGS extends jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF<?> jobSettings
protected LinkedHashMap<String,List<?>> dataMap
protected int normalCount
protected int errorCount
protected Map<String,KaidenValidateExecutorForJob> validateMap
protected ErrorMode errorMode
protected String processTargetCompanyCd
protected String processingCompanyCd
protected ContextHelper contextHelper
protected JPR extends jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_jop_process_result.GenericJobProcessResult jobProcessResult
protected DateHelper dateHelper
protected CompanyManagerHelper companyManagerHelper
protected PropertyHelper propertyHelper
protected SystemLocaleHelper systemLocaleHelper
protected XmlOutputHelper xmlOutputHelper
protected LockHelper lockHelper
protected TransactionHelper transactionHelper
protected boolean eachCompanyModeFlag
会社単位で処理を実行するかを設定します。 デフォルトはTrue(会社単位で実行)になっています。 必要に応じてサブクラスで上書いてください。
public AbstractExtOtherJob(KaidenJobTypeIF jpType, KaidenJobIdIF kaidenJobId)
jpType
- ジョブ処理タイプkaidenJobId
- 皆伝ジョブIDpublic AbstractExtOtherJob(KaidenJobProcessType kjpType, KaidenJobIdIF kaidenJobId, ErrorMode errorMode)
バリデートでエラーが発生した際に、後続処理を行いたくない場合、引数[JoberrorMode]にErrorMode.ERROR_ENDを設定して利用。
kjpType
- 皆伝ジョブ処理タイプkaidenJobId
- 皆伝ジョブIDerrorMode
- エラー時処理続行制御protected void initMain()
サブクラスで一番最初に実行される処理です。 主に設定の読み込み、バリデート定義の追加などの実装を想定しています。
protected abstract SETTINGS readSettingsForPlain()
protected void setSettingsForPlainJob()
protected void setJobSchedulerParameter()
必要な場合はサブクラスで実装してください。
protected jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF.Settings makeJobSchedulerSettings()
基底ではgetJobSchedulerSettingsInstance()
の結果に会社コード
、ログ出力
を設定して返却します。
必要に応じてサブクラスでオーバーライドしてください。
protected jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF.Settings getJobSchedulerSettingsInstance()
makeJobSchedulerSettings()
で使用します。
基底ではGenericExtOtherSettingsIF.Settings
インスタンスを生成し初期状態で返却します。
必要に応じてサブクラスでオーバーライドしてください。
protected void complementSettings()
protected boolean isIncossisteneData()
Export固有の値のため、固定でfalse(出力しない)を返却.
protected jp.co.intra_mart.foundation.job_scheduler.JobResult processMain() throws KaidenSystemException, KaidenApplicationException
AbstractJob#process(String)
内で最後に実行される処理です。
KaidenSystemException
- システムエラーKaidenApplicationException
- アプリケーションエラーprotected void outsetMain() throws KaidenSystemException
AbstractJob.outset()
の最後に実行される処理です。
主な処理として、importでは対象ファイルの読み込み、exportでは出力対象データの取得などの実装を想定しています。
KaidenSystemException
- システムエラーprotected abstract void outsetMainSub(SETTINGS settings)
settings
- ジョブ設定protected abstract jp.co.intra_mart.foundation.job_scheduler.JobResult processMainDetail(jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF.Settings settings) throws KaidenSystemException, KaidenApplicationException
settings
- ジョブ設定KaidenSystemException
- システムエラーKaidenApplicationException
- アプリケーションエラーprotected abstract void closeMain() throws KaidenSystemException
一番最後に実行される処理です。
KaidenSystemException
- システムエラーprotected LinkedHashMap<String,List<?>> getTargetDataListMap()
protected void doExecuteCatch(Throwable e)
AbstractJob.execute()
のCatch節で実行する処理です。
本クラスでは何も処理を行いません。
e
- 例外protected void doExecuteFinally()
AbstractJob.execute()
のfinally節で実行する処理です。
本クラスでは何も処理を行いません。
protected boolean isUseCacheOnXmlRead()
protected SETTINGS read(Class<SETTINGS> clazz)
clazz
- Export設定対象クラスprotected void complementSettingsSub(jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF.Settings ds, jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF.Settings js)
基底では何も処理を行いません。
サブクラスで拡張した情報を補完するために用意しています。
ds
- デフォルト設定js
- ジョブスケジューラー設定protected void complementSettingsSubCompany(jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF.Settings cs, jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF.Settings ds, jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF.Settings js)
基底では何も処理を行いません。
サブクラスで拡張した情報を補完するために用意しています。
cs
- 会社別設定ds
- デフォルト設定js
- ジョブスケジューラー設定protected void validateSettings(jp.co.slcs.kaiden.v2.base.foundation.model.xml_schema.generic_ext_other_settings.GenericExtOtherSettingsIF.Settings ss, boolean isJobSettings)
ss
- パラメータ情報isJobSettings
- ジョブスケジューラパラメータかどうかprotected int getNormalCnt()
normalCount
を返却します。
サブクラスでnormalCountを適宜変更してください。
protected int getErrorCnt()
errorCount
を返却します。
サブクラスでerrorCountを適宜変更してください。
protected abstract JPR getGenericJobProcessResult()
protected void initJobProcessResult()
public jp.co.intra_mart.foundation.job_scheduler.JobResult execute() throws jp.co.intra_mart.foundation.job_scheduler.exception.JobExecuteException
execute
インタフェース内 jp.co.intra_mart.foundation.job_scheduler.Job
jp.co.intra_mart.foundation.job_scheduler.exception.JobExecuteException
protected void initForCompany()
会社別の初期化処理の実装を想定しています。
protected jp.co.slcs.kaiden.v2.base.foundation.job.AbstractJob.ExecuteBodyResult executeBodyEachCompany() throws jp.co.intra_mart.foundation.job_scheduler.exception.JobExecuteException
@ link #eachCompanyModeFlag
メソッド内で、eachCompanyModeFlag
がTrueの場合に実行されるメイン処理です。 対象会社リストの件数分繰り返して処理を行います。
jp.co.intra_mart.foundation.job_scheduler.exception.JobExecuteException
- ジョブ実行中に例外が発生protected jp.co.slcs.kaiden.v2.base.foundation.job.AbstractJob.ExecuteBodyResult executeBody() throws jp.co.intra_mart.foundation.job_scheduler.exception.JobExecuteException
@ link #eachCompanyModeFlag
メソッド内で、eachCompanyModeFlag
が #eachCompanyModeFlag} がFalseの場合に実行されるメイン処理です。 一度だけ処理を行います。
jp.co.intra_mart.foundation.job_scheduler.exception.JobExecuteException
- ジョブ実行中に例外が発生protected jp.co.intra_mart.foundation.job_scheduler.JobResult errorProcess(Throwable e) throws jp.co.intra_mart.foundation.job_scheduler.exception.JobExecuteException
e
- 例外オブジェクトjp.co.intra_mart.foundation.job_scheduler.exception.JobExecuteException
- ジョブ実行結果例外protected <T> T getSettingsParameter(T _job, T _this, T _default)
以下、優先順位と取得元 1.ジョブスケジューラから設定された値 2.会社別の設定値 3.デフォルト値
T
- 設定値の型_job
- ジョブスケジューラから設定された値_this
- 会社別の設定値_default
- デフォルト値protected abstract LinkedHashMap<String,Map<String,String>> getSurfacesMap()
protected void addValidateRule() throws KaidenSystemException
サブクラス固有のバリデートを行いたい場合に、定義の追加処理を実装してください。
KaidenSystemException
- システムエラーprotected void preValidate()
AbstractJob.outset()
の最初に実行される処理です。
処理を追加したい場合のみ、Overrideして実装してください。
protected boolean isValidate() throws KaidenSystemException
AbstractJob#process(String)
で最初に実行されるバリデート処理です。 本処理はバリデート定義が存在しない場合、固定で異常なし(false)を返却します。 バリデート結果は異常なしでも、バリデート実行結果Listの空インスタンスが返却されます。 処理の変更が必要な場合のみ、Overrideして実装してください。 バリデート処理前の固有処理を行いたい場合、AbstractJob.preValidate()
をOverrideして実装してください。 バリデート処理後の固有処理を変更したい場合、AbstractJob#postValidate()
をOverrideして実装してください。
KaidenSystemException
- システムエラーprotected void addValidate(String targetKey, String fieldKey, String validationId, String... args)
ラベル定義MAPのキーはフィールドキーを利用します。
targetKey
- バリデート対象データリストキーfieldKey
- バリデート対象フィールドキーvalidationId
- 実行バリデートIDargs
- バリデート実行時パラメータprotected void addValidate(String targetKey, String fieldKey, KaidenValidatorIF obj, String... args)
ラベル定義MAPのキーはフィールドキーを利用します。
targetKey
- バリデート対象キーfieldKey
- バリデート対象フィールドキーobj
- バリデータインスタンスargs
- バリデート実行時パラメータprotected void addAllValidate(String targetKey, List<ValidateDefsDto> validateDefsList)
targetKey
- バリデート対象キーvalidateDefsList
- 実行バリデート定義リストprotected void removeValidateDef(String targetKey, String fieldKey, Class<? extends KaidenValidatorIF> clazz)
targetKey
- バリデート対象キーfieldKey
- バリデート対象フィールドキーclazz
- 削除対象バリデートprotected void setIgnoreValidate(Class<? extends KaidenValidatorIF> clazz)
clazz
- 無視対象バリデータのクラスprotected boolean postValidate(List<KaidenValidateResult> validateResultList)
AbstractJob.isValidate()
内で最後に実行される処理です。
処理の変更が必要な場合のみ、Overrideして実装してください。
validateResultList
- バリデート実行結果Listprotected String formatValidateErrorMessage(KaidenValidateResult validateResult)
ログ(XML)出力用にバリデートエラーメッセージを整えて返却します。
標準ではメインメッセージ
をそのまま返却します。
validateResult
- バリデート結果protected void outputJobProcessResult()
protected void registHistoryToResult() throws jp.co.intra_mart.foundation.job_scheduler.exception.JobExecuteException
jp.co.intra_mart.foundation.job_scheduler.exception.JobExecuteException
- ジョブ実行中に例外が発生protected String getProcessTargetCompanyCd()
protected void setProcessTargetCompanyCd(String companyCd)
companyCd
- 処理対象会社コードprotected void setResult(jp.co.intra_mart.foundation.job_scheduler.JobResult _result)
_result
- ジョブ実行の処理結果protected void setResult(jp.co.intra_mart.foundation.job_scheduler.JobResult _result, boolean forceFlag)
forceFlagがTrueの場合はresultを引数の_resultで上書きます。 forceFlagがFalseの場合は更新前のステータスと引数の_resultのステータスにより上書くか判定します。
更新前ステータス | 引数のステータス | 更新有無 |
SUCCESS | SUCCESS | する |
WARNING | する | |
ERROR | する | |
WARNING | SUCCESS | しない |
WARNING | しない | |
ERROR | する | |
ERROR | SUCCESS | しない |
WARNING | しない | |
ERROR | しない |
_result
- ジョブ実行の処理結果forceFlag
- ジョブ実行の処理結果(強制上書き)protected jp.co.intra_mart.foundation.job_scheduler.JobResult getResult()
protected String getStartMessage4Log()
message:{0}を開始しました。
protected String getEachCompanyModeStartMessage4Log()
message:会社別処理[{0}]を開始しました。
protected String getScsEndMsg4Log()
message:{0}の{1}が正常に終了しました。(処理件数{2}件).
protected String getWarnEndMsg4Log()
message:{0}の{1}処理を終了しました。(結果:バリデーションエラー、処理件数{2}件、エラー件数{3}件)
protected String getErrEndMsg4Log()
message:{0}の{1}処理を終了しました。(結果:バリデーションエラー、処理件数{2}件、エラー件数{3}件)
protected String getAnotherErrEndMessage4Log(String errorMsg)
message:{0}の{1}処理を終了しました。(結果:エラー、{2})
errorMsg
- エラーメッセージprotected String getScsEndMsg4JobResult()
message:{0}の{1}が正常に終了しました。(処理件数{2}件)
protected String getWarnEndMsg4JobResult()
message:{0}の{1}処理を終了しました。(結果:バリデーションエラー、処理件数{2}件、エラー件数{3}件)
protected String getErrEndMsg4JobResult()
message:{0}の{1}処理を終了しました。(結果:バリデーションエラー、処理件数{2}件、エラー件数{3}件)
protected String getAnotherErrEndMsg4JobResult(String errorMsg)
message:{0}を終了しました。(結果:エラー、{1})
errorMsg
- エラーメッセージprotected String getMessage(String key, Object... args)
ロケールはシステムデフォルトロケールを利用します。任意のローケールを指定することはできません。
key
- キーargs
- 置換文字列の配列protected String getSurface(String key, Object... args)
ロケールはシステムデフォルトロケールを利用します。任意のローケールを指定することはできません。
key
- キーargs
- 置換文字列の配列protected int getWarnCnt()
protected int getAllWarnCnt()
protected KaidenValidateExecutorForJob getValidateExecuter()
protected KaidenValidateExecutorForJob getValidateExecuter(String targetKey)
targetKey
- 対象キーprotected String createUniqueKey(String key)
key
- 対象キーprotected String decodeUniqueKey(String key)
key
- 会社別ユニークキーprotected void clearValidateMap(String targetCompany)
バリデート実行クラス格納Map中の指定された会社コードをキーに含むエントリを削除します。
targetCompany
- 対象会社コードprotected String getKaidenJobId()
protected String getKaidenJobName()
protected Integer getKaidenJobTypeId()
protected void globalPost(jp.co.slcs.kaiden.v2.base.foundation.job.AbstractJob.ExecuteBodyResult _result)
会社別処理がすべて終了した後に実行される後処理です。
_result
- メイン処理処理結果protected List<AbstractJobProcessConductor> getConductor()
AbstractJobProcessConductor
を継承したコンダクターリストprotected void conductorPreJobProcess()
protected void conductorPostJobProcess()
protected void conductorErrorJobProcess()
protected void conductorWarnJobProcess()
protected void conductorSuccessJobProcess()
protected void conductorExceptionJobProcess()
protected void conductorPreCompanyProcess(String companyCd)
companyCd
- 会社コードprotected void conductorPostCompanyProcess(String companyCd)
companyCd
- 会社コードprotected void conductorFailureCompanyLock(String companyCd, String lockKey)
companyCd
- 会社コードlockKey
- ロックキーprotected void conductorPreSingleProcess()
protected void conductorPostSingleProcess()
protected void conductorFailureSingleLock(String lockKey)
lockKey
- ロックキーprotected jp.co.slcs.kaiden.v2.base.foundation.job.AbstractJob.ExecuteBodyResult getExecuteBodyResultObject()
protected void setExecuteBodyResultError(jp.co.slcs.kaiden.v2.base.foundation.job.AbstractJob.ExecuteBodyResult bodyResult, boolean _isError)
bodyResult
- 実行メイン処理結果_isError
- エラー有無protected void setExecuteBodyResultWarning(jp.co.slcs.kaiden.v2.base.foundation.job.AbstractJob.ExecuteBodyResult bodyResult, boolean _isWarning)
bodyResult
- 実行メイン処理結果_isWarning
- 警告有無protected void setExecuteBodyResultException(jp.co.slcs.kaiden.v2.base.foundation.job.AbstractJob.ExecuteBodyResult bodyResult, Throwable e)
bodyResult
- 実行メイン処理結果e
- 発生ExceptionCopyright © 2024 Sumitomo Life Information Systems Co., Ltd. All Rights Reserved.