jp.ne.mki.wedge.rule.client.control
$B%/%i%9(B StructureTryCatch

java.lang.Object
  |
  +--jp.ne.mki.wedge.rule.base.AbstractBase
        |
        +--jp.ne.mki.wedge.rule.base.AbstractClient
              |
              +--jp.ne.mki.wedge.rule.client.control.StructureTryCatch
$B$9$Y$F$N
ClientInterface, CommonInterface, RuleEngineInterface

public class StructureTryCatch
extends AbstractClient

$BF~NO%"%$%F%`$N(BAfter$B$r=g

$BF~NO0z?t$K;XDj$5$l$?(B $B%"%$%F%`$N(BAfter$B$r=g $B%"%$%F%`$N(BAfter $B=hM}$NLa$jCM(B(OK,ERROR etc..) $B$O!"(B $B0J2<$N;EMM$K4p$E$-JQ49$5$l(B $B$3$N%m%8%C%/%/%i%9$NLa$jCM$H$7$FJV$7$^$9!#(B

$BF~NO%"%$%F%`(BAfter$B$NLa$jCM(B$B$B$3$N%m%8%C%/%/%i%9$NLa$jCM(B
OK$B!{(BOK
ERROR$B!_(BERROR
STOP$B!_(BSTOP
CANCEL$B!_(BCANCEL
SKIP$B!{(BOK
SKIP_ALL$B!{(BOK
FRAME_CLOSE$B!_(BSKIP_ALL
FRAME_QUIT$B!_(BSKIP_ALL
SYSTEM_EXIT$B!_(BSKIP_ALL
SYSTEM_QUIT$B!_(BSKIP_ALL

$B=PNO0z?t$K(B $B%(%i!<=hM}MQ%"%$%F%`$,@_Dj$5$l$F$$$?>l9g$K$O!"%(%i!<%U%i%0$KCM$,F~$C$?;~E@$G(B $B%(%i!<$N=hM}$r $B%(%i!<=hM}$rL@<(E*$K9T$$$?$$>l9g$K$O!"F~NO0z?t$N(B1$B$DL\$K(B $B%(%i!<%U%i%0$N%"%$%F%`!"(B2$B$DL\0J9_$K%(%i!<=hM} $B%(%i!<$NH=Dj$O!"%(%i!<%U%i%0$N%"%$%F%`$,6u(B("")$B$G$J$$>l9g$K$O(B $B%(%i!<%U%i%0$NCM(B($BI,$:?tCM$G$"$k$3$H(B)$B$NHV9f$r(B $B9THV9f$H$7$F!"%(%i!<=hM}%"%$%F%`$r7hDj$7$^$9!#(B
$B$D$^$j!"%(%i!<%U%i%0(B $B$N(B $BCM(B $B$O!"%(%i!<
$BNc$($P!"=PNO0z?t$N@_Dj$,(B

  1. $B%(%i!<%U%i%0MQ%"%$%F%`(B
  2. $B%(%i!<=hM}%"%$%F%`(B $B%?%$%W(BA
  3. $B%(%i!<=hM}%"%$%F%`(B $B%?%$%W(BB
  4. $B%(%i!<=hM}%"%$%F%`(B $B%?%$%W(BC
$B$H@_Dj$5$l$F$$$k>l9g!"%(%i!<%U%i%0MQ%"%$%F%`$NCM$,(B 1$B$N>l9g$K$O!V%?%$%W(BA$B!W$,!"(B2$B$N>l9g$K$O(B $B!V%?%$%W(BB$B!W$,(B $B

$BNc$($P!"(B

$BF~NO0z?t(B$B=PNO0z?t(B
$B=hM}(BA$B%(%i!<%U%i%0(B
$B=hM}(BB$B%(%i!<=hM}(B1
$B=hM}(BC$B%(%i!<=hM}(B2
$B$H@_Dj$5$l$F$$$k>l9g!"(B

 Try {
    $B=hM}(BA
    $B=hM}(BB
    $B=hM}(BC
  }catch($B%(%i!<%U%i%0(B=1){
    $B%(%i!<=hM}(B1
  }catch($B%(%i!<%U%i%0(B=2){
    $B%(%i!<=hM}(B2
  }
     
$B$H$7$F=hM}$5$l$^$9!#(B


[I/O RECORD]

InputRecord OutputRecord
  1. After$B$K=hM}$r5-=R$7$?%"%$%F%`(B($BJ#?t(B)
  1. $B%(%i!<%U%i%0MQ%"%$%F%`(B($B>JN,2D(B)
  2. After$B$K%(%i!<=hM}$r5-=R$7$?%"%$%F%`(B($BJ#?t(I%$B>JN,2D(B)

[RULE PARAMETER]

Parameter

$B%P!<%8%g%s(B:
1.0

$B%U%#!<%k%I$N35MW(B
($B%Q%C%1!<%8%W%i%$%Y!<%H(B)  jp.ne.mki.wedge.run.client.data.Item errorFlgItem
           
 
$B%/%i%9(B jp.ne.mki.wedge.rule.base.AbstractBase $B$+$i7Q>5$7$?%U%#!<%k%I(B
controlRecord, engineManager, errorMessage, executeType, id, inputRecord, logicalName, outputRecord, physicalName, ruleParameter, ruleType, serverParameter, userConstant
 
$B%$%s%?%U%'!<%9(B jp.ne.mki.wedge.rule.base.interfaces.ClientInterface $B$+$i7Q>5$7$?%U%#!<%k%I(B
FRAME_CLOSE, FRAME_QUIT, SKIP_ALL, STOP, STOP_SELECT_ALL, SYSTEM_EXIT, SYSTEM_QUIT, TIMING_AFTER, TIMING_BEFORE, TIMING_LOAD, TIMING_ROW_CLICK, TIMING_ROW_WCLICK, TIMING_UN_LOAD
 
$B%$%s%?%U%'!<%9(B jp.ne.mki.wedge.rule.base.interfaces.CommonInterface $B$+$i7Q>5$7$?%U%#!<%k%I(B
CANCEL, ERROR, EXECUTE_BOTH, EXECUTE_CLIENT, EXECUTE_DEBUG, EXECUTE_HTMLGATEWAY, EXECUTE_SERVER, EXECUTE_SERVERDC, IO_ERROR, IO_ERROR_EXECUTE_PARAMETER, IO_ERROR_IN, IO_ERROR_IO_MUST_SAME_COUNT, IO_ERROR_ITEM_TYPE, IO_ERROR_OUT, IO_ERROR_PARAMETER, NONE, OK, PARAMETER_DELIMITER, SKIP, USER_ERROR
 
$B%3%s%9%H%i%/%?$N35MW(B
StructureTryCatch()
           
 
$B%a%=%C%I$N35MW(B
protected  int changeReturn(int result)
          $BF~NO%"%$%F%`$N(BAfter$B$NLa$jCM$r!"$3$N%m%8%C%/%/%i%9$NLa$jCM$KJQ49(B
 int execute()
          $B=PNO%"%$%F%`$N(BAfter$B=hM}$r=gl9g$K$O=hM}CfCG$7
protected  int executeErrorExecution()
          $B%(%i!<=hM}$r
 void exit()
          $B=*N;=hM}!#(B
protected  jp.ne.mki.wedge.run.client.data.Item getExecuteErrorItem(int errorNo)
          $B%(%i!
 int getIOParameter()
          $B=PNO%"%$%F%`$K@_Dj$,$"$l$P!"%(%i!<=hM}$,$"$k$HG'<1$9$k(B $B=PNO0z?t(B(0)$B$N%(%i!<%U%i%0$O%G!<%?%/%j%"$5$l$^$9!#(B
protected  boolean isErrorOcuured()
          $B%(%i!<=hM}$r9T$&$+$I$&$+$NH=CG(B $BF~NO%"%$%F%`$,@_Dj$"$j(B $B$+$D(B $BCM$,6u(B("")$B$GL5$$>l9g(B $B%(%i!<$H$_$J$9(B
protected  int loopInItemSub(jp.ne.mki.wedge.run.client.data.Item inItem, int index)
          $B=PNO%"%$%F%`$N(BAfter$B$r
 
$B%/%i%9(B jp.ne.mki.wedge.rule.base.AbstractClient $B$+$i7Q>5$7$?%a%=%C%I(B
executeCurrentAfter, executeRule, executeRule, getAdapterName, getClientRuleObject, getCodeBase, getComponent, getComponent, getComponents, getConfig, getConfImagePath, getContentPane, getCurrentComponent, getDesktop, getExecuteIndex, getExecuteParameter, getExecuteTiming, getExecutions, getExpectNextComponent, getFrame, getFrameRunner, getImageIcon, getInItem, getInItem, getItems, getManager, getMemory, getOutItem, getOutItem, getParameter, getReturnString, getRevision, isApplet, isApplication, isClientTraceMode, isConpiled, isJWS, isServerTraceMode, isWeb, log, loopInItem, loopInOutItem, loopInOutItemSub, loopOutItem, loopOutItemSub, setErrorMessageMustInComp, setErrorMessageMustOutComp, setExecuteParameter, setFocus, setFocus, setFocus, setFrameRunnerErrorStatus, setManager, setPropertyFromEngine, setStatusBarText, setWedgeLog, showDocument, showErrorDialog, showErrorDialog, showFrame, showFrame, showFrame, showFrame, terminate, writeErrorLog, writeErrorLog, writeErrorLog, writeErrorLog, writeLog, writeLog, writeTraceLog
 
$B%/%i%9(B jp.ne.mki.wedge.rule.base.AbstractBase $B$+$i7Q>5$7$?%a%=%C%I(B
callDispose, createErrorMessage, dataClearOfOutRecord, dataClearOfRecord, dispose, getAppAccount, getAppAuthority, getAppMenu, getAppPassword, getClassErrorName, getClientId, getConnectionId, getConnectionPoolId, getConstantKeys, getConstantValue, getConstantValueAsStringArray, getDbAccessCount, getDbErrorCode, getDbErrorMessage, getDbStatus, getDbUpdatedRecordCount, getEngineManager, getErrorMessage, getErrorMessage, getErrorMessage, getExceptionMessage, getExecuteType, getId, getInRecord, getInRecord, getInRecord, getInRecordCount, getIpAddress_G_Index, getIpAddress_P_Index, getLogicalErrorName, getLogicalName, getOutputHtml, getOutRecord, getOutRecord, getOutRecord, getOutRecordCount, getPhysicalErrorName, getPhysicalName, getProjectId, getQueryEndLine, getQueryMaxCount, getQueryPageCount, getQueryStartLine, getRowSize, getRowSizeOfInRecord, getRuleParameter, getRuleParameters, getRuleParameters, getRuleParameters, getRuleType, getRuleTypeName, getServerMessage, getServerParameter, getServerStatus, getServerSubName, getServerSubRevision, getServerTran, getUpdateErrorLine, getUpdateTargetCount, getWebServerIpAddress, isExecutable, isJDK15, log, logDebug, logError, logError, logFatal, logFatal, logInfo, logTrace, logWarn, logWarn, loopInOutRecord, loopInOutRecordSub, loopInRecord, loopInRecordSub, loopOutRecord, loopOutRecordSub, setControlRecord, setErrorMessage, setErrorMessageMustInRecord, setErrorMessageMustOutRecord, setErrorMessageMustParamIsNumber, setExecuteType, setFatalError, setHtmlManager, setId, setInRecord, setLogicalName, setOutputHtml, setOutRecord, setPhysicalName, setRuleParameter, setRuleType, setServerControlData, setServerParameter, setUserConstant, showErrorDialogAddRuleName, writeTraceLog
 
$B%/%i%9(B java.lang.Object $B$+$i7Q>5$7$?%a%=%C%I(B
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
$B%$%s%?%U%'!<%9(B jp.ne.mki.wedge.rule.base.interfaces.CommonInterface $B$+$i7Q>5$7$?%a%=%C%I(B
dispose, getAppAccount, getAppAuthority, getAppMenu, getAppPassword, getClassErrorName, getClientId, getConnectionId, getConnectionPoolId, getDbAccessCount, getDbErrorCode, getDbErrorMessage, getDbStatus, getEngineManager, getExceptionMessage, getExecuteType, getId, getInRecord, getInRecord, getInRecord, getInRecordCount, getIpAddress_G_Index, getIpAddress_P_Index, getLogicalErrorName, getLogicalName, getOutRecord, getOutRecord, getOutRecord, getOutRecordCount, getPhysicalErrorName, getPhysicalName, getProjectId, getQueryEndLine, getQueryMaxCount, getQueryPageCount, getQueryStartLine, getRuleParameter, getRuleParameters, getRuleType, getRuleTypeName, getServerMessage, getServerParameter, getServerStatus, getServerSubName, getServerSubRevision, getServerTran, getUpdateErrorLine, getUpdateTargetCount, getWebServerIpAddress, isExecutable, logDebug, logError, logError, logFatal, logFatal, logInfo, logTrace, logWarn, logWarn, setExecuteType, setRuleType, setServerParameter, showErrorDialogAddRuleName, writeTraceLog
 

$B%U%#!<%k%I$N>\:Y(B

errorFlgItem

jp.ne.mki.wedge.run.client.data.Item errorFlgItem
$B%3%s%9%H%i%/%?$N>\:Y(B

StructureTryCatch

public StructureTryCatch()
$B%a%=%C%I$N>\:Y(B

getIOParameter

public int getIOParameter()
                   throws java.lang.Throwable
$B=PNO%"%$%F%`$K@_Dj$,$"$l$P!"%(%i!<=hM}$,$"$k$HG'<1$9$k(B $B=PNO0z?t(B(0)$B$N%(%i!<%U%i%0$O%G!<%?%/%j%"$5$l$^$9!#(B IO$B%Q%i%a!<%?execute $B$NA0$K
$BLa$jCM(B:
int int OK=$B=hM}B39T!"(BERROR=$B0[>o=*N;!"(BCANCEL=$B=hM}$rCfCG(B($B@5>o=*N;(B)

execute

public int execute()
            throws java.lang.Throwable
$B=PNO%"%$%F%`$N(BAfter$B=hM}$r=gl9g$K$O=hM}CfCG$7l9g$K$O(B OK $B$H$_$J$7=hM}B39T$9$k!#(B
$BLa$jCM(B:
int BusinessRule$B$NLa$jCM$r;2>H(B

loopInItemSub

protected int loopInItemSub(jp.ne.mki.wedge.run.client.data.Item inItem,
                            int index)
$B=PNO%"%$%F%`$N(BAfter$B$r
$B%*!<%P!<%i%$%I(B:
$B%/%i%9(B AbstractClient $BFb$N(B loopInItemSub

executeErrorExecution

protected int executeErrorExecution()
$B%(%i!<=hM}$r
$BLa$jCM(B:
 

getExecuteErrorItem

protected jp.ne.mki.wedge.run.client.data.Item getExecuteErrorItem(int errorNo)
$B%(%i!
$B%Q%i%a!<%?(B:
errorNo - $B%(%i!<%U%i%0$NCM(B
$BLa$jCM(B:
 

isErrorOcuured

protected boolean isErrorOcuured()
$B%(%i!<=hM}$r9T$&$+$I$&$+$NH=CG(B $BF~NO%"%$%F%`$,@_Dj$"$j(B $B$+$D(B $BCM$,6u(B("")$B$GL5$$>l9g(B $B%(%i!<$H$_$J$9(B
$BLa$jCM(B:
 

changeReturn

protected int changeReturn(int result)
$BF~NO%"%$%F%`$N(BAfter$B$NLa$jCM$r!"$3$N%m%8%C%/%/%i%9$NLa$jCM$KJQ49(B
$B%Q%i%a!<%?(B:
result -  
$BLa$jCM(B:
 

exit

public void exit()
          throws java.lang.Throwable
$B=*N;=hM}!#J];}$7$F$$$?JQ?t$J$I$r3+J|$9$k=hM}$r5-=R$7$^$9!#(B
execute $B$N8e$K$B@5>o=*N;!&0[>o=*N;$J$I$K4X$o$i$:I,$: