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

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

public abstract class AbstractBase
extends java.lang.Object
implements CommonInterface, RuleEngineInterface

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


バージョン:
1.0

フィールドの概要
protected  ControlRecordInterface controlRecord
          コントロールレコード
protected  EngineManagerInterface engineManager
          実行エンジンのManager
protected  java.lang.String errorMessage
          エラーメッセージ
protected  int executeType
          実行時のロジッククラスタイプ :実行時にエンジンにて設定
protected  java.lang.String id
          ロジッククラスのID
protected   inputRecord
          入力レコード
protected  java.lang.String logicalName
          ロジッククラスの論理名
protected  jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate logicClassDelegate
          ロジッククラス用エンジン委譲クラス
protected   outputRecord
          出力レコード
protected  java.lang.String physicalName
          ロジッククラスの物理名
protected  java.lang.String ruleParameter
          ロジッククラスパラメータ
protected  int ruleType
          実行可能なロジッククラスタイプ :初期値は両方で実行可。
protected  java.lang.String serverParameter
          実行時サーバーパラメータ
protected  jp.ne.mki.wedge.run.library.UserConstant userConstant
          User定数
 
インタフェース 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
 
コンストラクタの概要
AbstractBase()
           
 
メソッドの概要
protected  void callDispose()
           
protected  void checkDelegate()
          Delegateクラスのチェック
Delegateが設定されていないときには、実行場所によりDelegateを判断し 設定します。
 java.lang.String createErrorMessage(java.lang.String key, int ret)
          標準エラーメッセージ生成
指定KeyのメッセージをRuleMessageから取得し、以下の情報を引数にマッピングした 文字列を返します。
 java.util.logging.LogRecord createLogicErrorLogRecord(java.util.logging.Level level, int result, java.lang.String message, java.lang.String errorCode, java.lang.Throwable th)
          LogicErrorLogRecordを作成する
 java.util.logging.LogRecord createLogicExceptionLogRecord(java.util.logging.Level level, java.lang.Throwable th, java.lang.String errorCode)
          LogicExceptionLogRecordを作成する
 java.util.logging.LogRecord createLogicLogRecord(java.util.logging.Level level, java.lang.String message, java.lang.Throwable th)
          LogicLogRecordを作成する
 void dataClearOfOutRecord()
          出力アイテムのデータを全て削除します。
 void dataClearOfRecord(java.util.List<DataInterface> itemRecord)
          引数で渡されたレコードの 全アイテムを全て削除します。
 void dispose()
          オブジェクトを破棄 実行エンジンにてオブジェクトを破棄時に実行される。
 int executeRule()
          ロジッククラス実行 実行エンジンにてCall getIOParameter(),execute(),exit()の順番でメソッドが実行される。
 java.lang.String getAppAccount()
          推奨されていません。 getControlRecord().getAppAccount() を使用してください。
 java.lang.String getAppAuthority()
          推奨されていません。 getControlRecord().getAppAuthority() を使用してください。
 java.lang.String getAppMenu()
          推奨されていません。 getControlRecord().getAppMenu() を使用してください。
 java.lang.String getAppPassword()
          推奨されていません。 getControlRecord().getAppPassword() を使用してください。
 java.lang.String getClassErrorName()
          推奨されていません。 getControlRecord().getClassErrorName() を使用してください。
 java.lang.String getClientId()
          推奨されていません。 getControlRecord().getClientID() を使用してください。
 java.lang.String getConnectionId()
          推奨されていません。 getControlRecord().getConnectionId() を使用してください。
 java.lang.String getConnectionPoolId()
          推奨されていません。 getControlRecord().getConnectionPoolId() を使用してください。
 java.util.Set<java.lang.String> getConstantKeys()
          ユーザ定数に設定されたキーの一覧を取得します。
 java.lang.String getConstantValue(java.lang.String name)
          ユーザ定数を取得します。
 java.lang.String[] getConstantValueAsStringArray(java.lang.String name)
          ユーザ定数をStringの配列形式で取得します。
 ControlRecordInterface getControlRecord()
          ControlRecordの情報を取得する。
 java.lang.String getDbAccessCount()
          推奨されていません。 getControlRecord().getDbAccessCount() を使用してください。
 java.lang.String getDbErrorCode()
          推奨されていません。 getControlRecord().getDbErrorCode() を使用してください。
 java.lang.String getDbErrorMessage()
          推奨されていません。 getControlRecord().getDbErrorMessage() を使用してください。
 java.lang.String getDbStatus()
          推奨されていません。 getControlRecord().getDbStatus() を使用してください。
 java.lang.String getDbUpdatedRecordCount()
          推奨されていません。 getControlRecord().getDBUpdatedCount() を使用してください。
 EngineManagerInterface getEngineManager()
          実行エンジンManagerを取得する
 java.lang.String getErrorMessage()
          エラーメッセージ取得
 java.lang.String getErrorMessage(java.lang.String key, java.lang.Object arg)
          標準ロジッククラス用エラーメッセージ取得 標準ロジッククラス用に設定されたメッセージリソースから、指定Key,引数の文字列を取得します。
 java.lang.String getErrorMessage(java.lang.String key, java.lang.Object[] args)
          標準ロジッククラス用エラーメッセージ取得 標準ロジッククラス用に設定されたメッセージリソースから、指定Key,引数の文字列を取得します。
 java.lang.String getExceptionMessage()
          推奨されていません。 getControlRecord().getExceptionMessage() を使用してください。
 int getExecuteType()
          実行種別
 java.lang.String getId()
          ロジッククラスID取得
protected  java.util.ListIterator<DataInterface> getInputRecordIterator()
          入力レコードのListIteratorを取得する
  getInRecord()
          InputRecord取得
 DataInterface getInRecord(int line)
          InputRecordのindexによる取得
 DataInterface getInRecord(java.lang.String key)
          InputRecordのKey(ID)による取得
 int getInRecordCount()
          InputRecordの数取得
 java.util.List<DataInterface> getInRecordList()
          InputRecordのListを取得
 java.lang.String getIpAddress_G_Index()
          推奨されていません。 getControlRecord().getIpAddress_G() を使用してください。
 java.lang.String getIpAddress_P_Index()
          推奨されていません。 getControlRecord().getIpAddress_P() を使用してください。
 java.lang.String getLogicalErrorName()
          推奨されていません。 getControlRecord().getLogicalErrorName() を使用してください。
 java.lang.String getLogicalName()
          ロジッククラス論理名称取得
 jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate getLogicClassDelegate()
          ロジッククラス用実行エンジンの委譲クラスを取得する
 java.lang.String getOutputHtml()
          推奨されていません。 getControlRecord().getOutputHtml() を使用してください。
protected  java.util.ListIterator<DataInterface> getOutputRecordIterator()
          出力レコードのListIteratorを取得する
  getOutRecord()
          OutputRecord取得
 DataInterface getOutRecord(int line)
          OutputRecordの取得
 DataInterface getOutRecord(java.lang.String key)
          OutputRecordの取得
 int getOutRecordCount()
          OutputRecordの行数取得
 java.util.List<DataInterface> getOutRecordList()
          OutputRecordのListを取得
 java.lang.String getPhysicalErrorName()
          推奨されていません。 getControlRecord().getPhysicalErrorName() を使用してください。
 java.lang.String getPhysicalName()
          ロジッククラス物理名称取得
 java.lang.String getProjectId()
          推奨されていません。 getControlRecord().getProjectId() を使用してください。
 java.lang.String getQueryEndLine()
          推奨されていません。 getControlRecord().getQueryEndLine() を使用してください。
 java.lang.String getQueryMaxCount()
          推奨されていません。 getControlRecord().getQueryMaxCount() を使用してください。
 java.lang.String getQueryPageCount()
          推奨されていません。 getControlRecord().getQueryPageCount() を使用してください。
 java.lang.String getQueryStartLine()
          推奨されていません。 getControlRecord().getQueryStartLine() を使用してください。
 java.lang.String getReturnString(int ret)
          戻り値文字列取得
 int getRowSize(java.util.List<DataInterface> itemRecord)
          引数で渡されたレコードの 全アイテムを検索し、行サイズを返します。
 int getRowSizeOfInRecord()
          入力レコードの 全アイテムを検索し、行サイズを返します。
 java.lang.String getRuleParameter()
          ロジッククラスパラメータ取得
 java.lang.String[] getRuleParameters()
          ロジッククラスパラメータ取得 [;]でパラメータを区切り、配列で返す
 java.lang.String[] getRuleParameters(char delimiter)
          ロジッククラスパラメータ取得 引数の文字列でパラメータを区切り、配列で返す
 java.lang.String[] getRuleParameters(java.lang.String delimiter)
          ロジッククラスパラメータ取得 引数の文字列でパラメータを区切り、配列で返す
 int getRuleType()
          RuleTypeを取得する このロジッククラスの実行可能な実行エンジンの種類を返します。
 java.lang.String getRuleTypeName(int ruleType)
          実行種別名称取得
 java.lang.String getServerMessage()
          推奨されていません。 getControlRecord().getServerMessage() を使用してください。
 java.lang.String getServerParameter()
          推奨されていません。 getControlRecord().getServerParameter() を使用してください。
 java.lang.String getServerStatus()
          推奨されていません。 getControlRecord().getServerStatus() を使用してください。
 java.lang.String getServerSubName()
          推奨されていません。 getControlRecord().getServerSubName() を使用してください。
 java.lang.String getServerSubRevision()
          推奨されていません。 getControlRecord().getServerSubRevision() を使用してください。
 java.lang.String getServerTran()
          推奨されていません。 getControlRecord().getServerTran() を使用してください。
 java.lang.String getUpdateErrorLine()
          推奨されていません。 getControlRecord().getUpdateErrorLine() を使用してください。
 java.lang.String getUpdateTargetCount()
          推奨されていません。 getControlRecord().getUpdateTargetCount() を使用してください。
 java.lang.String getWebServerIpAddress()
          推奨されていません。 getControlRecord().getWebServerIpAddress() を使用してください。
 boolean isExecutable()
          実行可能かどうかを判定します。
static boolean isJDK15()
          起動しているVMのバージョンが、1.5かをチェックします。
 void log(java.util.logging.LogRecord record)
          LogRecordのログ出力
 void logDebug(java.lang.String message)
          デバッグの情報に関するメッセージを出力します。
 void logError(java.lang.String message)
          エラーメッセージを出力します。
 void logError(java.lang.String message, java.lang.Throwable th)
          エラーメッセージを出力します。
 void logFatal(java.lang.String message)
          致命的なエラーに関するメッセージを出力します。
 void logFatal(java.lang.String message, java.lang.Throwable th)
          致命的なエラーに関するメッセージを出力します。
 void logInfo(java.lang.String message)
          情報メッセージを出力します。
 void logTrace(java.lang.String message)
          詳細なデバッグ情報メッセージを出力します。
 void logWarn(java.lang.String message)
          警告メッセージを出力します。
 void logWarn(java.lang.String message, java.lang.Throwable th)
          警告メッセージを出力します。
protected  int loopInOutRecord()
          inRecord、outRecordに設定されているItem(Data)数ループを発生させる。
protected  int loopInOutRecordSub(DataInterface inItem, DataInterface outItem, int index)
          loopInOutRecord()から呼び出されるメソッドです。
protected  int loopInRecord()
          inRecordに設定されているItem(Data)数ループを発生させる。
protected  int loopInRecordSub(DataInterface inItem, int index)
          loopInRecord()から呼び出されるメソッドです。
protected  int loopOutRecord()
          outRecordに設定されているItem(Data)数ループを発生させる。
protected  int loopOutRecordSub(DataInterface outItem, int index)
          loopOutRecord()から呼び出されるメソッドです。
 void setControlRecord(ControlRecordInterface controlRecord)
          コントロールレコードを設定する。
 void setEngineManager(EngineManagerInterface manager)
          実行しているエンジンのManagerを設定する
 void setErrorMessage(java.lang.String errorMessage)
          エラーメッセージ設定
 void setErrorMessageMustInRecord(int mustCount)
          入力レコード必須エラー のメッセージを設定します。
 void setErrorMessageMustOutRecord(int mustCount)
          出力レコード必須エラー のメッセージを設定します。
 void setErrorMessageMustParamIsNumber()
          パラメータが数値でなかったとき のメッセージを設定します。
 void setExecuteType(int type)
          このロジッククラスを実行している場所を設定します。
protected  void setFatalError(java.lang.Throwable th)
          ロジッククラス内にてExceptionが発生時の処理
ロジッククラスの詳細情報を追加したメッセージを、ログ出力(ダイアログ表示)を行います。
 void setId(java.lang.String id)
          IDを設定 実行エンジンから設定されます。
 void setInRecord( inRecord)
          入力レコードを設定 実行エンジンから設定されます。
 void setLogicalName(java.lang.String logicalName)
          論理名称を設定 実行エンジンから設定されます。
 void setLogicClassDelegate(jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate logicClassDelegate)
          ロジッククラス用実行エンジンの委譲クラスを設定する
 void setOutputHtml(java.lang.String value)
          推奨されていません。 getControlRecord().setOutputHtml() を使用してください。
 void setOutRecord( outRecord)
          出力レコードを設定 実行エンジンから設定されます。
 void setPhysicalName(java.lang.String physicalName)
          物理名称を設定 実行エンジンから設定されます。
 void setPropertyFromEngine(java.lang.String key, java.lang.Object object)
          各エンジンから任意の情報を設定する。
 void setRuleParameter(java.lang.String ruleParameter)
          ロジッククラスパラメータを設定 実行エンジンから設定されます。
 void setRuleType(int type)
          RuleTypeを設定する このロジッククラスが、特定の実行エンジンのときのみ動作させる仕様の場合、 このRuleTypeに指定しておくことで、実行時にチェックをおこないます。
 void setServerParameter(java.lang.String value)
          推奨されていません。 getControlRecord().setServerParameter() を使用してください。
 void setUserConstant(jp.ne.mki.wedge.run.library.UserConstant userConstant)
          ユーザ定数オブジェクトを設定する 実行エンジンから設定されます
 void showErrorDialog(java.lang.String message)
          エラーダイアログの表示
 void showErrorDialogAddRuleName(java.lang.String message)
          エラーダイアログの表示
