Nautica Workflow

jp.co.argo21.nautica.workflow.dataaccess
インタフェース AppExecutionDAO

既知の実装クラスの一覧:
MySQLAppExecutionDAO

public interface AppExecutionDAO

アプリケーション実行テーブルに対するDAOインタフェース

導入されたバージョン:
Nautica Workflow 0.9
バージョン:
$Revision: 1.2 $

メソッドの概要
 java.util.List findByExecID(int execID)
          実行IDで、アプリケーション実行テーブルオブジェクトを取得する。
 AppExecutionBean findByPrimaryKey(java.lang.String appName, java.lang.String toolAgent, int execID)
          主キーで、アプリケーション実行テーブルオブジェクトを取得する。
 java.util.List findByStarterID(java.lang.String starterID)
          開始者IDで、アプリケーション実行テーブルオブジェクトを取得する。
 void insert(AppExecutionBean bean)
          アプリケーション実行テーブルにレコードを追加する。
 void updateState(java.lang.String appName, java.lang.String toolAgent, int execID, ApplicationState oldState, ApplicationState newState)
          実行状態を更新する
 void updateState(java.lang.String appName, java.lang.String toolAgent, int execID, ApplicationState oldState, ApplicationState newState, java.sql.Timestamp newDate)
          実行状態と終了日時を更新する
 

メソッドの詳細

findByPrimaryKey

public AppExecutionBean findByPrimaryKey(java.lang.String appName,
                                         java.lang.String toolAgent,
                                         int execID)
                                  throws java.sql.SQLException,
                                         DAOException
主キーで、アプリケーション実行テーブルオブジェクトを取得する。 アプリケーション実行テーブルの主キーである、 アプリケーション名、ツールエージェントのクラス名、実行IDで、 アプリケーション実行テーブルオブジェクトを取得する。

パラメータ:
appName - アプリケーション名
toolAgent - アプリケーションを起動したツールエージェントのクラス名
execID - ツールエージェントが発行した実行ID
戻り値:
アプリケーション実行テーブルオブジェクト
例外:
java.sql.SQLException - 任意のSQL例外
DAOException - DAO実行中に処理としてあげる場合がある例外

findByExecID

public java.util.List findByExecID(int execID)
                            throws java.sql.SQLException,
                                   DAOException
実行IDで、アプリケーション実行テーブルオブジェクトを取得する。 主キーの一部である、実行IDでアプリケーション実行テーブルオブジェクトのリストを 取得する

パラメータ:
execID - 実行ID
戻り値:
アプリケーション実行テーブルオブジェクトのリスト
例外:
java.sql.SQLException - 任意のSQL例外
DAOException - DAO実行中に処理としてあげる場合がある例外

findByStarterID

public java.util.List findByStarterID(java.lang.String starterID)
                               throws java.sql.SQLException,
                                      DAOException
開始者IDで、アプリケーション実行テーブルオブジェクトを取得する。 開始者IDとは、対応する作業項目IDである。

パラメータ:
starterID - 開始者ID
戻り値:
アプリケーション実行テーブルオブジェクトのリスト
例外:
java.sql.SQLException - 任意のSQL例外
DAOException - DAO実行中に処理としてあげる場合がある例外

insert

public void insert(AppExecutionBean bean)
            throws java.sql.SQLException,
                   DAOException
アプリケーション実行テーブルにレコードを追加する。

パラメータ:
bean - アプリケーション実行テーブルオブジェクト
例外:
java.sql.SQLException - 任意のSQL例外
DAOException - DAO実行中に処理としてあげる場合がある例外

updateState

public void updateState(java.lang.String appName,
                        java.lang.String toolAgent,
                        int execID,
                        ApplicationState oldState,
                        ApplicationState newState)
                 throws java.sql.SQLException,
                        DAOException
実行状態を更新する

パラメータ:
appName - アプリケーション名
toolAgent - ツールエージェントのクラス名
execID - 実行ID
oldState - 旧実行状態
newState - 新実行状態
例外:
java.sql.SQLException - 任意のSQL例外
DAOException - DAO実行中に処理としてあげる場合がある例外

updateState

public void updateState(java.lang.String appName,
                        java.lang.String toolAgent,
                        int execID,
                        ApplicationState oldState,
                        ApplicationState newState,
                        java.sql.Timestamp newDate)
                 throws java.sql.SQLException,
                        DAOException
実行状態と終了日時を更新する

パラメータ:
appName - アプリケーション名
toolAgent - ツールエージェントのクラス名
execID - 実行ID
oldState - 旧実行状態
newState - 新実行状態
newDate - 新終了日時
例外:
java.sql.SQLException - 任意のSQL例外
DAOException - DAO実行中に処理としてあげる場合がある例外

株式会社アルゴ21


Copyright 2005 株式会社アルゴ21