パッケージ jp.ne.mki.wedge.rule.base

クラス AbstractBase

java.lang.Object
jp.ne.mki.wedge.rule.base.AbstractBase
すべての実装されたインタフェース:
CommonInterface, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
直系の既知のサブクラス:
AbstractClient, AbstractCommon, AbstractHtmlGateway, AbstractServer

public abstract class AbstractBase extends Object implements CommonInterface, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface

ロジッククラス抽象基本クラス


バージョン:
1.0
  • フィールドの概要

    フィールド
    修飾子とタイプ
    フィールド
    説明
    protected jp.ne.mki.wedge.run.interfaces.ControlRecordInterface
    コントロールレコード
    protected jp.ne.mki.wedge.run.interfaces.EngineManagerInterface
    実行エンジンのManager
    protected String
    エラーメッセージ
    protected int
    実行時のロジッククラスタイプ :実行時にエンジンにて設定
    protected String
    ロジッククラスのID
    protected jp.ne.mki.wedge.common.library.HashVector<String,jp.ne.mki.wedge.run.interfaces.DataInterface>
    入力レコード
    protected String
    ロジッククラスの論理名
    protected jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate
    ロジッククラス用エンジン委譲クラス
    protected jp.ne.mki.wedge.common.library.HashVector<String,jp.ne.mki.wedge.run.interfaces.DataInterface>
    出力レコード
    protected String
    ロジッククラスの物理名
    protected String
    ロジッククラスパラメータ
    protected int
    実行可能なロジッククラスタイプ :初期値は両方で実行可。
    protected String
    実行時サーバーパラメータ
    protected jp.ne.mki.wedge.run.library.UserConstant
    User定数
  • コンストラクタの概要

    コンストラクタ
    コンストラクタ
    説明
     
  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    protected void
     
    protected void
    Delegateクラスのチェック
    Delegateが設定されていないときには、実行場所によりDelegateを判断し 設定します。
    createErrorMessage(String key, int ret)
    標準エラーメッセージ生成
    指定KeyのメッセージをRuleMessageから取得し、以下の情報を引数にマッピングした 文字列を返します。
    createLogicErrorLogRecord(Level level, int result, String message, String errorCode, Throwable th)
    LogicErrorLogRecordを作成する
    LogicExceptionLogRecordを作成する
    LogicLogRecordを作成する
    void
    出力アイテムのデータを全て削除します。
    void
    dataClearOfRecord(List<jp.ne.mki.wedge.run.interfaces.DataInterface> itemRecord)
    引数で渡されたレコードの 全アイテムを全て削除します。
    void
    オブジェクトを破棄 実行エンジンにてオブジェクトを破棄時に実行される。
    int
    ロジッククラス実行 実行エンジンにてCall getIOParameter(),execute(),exit()の順番でメソッドが実行される。
    推奨されていません。
    getControlRecord().getAppAccount() を使用してください。
    推奨されていません。
    getControlRecord().getAppAuthority() を使用してください。
    推奨されていません。
    getControlRecord().getAppMenu() を使用してください。
    推奨されていません。
    getControlRecord().getAppPassword() を使用してください。
    推奨されていません。
    getControlRecord().getClassErrorName() を使用してください。
    推奨されていません。
    getControlRecord().getClientID() を使用してください。
    推奨されていません。
    getControlRecord().getConnectionId() を使用してください。
    推奨されていません。
    getControlRecord().getConnectionPoolId() を使用してください。
    ユーザ定数に設定されたキーの一覧を取得します。
    ユーザ定数を取得します。
    ユーザ定数をStringの配列形式で取得します。
    jp.ne.mki.wedge.run.interfaces.ControlRecordInterface
    ControlRecordの情報を取得する。
    推奨されていません。
    getControlRecord().getDbAccessCount() を使用してください。
    推奨されていません。
    getControlRecord().getDbErrorCode() を使用してください。
    推奨されていません。
    getControlRecord().getDbErrorMessage() を使用してください。
    推奨されていません。
    getControlRecord().getDbStatus() を使用してください。
    推奨されていません。
    getControlRecord().getDBUpdatedCount() を使用してください。
    jp.ne.mki.wedge.run.interfaces.EngineManagerInterface
    実行エンジンManagerを取得する
    エラーメッセージ取得
    標準ロジッククラス用エラーメッセージ取得
    標準ロジッククラス用エラーメッセージ取得
    推奨されていません。
    getControlRecord().getExceptionMessage() を使用してください。
    int
    実行種別
    ロジッククラスID取得
    protected ListIterator<jp.ne.mki.wedge.run.interfaces.DataInterface>
    入力レコードのListIteratorを取得する
    jp.ne.mki.wedge.common.library.HashVector<String,jp.ne.mki.wedge.run.interfaces.DataInterface>
    InputRecord取得
    jp.ne.mki.wedge.run.interfaces.DataInterface
    getInRecord(int line)
    InputRecordのindexによる取得
    jp.ne.mki.wedge.run.interfaces.DataInterface
    InputRecordのKey(ID)による取得
    int
    InputRecordの数取得
    List<jp.ne.mki.wedge.run.interfaces.DataInterface>
    InputRecordのListを取得
    推奨されていません。
    getControlRecord().getIpAddress_G() を使用してください。
    推奨されていません。
    getControlRecord().getIpAddress_P() を使用してください。
    推奨されていません。
    getControlRecord().getLogicalErrorName() を使用してください。
    ロジッククラス論理名称取得
    jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate
    ロジッククラス用実行エンジンの委譲クラスを取得する
    推奨されていません。
    getControlRecord().getOutputHtml() を使用してください。
    protected ListIterator<jp.ne.mki.wedge.run.interfaces.DataInterface>
    出力レコードのListIteratorを取得する
    jp.ne.mki.wedge.common.library.HashVector<String,jp.ne.mki.wedge.run.interfaces.DataInterface>
    OutputRecord取得
    jp.ne.mki.wedge.run.interfaces.DataInterface
    getOutRecord(int line)
    OutputRecordの取得
    jp.ne.mki.wedge.run.interfaces.DataInterface
    OutputRecordの取得
    int
    OutputRecordの行数取得
    List<jp.ne.mki.wedge.run.interfaces.DataInterface>
    OutputRecordのListを取得
    推奨されていません。
    getControlRecord().getPhysicalErrorName() を使用してください。
    ロジッククラス物理名称取得
    推奨されていません。
    getControlRecord().getProjectId() を使用してください。
    推奨されていません。
    getControlRecord().getQueryEndLine() を使用してください。
    推奨されていません。
    getControlRecord().getQueryMaxCount() を使用してください。
    推奨されていません。
    getControlRecord().getQueryPageCount() を使用してください。
    推奨されていません。
    getControlRecord().getQueryStartLine() を使用してください。
    getReturnString(int ret)
    戻り値文字列取得
    int
    getRowSize(List<jp.ne.mki.wedge.run.interfaces.DataInterface> itemRecord)
    引数で渡されたレコードの 全アイテムを検索し、行サイズを返します。
    int
    入力レコードの 全アイテムを検索し、行サイズを返します。
    ロジッククラスパラメータ取得
    ロジッククラスパラメータ取得 [;]でパラメータを区切り、配列で返す
    getRuleParameters(char delimiter)
    ロジッククラスパラメータ取得 引数の文字列でパラメータを区切り、配列で返す
    ロジッククラスパラメータ取得 引数の文字列でパラメータを区切り、配列で返す
    int
    RuleTypeを取得する
    getRuleTypeName(int ruleType)
    実行種別名称取得
    推奨されていません。
    getControlRecord().getServerMessage() を使用してください。
    推奨されていません。
    getControlRecord().getServerParameter() を使用してください。
    推奨されていません。
    getControlRecord().getServerStatus() を使用してください。
    推奨されていません。
    getControlRecord().getServerSubName() を使用してください。
    推奨されていません。
    getControlRecord().getServerSubRevision() を使用してください。
    推奨されていません。
    getControlRecord().getServerTran() を使用してください。
    推奨されていません。
    getControlRecord().getUpdateErrorLine() を使用してください。
    推奨されていません。
    getControlRecord().getUpdateTargetCount() を使用してください。
    推奨されていません。
    getControlRecord().getWebServerIpAddress() を使用してください。
    boolean
    実行可能かどうかを判定します。
    static boolean
    起動しているVMのバージョンが、1.5かをチェックします。
    final void
    log(LogRecord record)
    LogRecordのログ出力
    final void
    logDebug(String message)
    デバッグの情報に関するメッセージを出力します。
    final void
    logError(String message)
    エラーメッセージを出力します。
    final void
    logError(String message, Throwable th)
    エラーメッセージを出力します。
    final void
    logFatal(String message)
    致命的なエラーに関するメッセージを出力します。
    final void
    logFatal(String message, Throwable th)
    致命的なエラーに関するメッセージを出力します。
    final void
    logInfo(String message)
    情報メッセージを出力します。
    final void
    logTrace(String message)
    詳細なデバッグ情報メッセージを出力します。
    final void
    logWarn(String message)
    警告メッセージを出力します。
    final void
    logWarn(String message, Throwable th)
    警告メッセージを出力します。
    protected int
    inRecord、outRecordに設定されているItem(Data)数ループを発生させる。
    protected int
    loopInOutRecordSub(jp.ne.mki.wedge.run.interfaces.DataInterface inItem, jp.ne.mki.wedge.run.interfaces.DataInterface outItem, int index)
    loopInOutRecord()から呼び出されるメソッドです。
    protected int
    inRecordに設定されているItem(Data)数ループを発生させる。
    protected int
    loopInRecordSub(jp.ne.mki.wedge.run.interfaces.DataInterface inItem, int index)
    loopInRecord()から呼び出されるメソッドです。
    protected int
    outRecordに設定されているItem(Data)数ループを発生させる。
    protected int
    loopOutRecordSub(jp.ne.mki.wedge.run.interfaces.DataInterface outItem, int index)
    loopOutRecord()から呼び出されるメソッドです。
    void
    setControlRecord(jp.ne.mki.wedge.run.interfaces.ControlRecordInterface controlRecord)
    コントロールレコードを設定する。
    void
    setEngineManager(jp.ne.mki.wedge.run.interfaces.EngineManagerInterface manager)
    実行しているエンジンのManagerを設定する
    void
    setErrorMessage(String errorMessage)
    エラーメッセージ設定
    void
    入力レコード必須エラー のメッセージを設定します。
    void
    出力レコード必須エラー のメッセージを設定します。
    void
    パラメータが数値でなかったとき のメッセージを設定します。
    void
    setExecuteType(int type)
    このロジッククラスを実行している場所を設定します。
    protected void
    ロジッククラス内にてExceptionが発生時の処理
    ロジッククラスの詳細情報を追加したメッセージを、ログ出力(ダイアログ表示)を行います。
    void
    IDを設定
    void
    setInRecord(jp.ne.mki.wedge.common.library.HashVector<String,jp.ne.mki.wedge.run.interfaces.DataInterface> inRecord)
    入力レコードを設定
    void
    setLogicalName(String logicalName)
    論理名称を設定
    void
    setLogicClassDelegate(jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate logicClassDelegate)
    ロジッククラス用実行エンジンの委譲クラスを設定する
    void
    推奨されていません。
    getControlRecord().setOutputHtml() を使用してください。
    void
    setOutRecord(jp.ne.mki.wedge.common.library.HashVector<String,jp.ne.mki.wedge.run.interfaces.DataInterface> outRecord)
    出力レコードを設定
    void
    setPhysicalName(String physicalName)
    物理名称を設定
    void
    各エンジンから任意の情報を設定する。
    void
    setRuleParameter(String ruleParameter)
    ロジッククラスパラメータを設定
    void
    setRuleType(int type)
    RuleTypeを設定する
    void
    推奨されていません。
    getControlRecord().setServerParameter() を使用してください。
    void
    setUserConstant(jp.ne.mki.wedge.run.library.UserConstant userConstant)
    ユーザ定数オブジェクトを設定する
    void
    エラーダイアログの表示
    void
    エラーダイアログの表示
    メッセージの前にロジッククラスの名称を追加します。
    void
    終了処理 実行エンジンにてCallされる
    void
    エラーログ出力
    void
    エラーログ出力
    final void
    writeLog(String message)
    推奨されていません。
    writeTraceLogを使用する、もしくは その他のlogメソッドをを使用してください。
    final void
    writeLog(String message, Throwable th)
    推奨されていません。
    writeErrorLogを使用する、もしくは その他のlogメソッドをを使用してください。
    void
    writeLog(Level level, String message, Throwable th)
    エラーログを出力 エラーレベルを指定して出力します。
    void
    トレースログ出力

    クラスから継承されたメソッド 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

    インタフェースから継承されたメソッド jp.ne.mki.wedge.run.interfaces.RuleEngineInterface

    getLogicClassType
  • フィールド詳細

    • executeType

      protected int executeType
      実行時のロジッククラスタイプ :実行時にエンジンにて設定
    • ruleType

      protected int ruleType
      実行可能なロジッククラスタイプ :初期値は両方で実行可。
    • id

      protected String id
      ロジッククラスのID
    • physicalName

      protected String physicalName
      ロジッククラスの物理名
    • logicalName

      protected String logicalName
      ロジッククラスの論理名
    • controlRecord

      protected jp.ne.mki.wedge.run.interfaces.ControlRecordInterface controlRecord
      コントロールレコード
    • inputRecord

      protected jp.ne.mki.wedge.common.library.HashVector<String,jp.ne.mki.wedge.run.interfaces.DataInterface> inputRecord
      入力レコード
    • outputRecord

      protected jp.ne.mki.wedge.common.library.HashVector<String,jp.ne.mki.wedge.run.interfaces.DataInterface> outputRecord
      出力レコード
    • ruleParameter

      protected String ruleParameter
      ロジッククラスパラメータ
    • serverParameter

      protected String serverParameter
      実行時サーバーパラメータ
    • errorMessage

      protected String errorMessage
      エラーメッセージ
    • userConstant

      protected jp.ne.mki.wedge.run.library.UserConstant userConstant
      User定数
    • engineManager

      protected jp.ne.mki.wedge.run.interfaces.EngineManagerInterface engineManager
      実行エンジンのManager
    • logicClassDelegate

      protected jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate logicClassDelegate
      ロジッククラス用エンジン委譲クラス
  • コンストラクタの詳細

    • AbstractBase

      public AbstractBase()
  • メソッドの詳細

    • executeRule

      public int executeRule() throws Throwable
      ロジッククラス実行 実行エンジンにてCall getIOParameter(),execute(),exit()の順番でメソッドが実行される。
      定義:
      executeRule インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      戻り値:
      int
      例外:
      Throwable
    • checkDelegate

      protected void checkDelegate()
      Delegateクラスのチェック
      Delegateが設定されていないときには、実行場所によりDelegateを判断し 設定します。
      導入されたバージョン:
      ver1.3.0
    • dispose

      public void dispose() throws Throwable
      オブジェクトを破棄 実行エンジンにてオブジェクトを破棄時に実行される。 登録していたListenerの削除などを行う ロジッククラス作成時、メソッドを上書きして使用すること。
      定義:
      dispose インタフェース内 CommonInterface
      例外:
      Throwable
    • setFatalError

      protected void setFatalError(Throwable th)
      ロジッククラス内にてExceptionが発生時の処理
      ロジッククラスの詳細情報を追加したメッセージを、ログ出力(ダイアログ表示)を行います。
      パラメータ:
      th -
    • terminate

      public void terminate()
      終了処理 実行エンジンにてCallされる
      定義:
      terminate インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
    • callDispose

      protected void callDispose()
    • isExecutable

      public boolean isExecutable()
      実行可能かどうかを判定します。
      ルールにて設定された ruleType と 現在実行している場所 executeType を 参照して、このルールが実行可能かどうかを判断します。
      定義:
      isExecutable インタフェース内 CommonInterface
      戻り値:
      boolean
    • getRuleTypeName

      public String getRuleTypeName(int ruleType)
      実行種別名称取得
      定義:
      getRuleTypeName インタフェース内 CommonInterface
      パラメータ:
      実行種別 -
      戻り値:
      String
    • getInRecord

      public jp.ne.mki.wedge.common.library.HashVector<String,jp.ne.mki.wedge.run.interfaces.DataInterface> getInRecord()
      InputRecord取得
      定義:
      getInRecord インタフェース内 CommonInterface
      定義:
      getInRecord インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      戻り値:
      HashVector
    • getInRecordList

      public List<jp.ne.mki.wedge.run.interfaces.DataInterface> getInRecordList()
      InputRecordのListを取得
      戻り値:
      導入されたバージョン:
      ver1.3.0
    • getInRecordCount

      public int getInRecordCount()
      InputRecordの数取得
      定義:
      getInRecordCount インタフェース内 CommonInterface
      戻り値:
      int
    • getOutRecord

      public jp.ne.mki.wedge.common.library.HashVector<String,jp.ne.mki.wedge.run.interfaces.DataInterface> getOutRecord()
      OutputRecord取得
      定義:
      getOutRecord インタフェース内 CommonInterface
      定義:
      getOutRecord インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      戻り値:
      HashVector
    • getOutRecordList

      public List<jp.ne.mki.wedge.run.interfaces.DataInterface> getOutRecordList()
      OutputRecordのListを取得
      戻り値:
      導入されたバージョン:
      ver1.3.0
    • getOutRecordCount

      public int getOutRecordCount()
      OutputRecordの行数取得
      定義:
      getOutRecordCount インタフェース内 CommonInterface
      戻り値:
      int
    • getInRecord

      public jp.ne.mki.wedge.run.interfaces.DataInterface getInRecord(int line)
      InputRecordのindexによる取得
      定義:
      getInRecord インタフェース内 CommonInterface
      定義:
      getInRecord インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      パラメータ:
      line -
      int - 行番号
      戻り値:
      DataInterface
    • getInRecord

      public jp.ne.mki.wedge.run.interfaces.DataInterface getInRecord(String key)
      InputRecordのKey(ID)による取得
      定義:
      getInRecord インタフェース内 CommonInterface
      パラメータ:
      String - キー
      戻り値:
      DataInterface
    • getOutRecord

      public jp.ne.mki.wedge.run.interfaces.DataInterface getOutRecord(int line)
      OutputRecordの取得
      定義:
      getOutRecord インタフェース内 CommonInterface
      定義:
      getOutRecord インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      パラメータ:
      line -
      int - 行番号
      戻り値:
      DataInterface
    • getOutRecord

      public jp.ne.mki.wedge.run.interfaces.DataInterface getOutRecord(String key)
      OutputRecordの取得
      定義:
      getOutRecord インタフェース内 CommonInterface
      パラメータ:
      String - キー(PHYSICAL_NAME)
      戻り値:
      DataInterface
    • showErrorDialogAddRuleName

      public void showErrorDialogAddRuleName(String message)
      エラーダイアログの表示
      メッセージの前にロジッククラスの名称を追加します。
      定義:
      showErrorDialogAddRuleName インタフェース内 CommonInterface
      パラメータ:
      String - 表示文字列
    • showErrorDialog

      public void showErrorDialog(String message)
      エラーダイアログの表示
      定義:
      showErrorDialog インタフェース内 CommonInterface
      パラメータ:
      String - 表示文字列
    • writeTraceLog

      public void writeTraceLog(String message)
      トレースログ出力
      定義:
      writeTraceLog インタフェース内 CommonInterface
      パラメータ:
      th - 例外オブジェクト
    • writeErrorLog

      public void writeErrorLog(String message)
      エラーログ出力
      定義:
      writeErrorLog インタフェース内 CommonInterface
      パラメータ:
      message -
    • writeErrorLog

      public void writeErrorLog(String message, Throwable th)
      エラーログ出力
      パラメータ:
      message -
    • writeLog

      public void writeLog(Level level, String message, Throwable th)
      エラーログを出力 エラーレベルを指定して出力します。
      パラメータ:
      level -
      message -
      th -
      導入されたバージョン:
      ver1.2.0
    • writeLog

      public final void writeLog(String message)
      推奨されていません。
      writeTraceLogを使用する、もしくは その他のlogメソッドをを使用してください。
      定義:
      writeLog インタフェース内 CommonInterface
    • writeLog

      public final void writeLog(String message, Throwable th)
      推奨されていません。
      writeErrorLogを使用する、もしくは その他のlogメソッドをを使用してください。
      定義:
      writeLog インタフェース内 CommonInterface
    • createErrorMessage

      public String createErrorMessage(String key, int ret)
      標準エラーメッセージ生成
      指定KeyのメッセージをRuleMessageから取得し、以下の情報を引数にマッピングした 文字列を返します。
      1. 任意指定エラーメッセージ
      2. クラス名称
      3. ロジッククラス論理名
      4. ロジッククラス物理名
      5. 入力引数カウント
      6. 出力引数カウント
      7. ロジッククラスパラメータ
      パラメータ:
      key - メッセージのKey
      ret - 戻り値
      戻り値:
      String 生成したメッセージ
    • getReturnString

      public String getReturnString(int ret)
      戻り値文字列取得
      定義:
      getReturnString インタフェース内 CommonInterface
      定義:
      getReturnString インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      パラメータ:
      ret - 戻り値
      戻り値:
      String
    • getRuleParameter

      public String getRuleParameter()
      ロジッククラスパラメータ取得
      定義:
      getRuleParameter インタフェース内 CommonInterface
      定義:
      getRuleParameter インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      戻り値:
      String ロジッククラスパラメータ
    • getRuleParameters

      public String[] getRuleParameters()
      ロジッククラスパラメータ取得 [;]でパラメータを区切り、配列で返す
      定義:
      getRuleParameters インタフェース内 CommonInterface
      戻り値:
      String[] ロジッククラスパラメータの配列
    • getRuleParameters

      public String[] getRuleParameters(char delimiter)
      ロジッククラスパラメータ取得 引数の文字列でパラメータを区切り、配列で返す
      パラメータ:
      delimiter - パラメータの区切文字列
      戻り値:
      String[] ロジッククラスパラメータの配列
    • getRuleParameters

      public String[] getRuleParameters(String delimiter)
      ロジッククラスパラメータ取得 引数の文字列でパラメータを区切り、配列で返す
      パラメータ:
      delimiter - パラメータの区切文字列
      戻り値:
      String[] ロジッククラスパラメータの配列
    • getId

      public String getId()
      ロジッククラスID取得
      定義:
      getId インタフェース内 CommonInterface
      定義:
      getId インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      戻り値:
      String ロジッククラスID
    • getPhysicalName

      public String getPhysicalName()
      ロジッククラス物理名称取得
      定義:
      getPhysicalName インタフェース内 CommonInterface
      定義:
      getPhysicalName インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      戻り値:
      String ロジッククラス物理名称
    • getLogicalName

      public String getLogicalName()
      ロジッククラス論理名称取得
      定義:
      getLogicalName インタフェース内 CommonInterface
      定義:
      getLogicalName インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      戻り値:
      String ロジッククラス論理名称
    • getExecuteType

      public int getExecuteType()
      実行種別
      定義:
      getExecuteType インタフェース内 CommonInterface
      定義:
      getExecuteType インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      戻り値:
      int
    • getConstantValue

      public String getConstantValue(String name)
      ユーザ定数を取得します。 Constants.wdgファイルにTEXT形式でデータを記述している場合は、 その値を返します。
      COLTEXT形式でデータを記述している場合は、 最初の一件目のデータを返します。
      Constants.wdg内にKEYが存在しない場合は、 nullを返します。
      パラメータ:
      name - Key名称
      戻り値:
      String 値
    • getConstantValueAsStringArray

      public String[] getConstantValueAsStringArray(String name)
      ユーザ定数をStringの配列形式で取得します。 Constants.wdgファイルにTEXT形式でデータを記述している場合は、 サイズが1のString配列を作成し、その中データを格納して返します。
      COLTEXT形式でデータを記述している場合は、 そのデータをそのまま返します。
      Constants.wdg内にKEYが存在しない場合は、 nullを返します。
      パラメータ:
      name - Key名称
      戻り値:
    • getConstantKeys

      public Set<String> getConstantKeys()
      ユーザ定数に設定されたキーの一覧を取得します。
      戻り値:
      ユーザ定数の一覧に格納されたKeyの一覧
    • setRuleType

      public void setRuleType(int type)

      RuleTypeを設定する

      このロジッククラスが、特定の実行エンジンのときのみ動作させる仕様の場合、 このRuleTypeに指定しておくことで、実行時にチェックをおこないます。
      定義:
      setRuleType インタフェース内 CommonInterface
      パラメータ:
      type - EXECUTE_BOTH|EXECUTE_CLIENT|EXECUTE_SERVER
    • getRuleType

      public int getRuleType()

      RuleTypeを取得する

      このロジッククラスの実行可能な実行エンジンの種類を返します。
      定義:
      getRuleType インタフェース内 CommonInterface
      定義:
      getRuleType インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      パラメータ:
      int - EXECUTE_BOTH|EXECUTE_CLIENT|EXECUTE_SERVER
      戻り値:
    • getControlRecord

      public jp.ne.mki.wedge.run.interfaces.ControlRecordInterface getControlRecord()
      ControlRecordの情報を取得する。
      戻り値:
      ControlRecordInterface
      導入されたバージョン:
      ver1.3.0
    • getClientId

      public String getClientId()
      推奨されていません。
      getControlRecord().getClientID() を使用してください。
      定義:
      getClientId インタフェース内 CommonInterface
    • getIpAddress_P_Index

      public String getIpAddress_P_Index()
      推奨されていません。
      getControlRecord().getIpAddress_P() を使用してください。
      定義:
      getIpAddress_P_Index インタフェース内 CommonInterface
    • getIpAddress_G_Index

      public String getIpAddress_G_Index()
      推奨されていません。
      getControlRecord().getIpAddress_G() を使用してください。
      定義:
      getIpAddress_G_Index インタフェース内 CommonInterface
    • getWebServerIpAddress

      public String getWebServerIpAddress()
      推奨されていません。
      getControlRecord().getWebServerIpAddress() を使用してください。
      定義:
      getWebServerIpAddress インタフェース内 CommonInterface
    • getProjectId

      public String getProjectId()
      推奨されていません。
      getControlRecord().getProjectId() を使用してください。
      定義:
      getProjectId インタフェース内 CommonInterface
    • getConnectionPoolId

      public String getConnectionPoolId()
      推奨されていません。
      getControlRecord().getConnectionPoolId() を使用してください。
      定義:
      getConnectionPoolId インタフェース内 CommonInterface
    • getConnectionId

      public String getConnectionId()
      推奨されていません。
      getControlRecord().getConnectionId() を使用してください。
      定義:
      getConnectionId インタフェース内 CommonInterface
    • getServerSubName

      public String getServerSubName()
      推奨されていません。
      getControlRecord().getServerSubName() を使用してください。
      定義:
      getServerSubName インタフェース内 CommonInterface
    • getServerSubRevision

      public String getServerSubRevision()
      推奨されていません。
      getControlRecord().getServerSubRevision() を使用してください。
      定義:
      getServerSubRevision インタフェース内 CommonInterface
    • getServerTran

      public String getServerTran()
      推奨されていません。
      getControlRecord().getServerTran() を使用してください。
      定義:
      getServerTran インタフェース内 CommonInterface
    • getServerStatus

      public String getServerStatus()
      推奨されていません。
      getControlRecord().getServerStatus() を使用してください。
      定義:
      getServerStatus インタフェース内 CommonInterface
    • getServerMessage

      public String getServerMessage()
      推奨されていません。
      getControlRecord().getServerMessage() を使用してください。
      定義:
      getServerMessage インタフェース内 CommonInterface
    • getExceptionMessage

      public String getExceptionMessage()
      推奨されていません。
      getControlRecord().getExceptionMessage() を使用してください。
      定義:
      getExceptionMessage インタフェース内 CommonInterface
    • getDbErrorCode

      public String getDbErrorCode()
      推奨されていません。
      getControlRecord().getDbErrorCode() を使用してください。
      定義:
      getDbErrorCode インタフェース内 CommonInterface
    • getDbStatus

      public String getDbStatus()
      推奨されていません。
      getControlRecord().getDbStatus() を使用してください。
      定義:
      getDbStatus インタフェース内 CommonInterface
    • getDbErrorMessage

      public String getDbErrorMessage()
      推奨されていません。
      getControlRecord().getDbErrorMessage() を使用してください。
      定義:
      getDbErrorMessage インタフェース内 CommonInterface
    • getUpdateTargetCount

      public String getUpdateTargetCount()
      推奨されていません。
      getControlRecord().getUpdateTargetCount() を使用してください。
      定義:
      getUpdateTargetCount インタフェース内 CommonInterface
    • getDbUpdatedRecordCount

      public String getDbUpdatedRecordCount()
      推奨されていません。
      getControlRecord().getDBUpdatedCount() を使用してください。
    • getDbAccessCount

      public String getDbAccessCount()
      推奨されていません。
      getControlRecord().getDbAccessCount() を使用してください。
      定義:
      getDbAccessCount インタフェース内 CommonInterface
    • getUpdateErrorLine

      public String getUpdateErrorLine()
      推奨されていません。
      getControlRecord().getUpdateErrorLine() を使用してください。
      定義:
      getUpdateErrorLine インタフェース内 CommonInterface
    • getPhysicalErrorName

      public String getPhysicalErrorName()
      推奨されていません。
      getControlRecord().getPhysicalErrorName() を使用してください。
      定義:
      getPhysicalErrorName インタフェース内 CommonInterface
    • getLogicalErrorName

      public String getLogicalErrorName()
      推奨されていません。
      getControlRecord().getLogicalErrorName() を使用してください。
      定義:
      getLogicalErrorName インタフェース内 CommonInterface
    • getClassErrorName

      public String getClassErrorName()
      推奨されていません。
      getControlRecord().getClassErrorName() を使用してください。
      定義:
      getClassErrorName インタフェース内 CommonInterface
    • getAppAccount

      public String getAppAccount()
      推奨されていません。
      getControlRecord().getAppAccount() を使用してください。
      定義:
      getAppAccount インタフェース内 CommonInterface
    • getAppPassword

      public String getAppPassword()
      推奨されていません。
      getControlRecord().getAppPassword() を使用してください。
      定義:
      getAppPassword インタフェース内 CommonInterface
    • getAppMenu

      public String getAppMenu()
      推奨されていません。
      getControlRecord().getAppMenu() を使用してください。
      定義:
      getAppMenu インタフェース内 CommonInterface
    • getAppAuthority

      public String getAppAuthority()
      推奨されていません。
      getControlRecord().getAppAuthority() を使用してください。
      定義:
      getAppAuthority インタフェース内 CommonInterface
    • getQueryStartLine

      public String getQueryStartLine()
      推奨されていません。
      getControlRecord().getQueryStartLine() を使用してください。
      定義:
      getQueryStartLine インタフェース内 CommonInterface
    • getQueryEndLine

      public String getQueryEndLine()
      推奨されていません。
      getControlRecord().getQueryEndLine() を使用してください。
      定義:
      getQueryEndLine インタフェース内 CommonInterface
    • getQueryPageCount

      public String getQueryPageCount()
      推奨されていません。
      getControlRecord().getQueryPageCount() を使用してください。
      定義:
      getQueryPageCount インタフェース内 CommonInterface
    • getQueryMaxCount

      public String getQueryMaxCount()
      推奨されていません。
      getControlRecord().getQueryMaxCount() を使用してください。
      定義:
      getQueryMaxCount インタフェース内 CommonInterface
    • getServerParameter

      public String getServerParameter()
      推奨されていません。
      getControlRecord().getServerParameter() を使用してください。
      定義:
      getServerParameter インタフェース内 CommonInterface
    • setServerParameter

      public void setServerParameter(String value)
      推奨されていません。
      getControlRecord().setServerParameter() を使用してください。
      定義:
      setServerParameter インタフェース内 CommonInterface
    • getOutputHtml

      public String getOutputHtml()
      推奨されていません。
      getControlRecord().getOutputHtml() を使用してください。
    • setOutputHtml

      public void setOutputHtml(String value)
      推奨されていません。
      getControlRecord().setOutputHtml() を使用してください。
    • loopOutRecord

      protected int loopOutRecord()
      outRecordに設定されているItem(Data)数ループを発生させる。

      loopOutRecord()はループのたびにloopOutRecordSub(DataInterface outItem,int index) を呼び出します。

    • getInputRecordIterator

      protected ListIterator<jp.ne.mki.wedge.run.interfaces.DataInterface> getInputRecordIterator()
      入力レコードのListIteratorを取得する
      戻り値:
      ListIterator
    • getOutputRecordIterator

      protected ListIterator<jp.ne.mki.wedge.run.interfaces.DataInterface> getOutputRecordIterator()
      出力レコードのListIteratorを取得する
      戻り値:
      ListIterator
    • loopOutRecordSub

      protected int loopOutRecordSub(jp.ne.mki.wedge.run.interfaces.DataInterface outItem, int index)
      loopOutRecord()から呼び出されるメソッドです。ユーザが任意に記述をします。
      パラメータ:
      outItem -
    • loopInRecord

      protected int loopInRecord()
      inRecordに設定されているItem(Data)数ループを発生させる。

      loopInRecord()はループのたびにloopInRecordSub(DataInterface inItem,int index) を呼び出します。

      戻り値:
      int
    • loopInRecordSub

      protected int loopInRecordSub(jp.ne.mki.wedge.run.interfaces.DataInterface inItem, int index)
      loopInRecord()から呼び出されるメソッドです。ユーザが任意に記述をします。
      パラメータ:
      index -
      intItem -
      戻り値:
      int 結果
    • loopInOutRecord

      protected int loopInOutRecord()
      inRecord、outRecordに設定されているItem(Data)数ループを発生させる。

      loopInOutRecord()はループのたびにloopInOutRecordSub (DataInterface inItem,DataInterface outItem,int index)を呼び出します。

      戻り値:
      int
    • loopInOutRecordSub

      protected int loopInOutRecordSub(jp.ne.mki.wedge.run.interfaces.DataInterface inItem, jp.ne.mki.wedge.run.interfaces.DataInterface outItem, int index)
      loopInOutRecord()から呼び出されるメソッドです。ユーザが任意に記述をします。
      パラメータ:
      inItem -
      outItem -
      index -
      戻り値:
      int
    • getErrorMessage

      public String getErrorMessage(String key, Object[] args)
      標準ロジッククラス用エラーメッセージ取得

      標準ロジッククラス用に設定されたメッセージリソースから、指定Key,引数の文字列を取得します。

      パラメータ:
      key - メッセージのKEY
      args - メッセージ生成時の引数
      戻り値:
      String 生成されたメッセージ
    • getErrorMessage

      public String getErrorMessage(String key, Object arg)
      標準ロジッククラス用エラーメッセージ取得

      標準ロジッククラス用に設定されたメッセージリソースから、指定Key,引数の文字列を取得します。

      パラメータ:
      key - メッセージのKEY
      arg - メッセージ生成時の引数
      戻り値:
      String 生成されたメッセージ
    • setErrorMessageMustInRecord

      public void setErrorMessageMustInRecord(int mustCount)
      入力レコード必須エラー のメッセージを設定します。

      必要な数の入力レコード設定が無かったときのエラー のメッセージを生成して設定を行います。

      パラメータ:
      mustCount - 必須であるデータ数
    • setErrorMessageMustOutRecord

      public void setErrorMessageMustOutRecord(int mustCount)
      出力レコード必須エラー のメッセージを設定します。

      必要な数の出力レコード設定が無かったときのエラー のメッセージを生成して設定を行います。

      パラメータ:
      mustCount - 必須であるデータ数
    • setErrorMessageMustParamIsNumber

      public void setErrorMessageMustParamIsNumber()
      パラメータが数値でなかったとき のメッセージを設定します。

      パラメータが数値前提のロジッククラスの場合で、設定が数値ではなかった場合のエラーメッセージを作成して設定を行います。

    • getEngineManager

      public jp.ne.mki.wedge.run.interfaces.EngineManagerInterface getEngineManager()
      実行エンジンManagerを取得する
      定義:
      getEngineManager インタフェース内 CommonInterface
      定義:
      getEngineManager インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      戻り値:
      導入されたバージョン:
      ver1.2
    • setInRecord

      public void setInRecord(jp.ne.mki.wedge.common.library.HashVector<String,jp.ne.mki.wedge.run.interfaces.DataInterface> inRecord)
      入力レコードを設定

      実行エンジンから設定されます。

      定義:
      setInRecord インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      パラメータ:
      inRecord -
    • setOutRecord

      public void setOutRecord(jp.ne.mki.wedge.common.library.HashVector<String,jp.ne.mki.wedge.run.interfaces.DataInterface> outRecord)
      出力レコードを設定

      実行エンジンから設定されます。

      定義:
      setOutRecord インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      パラメータ:
      outRecord -
    • setId

      public void setId(String id)
      IDを設定

      実行エンジンから設定されます。
      このIDは実行エンジンが保持しているユニークIDです。

      定義:
      setId インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      パラメータ:
      id - ID
      logicalName -
    • setPhysicalName

      public void setPhysicalName(String physicalName)
      物理名称を設定

      実行エンジンから設定されます。

      定義:
      setPhysicalName インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      パラメータ:
      physicalName - 物理名称
      logicalName -
    • setLogicalName

      public void setLogicalName(String logicalName)
      論理名称を設定

      実行エンジンから設定されます。

      定義:
      setLogicalName インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      パラメータ:
      logicalName -
    • setRuleParameter

      public void setRuleParameter(String ruleParameter)
      ロジッククラスパラメータを設定

      実行エンジンから設定されます。

      定義:
      setRuleParameter インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      パラメータ:
      ruleParameter -
    • setExecuteType

      public void setExecuteType(int type)
      このロジッククラスを実行している場所を設定します。

      実行エンジンから設定されます

      定義:
      setExecuteType インタフェース内 CommonInterface
      定義:
      setExecuteType インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      パラメータ:
      int - type "EXECUTE_" から始まる定数
    • setUserConstant

      public void setUserConstant(jp.ne.mki.wedge.run.library.UserConstant userConstant)
      ユーザ定数オブジェクトを設定する

      実行エンジンから設定されます

      定義:
      setUserConstant インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      パラメータ:
      userConstant -
    • setControlRecord

      public void setControlRecord(jp.ne.mki.wedge.run.interfaces.ControlRecordInterface controlRecord)
      コントロールレコードを設定する。

      実行エンジンから設定されます

      定義:
      setControlRecord インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      パラメータ:
      controlRecord -
    • setEngineManager

      public void setEngineManager(jp.ne.mki.wedge.run.interfaces.EngineManagerInterface manager)
      実行しているエンジンのManagerを設定する
      定義:
      setEngineManager インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      パラメータ:
      manager - 実行しているエンジンのManager
      導入されたバージョン:
      ver1.3.0
    • setPropertyFromEngine

      public void setPropertyFromEngine(String key, Object object)
      各エンジンから任意の情報を設定する。
      定義:
      setPropertyFromEngine インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      パラメータ:
      key -
      object -
    • getErrorMessage

      public String getErrorMessage()
      エラーメッセージ取得
      戻り値:
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
      エラーメッセージ設定
      パラメータ:
      errorMessage -
    • isJDK15

      public static boolean isJDK15()
      起動しているVMのバージョンが、1.5かをチェックします。

      VMのバージョンが1.5である場合は trueを、 そうで無い場合は falseを返します。

      戻り値:
      起動中のVMのバージョンが 1.5 であれば true
    • getRowSizeOfInRecord

      public int getRowSizeOfInRecord()
      入力レコードの 全アイテムを検索し、行サイズを返します。
      getRowSize(getInRecord()) と 同等の処理を行います。

      引数で与えるリスト返り値
      入力レコードがが0件の場合0
      入力レコードが全てTEXTアイテムの場合1
      入力レコードがCOLTEXTアイテムを含んでおり、全てのCOLTEXTアイテムの行数が一致する場合COLTEXTの行数
      入力レコードがCOLTEXTアイテムを含んでおり、全てのCOLTEXTアイテムの行数が一致しない場合RuntimeExceptionを返す
      戻り値:
      行サイズ
    • getRowSize

      public int getRowSize(List<jp.ne.mki.wedge.run.interfaces.DataInterface> itemRecord)

      引数で渡されたレコードの 全アイテムを検索し、行サイズを返します。

      引数で与えるリスト返り値
      itemListが0件の場合0
      itemListが全てTEXTアイテムの場合1
      itemListがCOLTEXTアイテムを含んでおり、全てのCOLTEXTアイテムの行数が一致する場合COLTEXTの行数
      itemListがCOLTEXTアイテムを含んでおり、全てのCOLTEXTアイテムの行数が一致しない場合RuntimeExceptionを返す
      パラメータ:
      itemRecord - 行番号を取得したいアイテムを格納したList
      戻り値:
      行サイズ
    • dataClearOfOutRecord

      public void dataClearOfOutRecord()
      出力アイテムのデータを全て削除します。

      dataClearOfRecord(getOutRecord()) と 同等の処理を行います。

      関連項目:
      • DataInterface.dataClear()
    • dataClearOfRecord

      public void dataClearOfRecord(List<jp.ne.mki.wedge.run.interfaces.DataInterface> itemRecord)
      引数で渡されたレコードの 全アイテムを全て削除します。
      パラメータ:
      itemRecord - 削除したいアイテムを格納したList
      関連項目:
      • DataInterface.dataClear()
    • logFatal

      public final void logFatal(String message)
      致命的なエラーに関するメッセージを出力します。

      エラーレベルは Level.SEVERE で出力します。

      定義:
      logFatal インタフェース内 CommonInterface
      パラメータ:
      message - メッセージ
      導入されたバージョン:
      ver1.2
    • logFatal

      public final void logFatal(String message, Throwable th)
      致命的なエラーに関するメッセージを出力します。

      エラーレベルは Level.SEVERE で出力します。

      定義:
      logFatal インタフェース内 CommonInterface
      パラメータ:
      message - メッセージ
      th - 例外オブジェクト
      導入されたバージョン:
      ver1.2
    • logError

      public final void logError(String message)
      エラーメッセージを出力します。

      エラーレベルは Level.ERROR で出力します。

      定義:
      logError インタフェース内 CommonInterface
      パラメータ:
      message - メッセージ
      導入されたバージョン:
      ver1.2
    • logError

      public final void logError(String message, Throwable th)
      エラーメッセージを出力します。

      エラーレベルは Level.ERROR で出力します。

      定義:
      logError インタフェース内 CommonInterface
      パラメータ:
      message - メッセージ
      th - 例外オブジェクト
    • logWarn

      public final void logWarn(String message)
      警告メッセージを出力します。

      エラーレベルは Level.WARNING で出力します。

      定義:
      logWarn インタフェース内 CommonInterface
      パラメータ:
      message - メッセージ
      導入されたバージョン:
      ver1.2
    • logWarn

      public final void logWarn(String message, Throwable th)
      警告メッセージを出力します。

      エラーレベルは Level.WARNING で出力します。

      定義:
      logWarn インタフェース内 CommonInterface
      パラメータ:
      message - メッセージ
      th - 例外オブジェクト
      導入されたバージョン:
      ver1.2
    • logInfo

      public final void logInfo(String message)
      情報メッセージを出力します。

      エラーレベルは Level.INFO で出力します。

      定義:
      logInfo インタフェース内 CommonInterface
      パラメータ:
      message - メッセージ
      導入されたバージョン:
      ver1.2
    • logDebug

      public final void logDebug(String message)
      デバッグの情報に関するメッセージを出力します。

      エラーレベルは Level.FINE で出力します。

      定義:
      logDebug インタフェース内 CommonInterface
      パラメータ:
      message - メッセージ
      導入されたバージョン:
      ver1.2
    • logTrace

      public final void logTrace(String message)
      詳細なデバッグ情報メッセージを出力します。

      エラーレベルは Level.FINER で出力します。

      定義:
      logTrace インタフェース内 CommonInterface
      パラメータ:
      message - メッセージ
      導入されたバージョン:
      ver1.2
    • log

      public final void log(LogRecord record)
      LogRecordのログ出力
      パラメータ:
      record -
      導入されたバージョン:
      ver1.2
    • getLogicClassDelegate

      public jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate getLogicClassDelegate()
      ロジッククラス用実行エンジンの委譲クラスを取得する
      定義:
      getLogicClassDelegate インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      戻り値:
      導入されたバージョン:
      ver1.3.0
    • setLogicClassDelegate

      public void setLogicClassDelegate(jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate logicClassDelegate)
      ロジッククラス用実行エンジンの委譲クラスを設定する
      定義:
      setLogicClassDelegate インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      パラメータ:
      logicClassDelegate -
      導入されたバージョン:
      ver1.3.0
    • createLogicLogRecord

      public LogRecord createLogicLogRecord(Level level, String message, Throwable th)
      LogicLogRecordを作成する
      定義:
      createLogicLogRecord インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      パラメータ:
      level -
      message -
      th -
      戻り値:
      導入されたバージョン:
      ver1.3.0
    • createLogicErrorLogRecord

      public LogRecord createLogicErrorLogRecord(Level level, int result, String message, String errorCode, Throwable th)
      LogicErrorLogRecordを作成する
      定義:
      createLogicErrorLogRecord インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      パラメータ:
      level -
      result -
      message -
      errorCode -
      th -
      戻り値:
      導入されたバージョン:
      ver1.3.0
    • createLogicExceptionLogRecord

      public LogRecord createLogicExceptionLogRecord(Level level, Throwable th, String errorCode)
      LogicExceptionLogRecordを作成する
      定義:
      createLogicExceptionLogRecord インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      パラメータ:
      level -
      th -
      errorCode -
      戻り値:
      導入されたバージョン:
      ver1.3.0