¥Ñ¥ï¡¼¥Ó¡¼¥ó¥º¡¦¥Ç¥¶¥¤¥ó¥Ñ¥¿¡¼¥ó



    Contents
  1. ¥Ç¥¶¥¤¥ó¥Ñ¥¿¡¼¥ó¤òƳÆþ¤¹¤ë°ÕµÁ
  2. ¥â¥Ç¥ë¡¢¥Ó¡¼¥óÅù¤Î¾ðÊó¤òÊÝ»ý¤¹¤ë¤¿¤á¤Î¥¯¥é¥¹
  3. ÃͤÀ¤±¤òÄêµÁ¤¹¤ë¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Î»ÈÍѤζػß
  4. ¥Ó¥¸¥Í¥¹¡¦¥í¥¸¥Ã¥¯¤Î¥Õ¥ì¡¼¥à¥ï¡¼¥¯³µÍ×
  5. ¥Ó¥¸¥Í¥¹¡¦¥í¥¸¥Ã¥¯¤Î¥Õ¥ì¡¼¥à¥ï¡¼¥¯ÄêµÁ¥Õ¥¡¥¤¥ë¤Ë¤Ä¤¤¤Æ


¥Ñ¥ï¡¼¥Ó¡¼¥ó¥º¡¦¥Ç¥¶¥¤¥ó¥Ñ¥¿¡¼¥ó

¤³¤³¤Ç¤Ï¥Ñ¥ï¡¼¥Ó¡¼¥ó¥º¤ÎÀ߷ס¢³«È¯¤Ë¤ª¤±¤ë¥Ç¥¶¥¤¥ó¥Ñ¥¿¡¼¥ó¤Ë¤Ä¤¤¤Æ ¤´Êó¹ð¤¤¤¿¤·¤Þ¤¹¡£

¥Ç¥¶¥¤¥ó¥Ñ¥¿¡¼¥ó¤òƳÆþ¤¹¤ë°ÕµÁ



¥Õ¥ì¡¼¥à¥ï¡¼¥¯¤òÍøÍѤ·¤¿£Í£Ö£Ã¹½Â¤¤À¤±¤Ç¤ÏÉÔ½½Ê¬¤Ç¤¹¡£ ¤³¤ì¤À¤±¤Ç¤Ï¡¢¥×¥í¥°¥é¥Þ¡¼¤Î¥¹¥­¥ë¤Ë¤è¤ê¥×¥í¥°¥é¥à¤ËÆ̱ú¤¬¤Ç¤­¤Æ¤·¤Þ¤¹¡£ ¥¹¥­¥ë¤Î¹â¤¤¥×¥í¥°¥é¥Þ¡¼¤Ï¥¢¥¯¥·¥ç¥ó¥¯¥é¥¹¤ò³ÈÄ¥¤·¤Æ¤·¤Þ¤Ã¤¿¤ê¡¢ ¥¹¥­¥ë¤ÎÄ㤤¥×¥í¥°¥é¥Þ¡¼¤ÏÁ´¤Æ¤Î½èÍý¤ò¥¢¥¯¥·¥ç¥ó¥¯¥é¥¹¤Ë¥³¡¼¥Ç¥£¥ó¥°¤·¤Æ¤·¤Þ¤Ã¤¿¤ê ¥×¥í¥°¥é¥à¤¬Èó¾ï¤Ë¸«Ä̤·¤Î°­¤¤¥·¥¹¥Æ¥à¤È¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£ ¤½¤Î¤¿¤á¤Ë¤â¡¢µ»½Ñ¼Ô¤Î¥¹¥­¥ë¤Ë¤è¤ê¥×¥í¥°¥é¥à¤¬¤Þ¤Á¤Þ¤Á¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤ï¤Ì¤è¤¦¤Ë ¥Ç¥¶¥¤¥ó¥Ñ¥¿¡¼¥ó¤òƳÆþ¤·¥×¥í¥°¥é¥à¤¬Åý°ì¤¹¤ë¤è¤¦¤Ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£

