com.hamaf.hikyaku.ui
クラス StandardCheckProcess

java.lang.Object
  上位を拡張 com.hamaf.hikyaku.ui.ProcessBase
      上位を拡張 com.hamaf.hikyaku.ui.StandardCheckProcess

public abstract class StandardCheckProcess
extends ProcessBase

タイトル: StandardCheckProcess 標準チェック処理 ProcessBase.

説明:項目チェックを行う処理用の拡張クラスです。


以下の処理を記述します
メッソド名 必須/任意 概略
setFolder 任意 チェック用のフォルダ名を戻す
DiContainarにより、コンストラクターで_cfldに設定してもかまいません。
checkMaster 任意 マスタ等とのチェック処理
checkRelation 任意 項目間関連チェック処理
setEditItem 任意 編集項目の設定処理

DiContainerを利用する場合、コンストラクタで以下の引数が設定可能です。

著作権: Copyright (c) 2007/05/29

バージョン:
1.0
作成者:
y-hamanaka

フィールドの概要
protected  java.lang.String _cfld
          _cfld a String : 項目チェック用のフォルダー
 
クラス com.hamaf.hikyaku.ui.ProcessBase から継承されたフィールド
clnm, controlXml, log, msgHed, process, request, resource, response, saveObj, sconfig, session, sysId
 
コンストラクタの概要
StandardCheckProcess()
           
 
メソッドの概要
protected  CommonMessage checkMaster(CommonMessage msg)
          Describe checkMaster method : マスタチェック処理.
protected  CommonMessage checkRelation(CommonMessage msg)
          Describe checkRelation method : 関連チェック処理.
 CommonMessage exec(CommonMessage msg)
          Describe exec method : チェック処理を行う.
protected  CommonMessage setEditItem(CommonMessage msg)
          Describe setEditItem method : 編集項目設定処理.
protected  java.lang.String setFolder()
          Describe setFolder method : チェック用のフォルダー名を戻す.
 
クラス com.hamaf.hikyaku.ui.ProcessBase から継承されたメソッド
finish, getUerDto, getUserID, init, newCommonMessage, setSconfig
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

_cfld

protected java.lang.String _cfld
_cfld a String : 項目チェック用のフォルダー

コンストラクタの詳細

StandardCheckProcess

public StandardCheckProcess()
メソッドの詳細

exec

public final CommonMessage exec(CommonMessage msg)
                         throws java.lang.Exception
Describe exec method : チェック処理を行う.
  1. 項目チェック処理(ItemChecks)により、項目チェックを行う。 その際、setFolder()よりフォルダー名を取得する。
  2. 上記チェックがノーマルであれば、マスタチェックcheckMaster()を行う。
  3. 上記チェックがノーマルであれば、項目間チェックcheckRelation()を行う。
  4. 上記チェックがノーマルであれば、リクエスト項目をレスポンス項目に複写する。
  5. 項目編集処理setEditItem()を呼び出す。

定義:
クラス ProcessBase 内の exec
パラメータ:
commonMessage - a CommonMessage :
戻り値:
a CommonMessage :
例外:
java.lang.Exception - if an error occurs

setFolder

protected java.lang.String setFolder()
Describe setFolder method : チェック用のフォルダー名を戻す.
(DiContainaerを使用しコンストラクターで設定する場合は、不要です。)
標準の項目チェックを行う場合に、チェックが定義されているフォルダー名を戻します。
基本的には、
return "フォルダー名";
だけを記述します。

戻り値:
a String : チェックが定義されているフォルダー名称

checkMaster

protected CommonMessage checkMaster(CommonMessage msg)
                             throws java.lang.Exception
Describe checkMaster method : マスタチェック処理.
マスタなどによるチェックを行う場合に、Overrideします。

パラメータ:
msg - a CommonMessage :
戻り値:
a CommonMessage :
例外:
java.lang.Exception - if an error occurs

checkRelation

protected CommonMessage checkRelation(CommonMessage msg)
                               throws java.lang.Exception
Describe checkRelation method : 関連チェック処理.
項目間の関連チェックが必要な場合に、Overrideします。

パラメータ:
msg - a CommonMessage :
戻り値:
a CommonMessage :
例外:
java.lang.Exception - if an error occurs

setEditItem

protected CommonMessage setEditItem(CommonMessage msg)
                             throws java.lang.Exception
Describe setEditItem method : 編集項目設定処理.
表示項目を編集して設定する場合に、Overrideします。

パラメータ:
msg - a CommonMessage :
戻り値:
a CommonMessage :
例外:
java.lang.Exception - if an error occurs