jp.ne.mki.wedge.rule.base
クラス AbstractCommon

java.lang.Object
  上位を拡張 jp.ne.mki.wedge.rule.base.AbstractBase
      上位を拡張 jp.ne.mki.wedge.rule.base.AbstractCommon
すべての実装されたインタフェース:
CommonInterface, RuleEngineInterface
直系の既知のサブクラス:
AbstractGetXmlFromItem, AbstractReadXmlFromData, AbstractRposDivide, AddForward, AddForwardDoubleQuote, AddTail, AddTailDoubleQuote, AvgColumnText, Base64Decode, Base64Encode, BRTagConvert, CallPerlRule, CalParamValue, CapitalLetterConvert, CheckBigSmall, CheckBigSmallParameter, CheckByteLengthParameter, CheckColtextLineNothing, CheckDataType, CheckDate, CheckDate8, CheckEqual, CheckEqualObject, CheckEqualParameter, CheckEqualParameterIgnoreCase, CheckExists, CheckExistsFile, CheckIsDirectory, CheckIsFile, CheckItemInParameter, CheckNotColtextLineNothing, CheckNotEqual, CheckNotEqualParameter, CheckNotEqualParameterIgnoreCase, CheckNotExistsFile, CheckPostNo, CheckRegexMatch, CheckRepetition, CheckSubString, ClearValue, ColtextAddValue, CompulsionUserError, CopyColumnToColumn, CopyColumnToLine, CopyFile, CopyLineToColumn, CopyValue, CutMaxLength, CutRecordSize, DataClear, DataRotate, DateFormatChange, DateFormatChangeSetSourceFormat, DateJoin, DateNext, DatePrev, DateSplit, DateToYYYYAndMMAndDD, DecimalCalcAdd, DecimalCalcAnIndex, DecimalCalcDivide, DecimalCalcMod, DecimalCalcMultiPly, DecimalCalcSubtract, Decode, DecodeByItem, DeleteFile, DetailTableMergeUnion, DivideInsertUpdateDelete, Dummy, EmptyRowDelete, ExecuteFile, FullCharConvert, GetAbsoluteValue, GetConstantValue, GetControlRecordValue, GetCurrentTimeMillis, GetFileInfo, GetFileList, GetIpAddress, GetMaxValue, GetMinValue, GetMonthFirstDayAndEndDay, GetNCharacterFromHead, GetNextColtextValue, GetOptionalData, GetPageValue, GetServerParameter, GetSignumValue, GetTerm, GetToday, GetToday_Jpn_YYMMDD, GetYobi, GroupIndicate, HalfCharConvert, HiraganaToKatakana, IfLessThanSetParam, IfMatchItemThenCopyValue, IfMatchParamThenCopyValue, InsertValue, JoinColtext, JoinMultiItems, JoinUniqueFont, KanjiConvert, KatakanaToHiragana, ListClear, LogDebug, LogError, LogFatal, LogInfo, LogTrace, LogWarn, MakeDirectory, MergeDown, MergeSort, MergeUp, MonthNext, MonthPrev, ParamAdd, PutOptionalData, QuickSort, QuickSortDown, QuickSortUp, ReadBinaryToItem, ReadCsvFileToItem, ReadFileToItem, RegexReplace, RemoveOptionalData, RemoveValue, RenameFile, ReplaceOneChar, ReplaceString, RoundValue, RposJoin, SearchIndexForColtext, SendMail, SetAllDaysForTerm, SetAllValueForRange, SetColtextValue, SetDefaultValue, SetHeadZero, SetJpnYYToYYYY, SetMaxRowSize, SetNullis0else1, SetOrder, SetRowCount, SetSelect, SetValue, SetValueAndMapping, SetValueForAnyColtext, SetValueForAnyText, SetValueWhereEmpty, SetWhere, SetYYYYToJpnYY, SmallLetterConvert, SplitColtext, SplitMultiItems, SplitUniqueFont, StartOutsideExecuteFile, StartOutsideExecuteFileWaitFor, SubString, SumColumnText, Summary, SynthesisColtextWhereNotEmpty, SystemOutPrintln, TimeJoin, TimeSplit, Trim, UpNumberSet, URLEncode, Wait, WriteBinaryFromItem, WriteCsvFileFromItem, WriteErrorLog, WriteFileFromItem, WriteLog, WriteXmlToData, ZeroClear, ZeroSuppress

public abstract class AbstractCommon
extends AbstractBase

共通ロジッククラス抽象クラス

