nga.sql
インタフェース Caller


public interface Caller

ストアドプロシージャ・ストアドファンクション実行用 SQL オブジェクト。


メソッドの概要
 int execute()
          指定した SQL 文を実行する。
 int[] execute(List parameterObjectList)
          指定した SQL 文を一括実行する。
 int execute(Object parameterObject)
          指定した SQL 文を実行する。
 boolean isDebugMode()
          現在デバッグモードかどうかを調べる。
 void setDebugMode(boolean mode)
          デバッグ状態を設定する。
 

メソッドの詳細

isDebugMode

boolean isDebugMode()
現在デバッグモードかどうかを調べる。

戻り値:
デバッグモードならば true。デバッグモードでなければ false。

setDebugMode

void setDebugMode(boolean mode)
デバッグ状態を設定する。

パラメータ:
mode - デバッグモードの場合は true を指定する。

execute

int execute()
            throws DuplicatedException,
                   SQLException
指定した SQL 文を実行する。

戻り値:
SQL実行結果件数。
例外:
DuplicatedException - 重複エラーが発生した場合。
SQLException

execute

int execute(Object parameterObject)
            throws DuplicatedException,
                   SQLException
指定した SQL 文を実行する。

パラメータ:
parameterObject - SQLに埋め込む値を格納しているパラメタオブジェクト。
戻り値:
SQL実行結果件数。
例外:
DuplicatedException - 重複エラーが発生した場合。
SQLException

execute

int[] execute(List parameterObjectList)
              throws DuplicatedException,
                     SQLException
指定した SQL 文を一括実行する。
指定されたパラメタオブジェクトの件数分 PreparedStatement.executeUpdate() を実行する。

パラメータ:
parameterObjectList - SQLに埋め込む値を格納しているパラメタオブジェクトのリスト。
戻り値:
SQL実行結果件数。
例外:
DuplicatedException - 重複エラーが発生した場合。
SQLException