メッセージの前にロジッククラスの名称を追加します。
 void terminate()
          終了処理 実行エンジンにてCallされる
 void writeErrorLog(java.lang.String message)
          エラーログ出力
 void writeErrorLog(java.lang.String message, java.lang.Throwable th)
          エラーログ出力
 void writeLog(java.util.logging.Level level, java.lang.String message, java.lang.Throwable th)
          エラーログを出力 エラーレベルを指定して出力します。
 void writeLog(java.lang.String message)
          推奨されていません。 writeTraceLogを使用する、もしくは その他のlogメソッドをを使用してください。
 void writeLog(java.lang.String message, java.lang.Throwable th)
          推奨されていません。 writeErrorLogを使用する、もしくは その他のlogメソッドをを使用してください。
 void writeTraceLog(java.lang.String message)
          トレースログ出力
 
クラス 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 java.lang.String id
ロジッククラスのID


physicalName

protected java.lang.String physicalName
ロジッククラスの物理名


logicalName

protected java.lang.String logicalName
ロジッククラスの論理名


controlRecord

protected ControlRecordInterface controlRecord
コントロールレコード


inputRecord

protected  inputRecord
入力レコード


outputRecord

protected  outputRecord
出力レコード


ruleParameter

protected java.lang.String ruleParameter
ロジッククラスパラメータ


serverParameter

protected java.lang.String serverParameter
実行時サーバーパラメータ


errorMessage

protected java.lang.String errorMessage
エラーメッセージ


userConstant

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


engineManager

protected EngineManagerInterface engineManager
実行エンジンのManager


logicClassDelegate

protected jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate logicClassDelegate
ロジッククラス用エンジン委譲クラス

コンストラクタの詳細

AbstractBase

public AbstractBase()
メソッドの詳細

executeRule

public int executeRule()
                throws java.lang.Throwable
ロジッククラス実行 実行エンジンにてCall getIOParameter(),execute(),exit()の順番でメソッドが実行される。

定義:
インタフェース RuleEngineInterface 内の executeRule
戻り値:
int
例外:
java.lang.Throwable

checkDelegate

protected void checkDelegate()
Delegateクラスのチェック
Delegateが設定されていないときには、実行場所によりDelegateを判断し 設定します。

導入されたバージョン:
ver1.3.0

dispose

public void dispose()
             throws java.lang.Throwable
オブジェクトを破棄 実行エンジンにてオブジェクトを破棄時に実行される。 登録していたListenerの削除などを行う ロジッククラス作成時、メソッドを上書きして使用すること。

定義:
インタフェース CommonInterface 内の dispose
例外:
java.lang.Throwable

setFatalError

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

パラメータ:
th -

terminate

public void terminate()
終了処理 実行エンジンにてCallされる

定義:
インタフェース RuleEngineInterface 内の terminate

callDispose

protected void callDispose()

isExecutable

public boolean isExecutable()
実行可能かどうかを判定します。
ルールにて設定された ruleType と 現在実行している場所 executeType を 参照して、このルールが実行可能かどうかを判断します。

定義:
インタフェース CommonInterface 内の isExecutable
戻り値:
boolean

getRuleTypeName

public java.lang.String getRuleTypeName(int ruleType)
実行種別名称取得

定義:
インタフェース CommonInterface 内の getRuleTypeName
パラメータ:
実行種別 -
戻り値:
String

getInRecord

public  getInRecord()
InputRecord取得

定義:
インタフェース CommonInterface 内の getInRecord
定義:
インタフェース RuleEngineInterface 内の getInRecord
戻り値:
HashVector

getInRecordList

public java.util.List<DataInterface> getInRecordList()
InputRecordのListを取得

戻り値:
導入されたバージョン:
ver1.3.0

getInRecordCount

public int getInRecordCount()
InputRecordの数取得

定義:
インタフェース CommonInterface 内の getInRecordCount
戻り値:
int

getOutRecord

public  getOutRecord()
OutputRecord取得

定義:
インタフェース CommonInterface 内の getOutRecord
定義:
インタフェース RuleEngineInterface 内の getOutRecord
戻り値:
HashVector

getOutRecordList

public java.util.List<DataInterface> getOutRecordList()
OutputRecordのListを取得

戻り値:
導入されたバージョン:
ver1.3.0

getOutRecordCount

public int getOutRecordCount()
OutputRecordの行数取得

定義:
インタフェース CommonInterface 内の getOutRecordCount
戻り値:
int

getInRecord

public DataInterface getInRecord(int line)
InputRecordのindexによる取得

定義:
インタフェース CommonInterface 内の getInRecord
定義:
インタフェース RuleEngineInterface 内の getInRecord
パラメータ:
int - 行番号
戻り値:
DataInterface

getInRecord