(1) ¥á¥ê¥Ã¥È
¤½¤Î·ë²Ì¤È¤·¤Æ°ì±þ¤ËÅý°ì¤Î¼è¤ì¤¿ÊݼéÀ­¤ÈÆ©²áÀ­¤Ë Í¥¤ì¤¿¥·¥¹¥Æ¥à¤ò¹½ÃÛ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

(2) ¥Ç¥á¥ê¥Ã¥È
¤Á¤ç¤Ã¤È¤·¤¿¥×¥í¥°¥é¥à¤Ç¤â¥Ç¥¶¥¤¥ó¥Ñ¥¿¡¼¥ó¤òŬÍѤ·¤Ê¤¯¤Æ¤Ï¤¤¤±¤Ê¤¤¤Î¤Ç¡¢ ¤«¤¨¤Ã¤Æ¥³¡¼¥Ç¥£¥ó¥°¿ô¤¬Áý¤¨¤Æ¤·¤Þ¤¦¡£

(3) ¥Ç¥á¥ê¥Ã¥È¤Î²ò¾Ã
¥Ñ¥ï¡¼¥Ó¡¼¥ó¥º¤Ç¤ÏÊÀ¼Ò¤Ç³«È¯¤¤¤¿¤·¤Þ¤·¤¿¥³¡¼¥É¥¼¥Í¥ì¡¼¥¿¤ò »È¤Ã¤ÆÀ¸»ºÀ­¤Î¸þ¾å¤ò·×¤Ã¤Æ¤ª¤ê¤Þ¤¹¡£


¥â¥Ç¥ë¡¢¥Ó¡¼¥óÅù¤Î¾ðÊó¤òÊÝ»ý¤¹¤ë¤¿¤á¤Î¥¯¥é¥¹



ÃÍ¥ª¥Ö¥¸¥§¥¯¥È(Value Object)¡¢¥Ç¡¼¥¿Å¾Á÷¥ª¥Ö¥¸¥§¥¯¥È(JTO)¤È¤¤¤Ã¤¿½ÅÍפʥâ¥Ç¥ë¤ä ¥Ó¡¼¥óÅù¤ËÂФ·¤Æ¤ÏºÇÄã¸Â¡¢°Ê²¼¤Î¤è¤¦¤Ê¥á¥½¥Ã¥É¤ò¼ÂÁõ¤·¤Æ²¼¤µ¤¤¡£

(1) equal¥á¥½¥Ã¥É
¥ª¥Ö¥¸¥§¥¯¥ÈƱ»Î¤ÎÀ°¹çÀ­¤òÈæ³Ó¤¹¤ë¤¿¤á¤Î¥á¥½¥Ã¥É¡£

(2) toString¥á¥½¥Ã¥É
¤½¤Î¥ª¥Ö¥¸¥§¥¯¥È¤Î¥À¥ó¥×¤ò¼è¤ë¤¿¤á¤Î¥á¥½¥Ã¥É¡£¥È¥ì¡¼¥¹¡¢¥í¥°½ÐÎϤʤɤ˻Ȥ俤ꤷ¤Þ¤¹¡£

(3) validate¥á¥½¥Ã¥É
¤½¤Î¥ª¥Ö¥¸¥§¥¯¥È¤ÎÂÅÅöÀ­¤ò¸¡¾Ú¤¹¤ë¤¿¤á¤Î¥á¥½¥Ã¥É¡£

Note
¤³¤ì¤ò¼Â¸½¤¹¤ë¤Ë¤Ï¡Ö¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¡×¡¢¤Þ¤¿¤Ï¡¢¡Öabstruct¥¯¥é¥¹¡×¤ò
ºîÀ®¤·¤Æ¡¢¤½¤ì¤ò·Ñ¾µ¤¹¤ë¤è¤¦¤Ë¤·¤Æ²¼¤µ¤¤¡£