ロジッククラスを作成するには、このクラスを継承して作成して下さい。

実装の必要があるメソッドは以下の3つで、この順番で順に実行されます。
 1. public int getIOParameter()
 2. public int execute()
 3. public void exit()
1.では、Input/OutputRecordのチェックや、変数への格納処理を行ってください。
2.では、実際の処理内容を記述してください。上位クラスにてエラーをCatchするので、TryCatchはする必要はありません。
3.では、変数の解放処理などを行ってください。3.は異常終了などした場合でも必ず実行されます。


●InputRecordの数でLOOPする
execute()の処理の中で、loopInRecord()を記述します。処理はloopInRecordSub()の関数を上書きして下さい。
●OutputRecordの数でLOOPする
execute()の処理の中で、loopOutRecord()を記述します。処理はloopOutRecordSub()の関数を上書きして下さい。
●OutputRecordとInputRecordで、少ない方の数でLOOPする
execute()の処理の中で、loopInOutRecord()を記述します。処理はloopInOutRecordSub()の関数を上書きして下さい。


バージョン:
1.0

フィールドの概要
 
クラス jp.ne.mki.wedge.rule.base.AbstractBase から継承されたフィールド
controlRecord, engineManager, errorMessage, executeType, id, inputRecord, logicalName, logicClassDelegate, outputRecord, physicalName, ruleParameter, ruleType, serverParameter, userConstant
 
インタフェース jp.ne.mki.wedge.rule.base.interfaces.CommonInterface から継承されたフィールド
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
 
コンストラクタの概要
AbstractCommon()
           
 
メソッドの概要
 jp.ne.mki.wedge.run.enums.LogicClassType getLogicClassType()
          ロジッククラスタイプを取得します。
 EngineManagerInterface getManager()
          実行中の実行エンジンの参照を返す
 void terminate()
          終了処理
 
クラス jp.ne.mki.wedge.rule.base.AbstractBase から継承されたメソッド
callDispose, checkDelegate, createErrorMessage, createLogicErrorLogRecord, createLogicExceptionLogRecord, createLogicLogRecord, dataClearOfOutRecord, dataClearOfRecord, dispose, executeRule, getAppAccount, getAppAuthority, getAppMenu, getAppPassword, getClassErrorName, getClientId, getConnectionId, getConnectionPoolId, getConstantKeys, getConstantValue, getConstantValueAsStringArray, getControlRecord, getDbAccessCount, getDbErrorCode, getDbErrorMessage, getDbStatus, getDbUpdatedRecordCount, getEngineManager, getErrorMessage, getErrorMessage, getErrorMessage, getExceptionMessage, getExecuteType, getId, getInputRecordIterator, getInRecord, getInRecord, getInRecord, getInRecordCount, getInRecordList, getIpAddress_G_Index, getIpAddress_P_Index, getLogicalErrorName, getLogicalName, getLogicClassDelegate, getOutputHtml, getOutputRecordIterator, getOutRecord, getOutRecord, getOutRecord, getOutRecordCount, getOutRecordList, getPhysicalErrorName, getPhysicalName, getProjectId, getQueryEndLine, getQueryMaxCount, getQueryPageCount, getQueryStartLine, getReturnString, 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, setEngineManager, setErrorMessage, setErrorMessageMustInRecord, setErrorMessageMustOutRecord, setErrorMessageMustParamIsNumber, setExecuteType, setFatalError, setId, setInRecord, setLogicalName, setLogicClassDelegate, setOutputHtml, setOutRecord, setPhysicalName, setPropertyFromEngine, setRuleParameter, setRuleType, setServerParameter, setUserConstant, showErrorDialog, showErrorDialogAddRuleName, writeErrorLog, writeErrorLog, writeLog, writeLog, writeLog, writeTraceLog
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース jp.ne.mki.wedge.rule.base.interfaces.CommonInterface から継承されたメソッド
execute, exit, getIOParameter
 

コンストラクタの詳細

AbstractCommon

public AbstractCommon()
メソッドの詳細

terminate

public void terminate()
終了処理

定義:
インタフェース RuleEngineInterface 内の terminate
オーバーライド:
クラス AbstractBase 内の terminate

getManager

public EngineManagerInterface getManager()
実行中の実行エンジンの参照を返す

戻り値:
EngineManagerInterface

getLogicClassType

public jp.ne.mki.wedge.run.enums.LogicClassType getLogicClassType()
ロジッククラスタイプを取得します。

戻り値:
LogicClassType.COMMON
導入されたバージョン:
1.3.0-03