public DataInterface getInRecord(java.lang.String key)
InputRecordのKey(ID)による取得

定義:
インタフェース CommonInterface 内の getInRecord
パラメータ:
String - キー
戻り値:
DataInterface

getOutRecord

public DataInterface getOutRecord(int line)
OutputRecordの取得

定義:
インタフェース CommonInterface 内の getOutRecord
定義:
インタフェース RuleEngineInterface 内の getOutRecord
パラメータ:
int - 行番号
戻り値:
DataInterface

getOutRecord

public DataInterface getOutRecord(java.lang.String key)
OutputRecordの取得

定義:
インタフェース CommonInterface 内の getOutRecord
パラメータ:
String - キー(PHYSICAL_NAME)
戻り値:
DataInterface

showErrorDialogAddRuleName

public void showErrorDialogAddRuleName(java.lang.String message)
エラーダイアログの表示
メッセージの前にロジッククラスの名称を追加します。

定義:
インタフェース CommonInterface 内の showErrorDialogAddRuleName
パラメータ:
String - 表示文字列

showErrorDialog

public void showErrorDialog(java.lang.String message)
エラーダイアログの表示

定義:
インタフェース CommonInterface 内の showErrorDialog
パラメータ:
String - 表示文字列

writeTraceLog

public void writeTraceLog(java.lang.String message)
トレースログ出力

定義:
インタフェース CommonInterface 内の writeTraceLog
パラメータ:
th - 例外オブジェクト

writeErrorLog

public void writeErrorLog(java.lang.String message)
エラーログ出力

定義:
インタフェース CommonInterface 内の writeErrorLog
パラメータ:
message -

writeErrorLog

public void writeErrorLog(java.lang.String message,
                          java.lang.Throwable th)
エラーログ出力

パラメータ:
message -

writeLog

public void writeLog(java.util.logging.Level level,
                     java.lang.String message,
                     java.lang.Throwable th)
エラーログを出力 エラーレベルを指定して出力します。

パラメータ:
level -
message -
th -
導入されたバージョン:
ver1.2.0

writeLog

public final void writeLog(java.lang.String message)
推奨されていません。 writeTraceLogを使用する、もしくは その他のlogメソッドをを使用してください。

定義:
インタフェース CommonInterface 内の writeLog

writeLog

public final void writeLog(java.lang.String message,
                           java.lang.Throwable th)
推奨されていません。 writeErrorLogを使用する、もしくは その他のlogメソッドをを使用してください。

定義:
インタフェース CommonInterface 内の writeLog

createErrorMessage

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

パラメータ:
key - メッセージのKey
ret - 戻り値
戻り値:
String 生成したメッセージ

getReturnString

public java.lang.String getReturnString(int ret)
戻り値文字列取得

定義:
インタフェース CommonInterface 内の getReturnString
定義:
インタフェース RuleEngineInterface 内の getReturnString
パラメータ:
ret - 戻り値
戻り値:
String

getRuleParameter

public java.lang.String getRuleParameter()
ロジッククラスパラメータ取得

定義:
インタフェース CommonInterface 内の getRuleParameter
定義:
インタフェース RuleEngineInterface 内の getRuleParameter
戻り値:
String ロジッククラスパラメータ

getRuleParameters

public java.lang.String[] getRuleParameters()
ロジッククラスパラメータ取得 [;]でパラメータを区切り、配列で返す

定義:
インタフェース CommonInterface 内の getRuleParameters
戻り値:
String[] ロジッククラスパラメータの配列

getRuleParameters

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

パラメータ:
delimiter - パラメータの区切文字列
戻り値:
String[] ロジッククラスパラメータの配列

getRuleParameters

public java.lang.String[] getRuleParameters(java.lang.String delimiter)
ロジッククラスパラメータ取得 引数の文字列でパラメータを区切り、配列で返す

パラメータ:
delimiter - パラメータの区切文字列
戻り値:
String[] ロジッククラスパラメータの配列

getId

public java.lang.String getId()
ロジッククラスID取得

定義:
インタフェース CommonInterface 内の getId
定義:
インタフェース RuleEngineInterface 内の getId
戻り値:
String ロジッククラスID

getPhysicalName

public java.lang.String getPhysicalName()
ロジッククラス物理名称取得

定義:
インタフェース CommonInterface 内の getPhysicalName
定義:
インタフェース RuleEngineInterface 内の getPhysicalName
戻り値:
String ロジッククラス物理名称

getLogicalName

public java.lang.String getLogicalName()
ロジッククラス論理名称取得

定義:
インタフェース CommonInterface 内の getLogicalName
定義:
インタフェース RuleEngineInterface 内の getLogicalName
戻り値:
String ロジッククラス論理名称

getExecuteType

public int getExecuteType()
実行種別