Î㡧


ÃͤÀ¤±¤òÄêµÁ¤¹¤ë¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Î»ÈÍѤζػß



ÃͤÀ¤±¤òÄêµÁ¤¹¤ë¾ì¹ç¤Ë¤Ï¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Ç¤Ï¤Ê¤¯¡¢¥³¥ó¥¹¥È¥é¥¯¥¿¤ò¥×¥é¥¤¥Ù¡¼¥È¤Ë¤·¤¿
¥¯¥é¥¹¤òºîÀ®¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤ÏJAVA¤Ë̤½Ï¤Ê¥×¥í¥°¥é¥Þ¤¬¤ï¤¶¤ï¤¶¥¤¥ó¥¹¥¿¥ó¥¹¤òÀ¸À®¤·¤Æ¡¢
¤½¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤«¤éÄêµÁÊÑ¿ô¤ò»²¾È¤¹¤ë¤Î¤ò̤Á³¤ËËɤ°¤¿¤á¤Ç¤¹¡£

(1) ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹
Î㤨¤Ð¼¡¤Î¤è¤¦¤ÊÃͤÀ¤±¤òÄêµÁ¤·¤Æ¤¤¤ë¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Ï¡Ö(2) ¥¯¥é¥¹¡×¤Î¤è¤¦¤Ë¤·¤Þ¤¹¡£

package jp.co.powerbeans.poweroffice.administrator.util;

public interface CommKeys
{
    public static final String BUTTON_ACTION_NOTHING  = "nothing";
    public static final String BUTTON_ACTION_STORE    = "store";
    public static final String BUTTON_ACTION_CREATE   = "create";
    public static final String BUTTON_ACTION_REMOVE   = "remove";
    public static final String BUTTON_ACTION_CANCEL   = "cancel";
}


(2) ¥¯¥é¥¹
¥³¥ó¥¹¥È¥é¥¯¥¿¤òprivate¤Ë¤·¤Æ¤ª¤­¤Þ¤¹¡£

package jp.co.powerbeans.poweroffice.administrator.util;

public class CommKeys
{
    private CommKeys()

    public static final String BUTTON_ACTION_NOTHING  = "nothing";
    public static final String BUTTON_ACTION_STORE    = "store";
    public static final String BUTTON_ACTION_CREATE   = "create";
    public static final String BUTTON_ACTION_REMOVE   = "remove";
    public static final String BUTTON_ACTION_CANCEL   = "cancel";
}


¥Ó¥¸¥Í¥¹¡¦¥í¥¸¥Ã¥¯¤Î¥Õ¥ì¡¼¥à¥ï¡¼¥¯³µÍ×



¡ÖJ2EE Blueprints 1.4¡×¤Î¥Ç¥¶¥¤¥ó¡¦¥Ñ¥¿¡¼¥ó¤ò´ð¤ËStruts¤òÁȤ߹ç¤ï¤»¤¿
¥Õ¥ì¡¼¥à¥ï¡¼¥¯¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£


¥Ó¥¸¥Í¥¹¡¦¥í¥¸¥Ã¥¯¤Î¥Õ¥ì¡¼¥à¥ï¡¼¥¯ÄêµÁ¥Õ¥¡¥¤¥ë¤Ë¤Ä¤¤¤Æ



¤³¤Î¥Õ¥ì¡¼¥à¥ï¡¼¥¯¤Ç¤ÎÄêµÁ¥Õ¥¡¥¤¥ë¤Ï¡Ömappings.xml¡×¤À¤±¤È¤Ê¤ê¤Þ¤¹¡£

