com.hamaf.hikyaku.ui
クラス ProcessBase

java.lang.Object
  上位を拡張 com.hamaf.hikyaku.ui.ProcessBase
直系の既知のサブクラス:
FileDownLoad, GroupMemberMod, GroupMemberModIni, HeaderMessage, InitDispCreate, ListProcessBase, LogInCheck, MenuCreate, MonthCalendar, MultipartProcessBase, NewSearch, NoProcess, PasswordChangeIni, PasswordInitialize, PreviousProcess, RetrieveCreate, SetStop, StandardCheckAndUpdate, StandardCheckProcess, StandardDetailProcess, StandardUpdateProcess, TopMessageSave, UserExcel, UserStyleList

public abstract class ProcessBase
extends java.lang.Object

タイトル:ProcessBase is Process Bean base class.

説明:処理用JavaBeanのベースとなるクラス。


JSPとの受渡データはCommonMessageオブジェクトを介して行います。

定義されているメソッドは
クラス変数として以下の領域が定義されています。

著作権: Copyright (c) 2003/12/01

バージョン:
1.0
作成者:
Hamanaka

フィールドの概要
protected  java.lang.String clnm
           
protected  org.w3c.dom.Document controlXml
           
protected  java.util.logging.Logger log
           
protected  java.lang.String msgHed
           
protected  java.lang.String process
           
protected  HttpServletRequest request
           
protected  java.util.ResourceBundle resource
           
protected  HttpServletResponse response
           
protected  java.lang.Object saveObj
           
protected  ServletConfig sconfig
           
protected  HttpSession session
           
protected  java.lang.String sysId
           
 
コンストラクタの概要
ProcessBase()
           
 
メソッドの概要
abstract  CommonMessage exec(CommonMessage msg)
          Describe exec method : Process Execute.
 CommonMessage finish(CommonMessage msg)
          Describe finish method : fainal process.
protected  UserDto getUerDto()
          Describe getUerDto method : .
protected  java.lang.String getUserID()
          Describe getUserID method : .
 CommonMessage init(HttpServletRequest httpRequest, HttpServletResponse httpResponse, java.util.ResourceBundle rsb, java.util.Map<DistributeServlet.SVAL,java.lang.String> sval)
          Describe init method : create CommonMessage and initialize.
protected  CommonMessage newCommonMessage()
          Describe newCommonMessage method : create new CommonMessage.
 void setSconfig(ServletConfig sconfig)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

request

protected HttpServletRequest request

response

protected HttpServletResponse response

session

protected HttpSession session

log

protected java.util.logging.Logger log

saveObj

protected java.lang.Object saveObj

controlXml

protected org.w3c.dom.Document controlXml

sysId

protected java.lang.String sysId

process

protected java.lang.String process

clnm

protected java.lang.String clnm

msgHed

protected java.lang.String msgHed

resource

protected java.util.ResourceBundle resource

sconfig

protected ServletConfig sconfig
コンストラクタの詳細

ProcessBase

public ProcessBase()
メソッドの詳細

init

public final CommonMessage init(HttpServletRequest httpRequest,
                                HttpServletResponse httpResponse,
                                java.util.ResourceBundle rsb,
                                java.util.Map<DistributeServlet.SVAL,java.lang.String> sval)
Describe init method : create CommonMessage and initialize.
初期設定用のメッソド。メインより最初に呼び出される。
処理内容

パラメータ:
httpRequest - : HttpServletRequest
httpResponse - : HttpServletResponse
rsb - : ResourceBundle
argSysId - a String : システムID
sval - a Map : システム情報Map
戻り値:
a CommonMessage : 生成した共通メッセージオブジェクト

finish

public CommonMessage finish(CommonMessage msg)
Describe finish method : fainal process.
終了処理用のメソッド。メインより最後に呼び出される。
saveObjをsessionに保存する。

パラメータ:
msg - a CommonMessage : 共通メッセージオブジェクト
戻り値:
a CommonMessage : 共通メッセージオブジェクト

newCommonMessage

protected CommonMessage newCommonMessage()
Describe newCommonMessage method : create new CommonMessage.
CommonMessageをインスタンス化して戻す。
CommonMessageを継承したクラスを戻す場合に、OverWriteします。

戻り値:
a CommonMessage : 共通メッセージオブジェクト

setSconfig

public void setSconfig(ServletConfig sconfig)
パラメータ:
sconfig - sconfig を設定します。

getUerDto

protected UserDto getUerDto()
Describe getUerDto method : .
セッションに保持されているユーザーDTOを戻す。

戻り値:
a UserDto :

getUserID

protected java.lang.String getUserID()
Describe getUserID method : .
ログインユーザーのユーザーIDを戻す。

戻り値:
a String : ログインユーザーID

exec

public abstract CommonMessage exec(CommonMessage msg)
                            throws java.lang.Exception
Describe exec method : Process Execute.
業務処理を定義するメソッド

送信データは、CommonMessageのリクエスト用Mapに設定されています。
getReq(項目名)、又は、getReq2String(項目名)メソッドで取り出す事が出来ます。

JSPに渡すデータは、CommonMessageのレスポンス用のMap或いはList領域に、
setResMsg(項目名、値)、及び、addResList(Object)で設定します。

該当データなし、項目チェック等のエラーなど送信画面を表示する場合は、
CommonMessageのErrorStatusにCOUTIONまたはWARNINGを設定し、
メッセージ用List や レスポンス用MAPにエラー情報を設定する。

システム障害などの回復不可能なエラーが発生した場合は、
CommonMessageのErrorStatusにERRORを設定し、
メッセージ用List に エラー情報を設定する。

saveObjに保存したデータはセッションに保管され、次回の呼出時にも使用する事が出来ます。

例外を投げると、システム障害画面が表示されます。

パラメータ:
msg - a CommonMessage : 共通メッセージオブジェクト
戻り値:
a CommonMessage : 共通メッセージオブジェクト
例外:
java.lang.Exception