定義:
インタフェース CommonInterface 内の getExecuteType
定義:
インタフェース RuleEngineInterface 内の getExecuteType
戻り値:
int

getConstantValue

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

パラメータ:
name - Key名称
戻り値:
String 値

getConstantValueAsStringArray

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

パラメータ:
name - Key名称
戻り値:

getConstantKeys

public java.util.Set<java.lang.String> getConstantKeys()
ユーザ定数に設定されたキーの一覧を取得します。

戻り値:
ユーザ定数の一覧に格納されたKeyの一覧

setRuleType

public void setRuleType(int type)

RuleTypeを設定する

このロジッククラスが、特定の実行エンジンのときのみ動作させる仕様の場合、 このRuleTypeに指定しておくことで、実行時にチェックをおこないます。

定義:
インタフェース CommonInterface 内の setRuleType
パラメータ:
type - EXECUTE_BOTH|EXECUTE_CLIENT|EXECUTE_SERVER

getRuleType

public int getRuleType()

RuleTypeを取得する

このロジッククラスの実行可能な実行エンジンの種類を返します。

定義:
インタフェース CommonInterface 内の getRuleType
定義:
インタフェース RuleEngineInterface 内の getRuleType
パラメータ:
int - EXECUTE_BOTH|EXECUTE_CLIENT|EXECUTE_SERVER
戻り値:

getControlRecord

public ControlRecordInterface getControlRecord()
ControlRecordの情報を取得する。

戻り値:
ControlRecordInterface
導入されたバージョン:
ver1.3.0

getClientId

public java.lang.String getClientId()
推奨されていません。 getControlRecord().getClientID() を使用してください。

定義:
インタフェース CommonInterface 内の getClientId

getIpAddress_P_Index

public java.lang.String getIpAddress_P_Index()
推奨されていません。 getControlRecord().getIpAddress_P() を使用してください。

定義:
インタフェース CommonInterface 内の getIpAddress_P_Index

getIpAddress_G_Index

public java.lang.String getIpAddress_G_Index()
推奨されていません。 getControlRecord().getIpAddress_G() を使用してください。

定義:
インタフェース CommonInterface 内の getIpAddress_G_Index

getWebServerIpAddress

public java.lang.String getWebServerIpAddress()
推奨されていません。 getControlRecord().getWebServerIpAddress() を使用してください。

定義:
インタフェース CommonInterface 内の getWebServerIpAddress

getProjectId

public java.lang.String getProjectId()
推奨されていません。 getControlRecord().getProjectId() を使用してください。

定義:
インタフェース CommonInterface 内の getProjectId

getConnectionPoolId

public java.lang.String getConnectionPoolId()
推奨されていません。 getControlRecord().getConnectionPoolId() を使用してください。

定義:
インタフェース CommonInterface 内の getConnectionPoolId

getConnectionId

public java.lang.String getConnectionId()
推奨されていません。 getControlRecord().getConnectionId() を使用してください。

定義:
インタフェース CommonInterface 内の getConnectionId

getServerSubName

public java.lang.String getServerSubName()
推奨されていません。 getControlRecord().getServerSubName() を使用してください。

定義:
インタフェース CommonInterface 内の getServerSubName

getServerSubRevision

public java.lang.String getServerSubRevision()
推奨されていません。 getControlRecord().getServerSubRevision() を使用してください。

定義:
インタフェース CommonInterface 内の getServerSubRevision

getServerTran

public java.lang.String getServerTran()
推奨されていません。 getControlRecord().getServerTran() を使用してください。

定義:
インタフェース CommonInterface 内の getServerTran

getServerStatus

public java.lang.String getServerStatus()
推奨されていません。 getControlRecord().getServerStatus() を使用してください。

定義:
インタフェース CommonInterface 内の getServerStatus

getServerMessage

public java.lang.String getServerMessage()
推奨されていません。 getControlRecord().getServerMessage() を使用してください。

定義:
インタフェース CommonInterface 内の getServerMessage

getExceptionMessage

public java.lang.String getExceptionMessage()
推奨されていません。 getControlRecord().getExceptionMessage() を使用してください。

定義:
インタフェース CommonInterface 内の getExceptionMessage

getDbErrorCode

public java.lang.String getDbErrorCode()
推奨されていません。 getControlRecord().getDbErrorCode() を使用してください。

定義:
インタフェース CommonInterface 内の getDbErrorCode

getDbStatus

public java.lang.String getDbStatus()
推奨されていません。 getControlRecord().getDbStatus() を使用してください。

定義:
インタフェース CommonInterface 内の getDbStatus

getDbErrorMessage

public java.lang.String getDbErrorMessage()
推奨されていません。 getControlRecord().getDbErrorMessage() を使用してください。

定義:
インタフェース CommonInterface 内の getDbErrorMessage

getUpdateTargetCount

public java.lang.String getUpdateTargetCount()
推奨されていません。 getControlRecord().getUpdateTargetCount() を使用してください。