* Áàºî¥¢¥¯¥·¥ç¥ó(IFlowAction)¤¬¼Â¹Ô¤µ¤ì¤ëÁ°¤Ë½èÍý¤·¤Æ¤ª¤­¤¿¤¤½èÍý¤ÎÄêµÁ(¾Êά²Ä)¡£
* WEB²èÌ̤ǤÎÁàºî¤È¡¢¤½¤ÎÁàºî¤È¤ÎÂбþ¤¹¤ëÁàºî¥¢¥¯¥·¥ç¥ó(IFlowAction)¤È¤Î´ØÏ¢¤òÄêµÁ¡£
* EJBÁؤØÄÌÃΤ¹¤ë¥¤¥Ù¥ó¥È(Event)¤È¡¢EJBÁؤǽèÍý¤¹¤ë¥Ó¥¸¥Í¥¹¥í¥¸¥Ã¥¯¡¦¥¢¥¯¥·¥ç¥ó(IEJBAction)¤È¤Î´ØÏ¢¤ÎÄêµÁ¡£

[WEBÁؤÎÁàºî¥¢¥¯¥·¥ç¥ó(IFlowAction)ÄêµÁ°ìÉôÈ´¿è]

    <url-mapping url="/administrator/admmstquestion">
        <implement-plugin>
            <run-plugin sequence="1"  plugin="jp.co.powerbeans.poweroffice.administrator.waf.AdmMstQuestion.run.AdmMstQuestionRun1"/>
            <run-plugin sequence="2"  plugin="jp.co.powerbeans.poweroffice.administrator.waf.AdmMstQuestion.run.AdmMstQuestionRun2"/>
            <run-plugin sequence="3"  plugin="jp.co.powerbeans.poweroffice.administrator.waf.AdmMstQuestion.run.AdmMstQuestionRun3"/>
        </implement-plugin>
        <flow-handler class="jp.co.powerbeans.poweroffice.administrator.waf.AdmMstQuestion.flow.AdmMstQuestionFlowHandler">
            <handler-result result="STORE_ACTION"  action="jp.co.powerbeans.poweroffice.administrator.waf.AdmMstQuestion.actions.AdmMstQuestionStoreFlowAction"/>
            <handler-result result="CREATE_ACTION" action="jp.co.powerbeans.poweroffice.administrator.waf.AdmMstQuestion.actions.AdmMstQuestionCreateFlowAction"/>
            <handler-result result="REMOVE_ACTION" action="jp.co.powerbeans.poweroffice.administrator.waf.AdmMstQuestion.actions.AdmMstQuestionRemovmeFlowAction"/>
            <handler-result result="CANCEL_ACTION" action="jp.co.powerbeans.poweroffice.administrator.waf.AdmMstQuestion.actions.AdmMstQuestionCancelFlowAction"/>
        </flow-handler>
    </url-mapping>


[EJBÁؤΥ¤¥Ù¥ó¥È(Event)¤ÈEJB¥¢¥¯¥·¥ç¥ó(IEJBAction)ÄêµÁ°ìÉôÈ´¿è]

    <event-mapping>
        <event-class>jp.co.powerbeans.poweroffice.administrator.waf.AdmMstQuestion.events.AdmMstQuestionEvent</event-class>
        <ejb-action-class>jp.co.powerbeans.poweroffice.administrator.waf.AdmMstQuestion.ejb.AdmMstQuestionEJBAction</ejb-action-class>
    </event-mapping>


¥×¥ê¥ó¥¿½ÐÎÏÍѲèÌÌ Í§Ã£¤ËÅÁ¤¨¤ë


Åê¹Æ¤µ¤ì¤¿ÆâÍƤÎÃøºî¸¢¤Ï¥³¥á¥ó¥È¤ÎÅê¹Æ¼Ô¤Ëµ¢Â°¤·¤Þ¤¹¡£
¥æ¡¼¥¶Ì¾:

¥Ñ¥¹¥ï¡¼¥É:


¥Ñ¥¹¥ï¡¼¥Éʶ¼º

¿·µ¬ÅÐÏ¿

¹âÅ٤ʸ¡º÷
¤³¤Î¥µ¥¤¥È¤Ï OpenFootStep ¤Ç¥¢¥¯¥»¥¹²òÀÏÃæ¤Ç¤¹