定義:
インタフェース CommonInterface 内の getUpdateTargetCount

getDbUpdatedRecordCount

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


getDbAccessCount

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

定義:
インタフェース CommonInterface 内の getDbAccessCount

getUpdateErrorLine

public java.lang.String getUpdateErrorLine()
推奨されていません。 getControlRecord().getUpdateErrorLine() を使用してください。

定義:
インタフェース CommonInterface 内の getUpdateErrorLine

getPhysicalErrorName

public java.lang.String getPhysicalErrorName()
推奨されていません。 getControlRecord().getPhysicalErrorName() を使用してください。

定義:
インタフェース CommonInterface 内の getPhysicalErrorName

getLogicalErrorName

public java.lang.String getLogicalErrorName()
推奨されていません。 getControlRecord().getLogicalErrorName() を使用してください。

定義:
インタフェース CommonInterface 内の getLogicalErrorName

getClassErrorName

public java.lang.String getClassErrorName()
推奨されていません。 getControlRecord().getClassErrorName() を使用してください。

定義:
インタフェース CommonInterface 内の getClassErrorName

getAppAccount

public java.lang.String getAppAccount()
推奨されていません。 getControlRecord().getAppAccount() を使用してください。

定義:
インタフェース CommonInterface 内の getAppAccount

getAppPassword

public java.lang.String getAppPassword()
推奨されていません。 getControlRecord().getAppPassword() を使用してください。

定義:
インタフェース CommonInterface 内の getAppPassword

getAppMenu

public java.lang.String getAppMenu()
推奨されていません。 getControlRecord().getAppMenu() を使用してください。

定義:
インタフェース CommonInterface 内の getAppMenu

getAppAuthority

public java.lang.String getAppAuthority()
推奨されていません。 getControlRecord().getAppAuthority() を使用してください。

定義:
インタフェース CommonInterface 内の getAppAuthority

getQueryStartLine

public java.lang.String getQueryStartLine()
推奨されていません。 getControlRecord().getQueryStartLine() を使用してください。

定義:
インタフェース CommonInterface 内の getQueryStartLine

getQueryEndLine

public java.lang.String getQueryEndLine()
推奨されていません。 getControlRecord().getQueryEndLine() を使用してください。

定義:
インタフェース CommonInterface 内の getQueryEndLine

getQueryPageCount

public java.lang.String getQueryPageCount()
推奨されていません。 getControlRecord().getQueryPageCount() を使用してください。

定義:
インタフェース CommonInterface 内の getQueryPageCount

getQueryMaxCount

public java.lang.String getQueryMaxCount()
推奨されていません。 getControlRecord().getQueryMaxCount() を使用してください。

定義:
インタフェース CommonInterface 内の getQueryMaxCount

getServerParameter

public java.lang.String getServerParameter()
推奨されていません。 getControlRecord().getServerParameter() を使用してください。

定義:
インタフェース CommonInterface 内の getServerParameter

setServerParameter

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

定義:
インタフェース CommonInterface 内の setServerParameter

getOutputHtml

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


setOutputHtml

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


loopOutRecord

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

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


getInputRecordIterator

protected java.util.ListIterator<DataInterface> getInputRecordIterator()
入力レコードのListIteratorを取得する

戻り値:
ListIterator

getOutputRecordIterator

protected java.util.ListIterator<DataInterface> getOutputRecordIterator()
出力レコードのListIteratorを取得する

戻り値:
ListIterator

loopOutRecordSub

protected int loopOutRecordSub(DataInterface outItem,
                               int index)
loopOutRecord()から呼び出されるメソッドです。ユーザが任意に記述をします。

パラメータ:
outItem -

loopInRecord

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

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

戻り値:
int

loopInRecordSub

protected int loopInRecordSub(DataInterface inItem,
                              int index)
loopInRecord()から呼び出されるメソッドです。ユーザが任意に記述をします。

パラメータ:
intItem -
index -
戻り値:
int 結果

loopInOutRecord

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

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

戻り値:
int

loopInOutRecordSub

protected int loopInOutRecordSub(DataInterface inItem,
                                 DataInterface outItem,
                                 int index)
loopInOutRecord()から呼び出されるメソッドです。ユーザが任意に記述をします。

パラメータ:
inItem -
outItem -
index -
戻り値:
int

getErrorMessage

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

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

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

getErrorMessage

public java.lang.String getErrorMessage(java.lang.String key,
                                        java.lang.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 EngineManagerInterface getEngineManager()
実行エンジンManagerを取得する

定義:
インタフェース CommonInterface 内の getEngineManager
定義:
インタフェース RuleEngineInterface 内の getEngineManager
戻り値:
導入されたバージョン:
ver1.2

setInRecord

public void setInRecord( inRecord)
入力レコードを設定

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

定義:
インタフェース RuleEngineInterface 内の setInRecord
パラメータ:
inRecord -

setOutRecord

public void setOutRecord( outRecord)
出力レコードを設定

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

定義:
インタフェース RuleEngineInterface 内の setOutRecord
パラメータ:
outRecord -

setId

public void setId(java.lang.String id)
IDを設定

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

定義:
インタフェース RuleEngineInterface 内の setId
パラメータ:
logicalName -

setPhysicalName

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

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

定義:
インタフェース RuleEngineInterface 内の setPhysicalName
パラメータ:
logicalName -

setLogicalName

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

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

定義:
インタフェース RuleEngineInterface 内の setLogicalName
パラメータ:
logicalName -

setRuleParameter

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

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

定義:
インタフェース RuleEngineInterface 内の setRuleParameter
パラメータ:
ruleParameter -

setExecuteType

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

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

定義:
インタフェース CommonInterface 内の setExecuteType
定義:
インタフェース RuleEngineInterface 内の setExecuteType
パラメータ:
int - type "EXECUTE_" から始まる定数

setUserConstant

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

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

定義:
インタフェース RuleEngineInterface 内の setUserConstant
パラメータ:
userConstant -

setControlRecord

public void setControlRecord(ControlRecordInterface controlRecord)
コントロールレコードを設定する。

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

定義:
インタフェース RuleEngineInterface 内の setControlRecord
パラメータ:
controlRecord -

setEngineManager

public void setEngineManager(EngineManagerInterface manager)
実行しているエンジンのManagerを設定する

定義:
インタフェース RuleEngineInterface 内の setEngineManager
パラメータ:
manager - 実行しているエンジンのManager
導入されたバージョン:
ver1.3.0

setPropertyFromEngine

public void setPropertyFromEngine(java.lang.String key,
                                  java.lang.Object object)
各エンジンから任意の情報を設定する。

定義:
インタフェース RuleEngineInterface 内の setPropertyFromEngine
パラメータ:
key -
object -

getErrorMessage

public java.lang.String getErrorMessage()
エラーメッセージ取得

戻り値:

setErrorMessage

public void setErrorMessage(java.lang.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(java.util.List<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(java.util.List<DataInterface> itemRecord)
引数で渡されたレコードの 全アイテムを全て削除します。

パラメータ:
itemRecord - 削除したいアイテムを格納したList
関連項目:
DataInterface.dataClear()

logFatal

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

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

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

logFatal

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

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

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

logError

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

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

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

logError

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

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

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

logWarn

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

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

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

logWarn

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

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

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

logInfo

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

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

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

logDebug

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

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

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

logTrace

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

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

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

log

public final void log(java.util.logging.LogRecord record)
LogRecordのログ出力

パラメータ:
record -
導入されたバージョン:
ver1.2

getLogicClassDelegate

public jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate getLogicClassDelegate()
ロジッククラス用実行エンジンの委譲クラスを取得する

定義:
インタフェース RuleEngineInterface 内の getLogicClassDelegate
戻り値:
導入されたバージョン:
ver1.3.0

setLogicClassDelegate

public void setLogicClassDelegate(jp.ne.mki.wedge.run.interfaces.ILogicClassDelegate logicClassDelegate)
ロジッククラス用実行エンジンの委譲クラスを設定する

定義:
インタフェース RuleEngineInterface 内の setLogicClassDelegate
パラメータ:
logicClassDelegate -
導入されたバージョン:
ver1.3.0

createLogicLogRecord

public java.util.logging.LogRecord createLogicLogRecord(java.util.logging.Level level,
                                                        java.lang.String message,
                                                        java.lang.Throwable th)
LogicLogRecordを作成する

定義:
インタフェース RuleEngineInterface 内の createLogicLogRecord
パラメータ:
level -
message -
th -
戻り値:
導入されたバージョン:
ver1.3.0

createLogicErrorLogRecord

public java.util.logging.LogRecord createLogicErrorLogRecord(java.util.logging.Level level,
                                                             int result,
                                                             java.lang.String message,
                                                             java.lang.String errorCode,
                                                             java.lang.Throwable th)
LogicErrorLogRecordを作成する

定義:
インタフェース RuleEngineInterface 内の createLogicErrorLogRecord
パラメータ:
level -
result -
message -
errorCode -
th -
戻り値:
導入されたバージョン:
ver1.3.0

createLogicExceptionLogRecord

public java.util.logging.LogRecord createLogicExceptionLogRecord(java.util.logging.Level level,
                                                                 java.lang.Throwable th,
                                                                 java.lang.String errorCode)
LogicExceptionLogRecordを作成する

定義:
インタフェース RuleEngineInterface 内の createLogicExceptionLogRecord
パラメータ:
level -
th -
errorCode -
戻り値:
導入されたバージョン:
ver1.3.0