org.seasar.extension.jdbc.query
クラス AbstractProcedureCall<S extends ProcedureCall<S>>

java.lang.Object
  上位を拡張 org.seasar.extension.jdbc.query.AbstractQuery<S>
      上位を拡張 org.seasar.extension.jdbc.query.AbstractProcedureCall<S>
型パラメータ:
S - ProcedureCallのサブタイプです。
すべての実装されたインタフェース:
ProcedureCall<S>, Query<S>, SqlLogger
直系の既知のサブクラス:
SqlFileProcedureCallImpl, SqlProcedureCallImpl

public abstract class AbstractProcedureCall<S extends ProcedureCall<S>>
extends AbstractQuery<S>
implements ProcedureCall<S>

プロシージャを呼び出す抽象クラスです。

作成者:
higa

フィールドの概要
protected  int fetchSize
          フェッチ数です。
protected  int maxRows
          最大行数です。
protected  List<Param> nonParamList
          MS SQLServerのような結果セットをOUTパラメータにマッピングしない場合のパラメータのリストです。
protected  Object parameter
          パラメータです。
 
クラス org.seasar.extension.jdbc.query.AbstractQuery から継承されたフィールド
callerClass, callerMethodName, executedSql, jdbcManager, logger, paramList, queryTimeout
 
コンストラクタの概要
AbstractProcedureCall(JdbcManager jdbcManager)
          AbstractProcedureCallを作成します。
 
メソッドの概要
protected  Param addNonParam(Field field)
          直接パラメータでは指定しないパラメータを追加します。
 void call()
          ストアドプロシージャを呼び出します。
 S fetchSize(int fetchSize)
          フェッチ数を設定します。
protected  CallableStatement getCallableStatement(JdbcContext jdbcContext)
          呼び出し可能なステートメントを返します。
 int getFetchSize()
          フェッチ数を返します。
 int getMaxRows()
          最大行数を返します。
protected  Param getNonParam(int index)
          直接パラメータでは指定しないパラメータを返します。
protected  int getNonParamSize()
          直接パラメータでは指定しないパラメータの数を返します。
 Object getParameter()
          パラメータを返します。
protected  void handleNonParamResultSets(CallableStatement cs)
          OUTパラメータにマッピングされない1つ以上の結果セットを処理します。
protected  void handleOutParams(CallableStatement cs)
          OUTパラメータを処理します。
protected  Object handleResultSet(Field field, ResultSet rs)
          結果セットを処理します。
 S maxRows(int maxRows)
          最大行数を設定します。
protected  void prepareOutParams(CallableStatement cs)
          OUTパラメータを準備します。
protected  void prepareParameter()
          パラメータの準備をします。
protected  void setupCallableStatement(CallableStatement cs)
          呼び出し可能なステートメントをセットアップします。
 
クラス org.seasar.extension.jdbc.query.AbstractQuery から継承されたメソッド
addParam, addParam, addParam, addParam, callerClass, callerMethodName, getCallerClass, getCallerMethodName, getExecutedSql, getJdbcManager, getParam, getParamClasses, getParamSize, getParamValues, getQueryTimeout, getValueType, handleResultSet, logSql, logSql, prepare, prepareCallerClassAndMethodName, prepareInParams, queryTimeout, resetParams
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース org.seasar.extension.jdbc.Query から継承されたメソッド
callerClass, callerMethodName, queryTimeout
 

フィールドの詳細

maxRows

protected int maxRows
最大行数です。


fetchSize

protected int fetchSize
フェッチ数です。


parameter

protected Object parameter
パラメータです。


nonParamList

protected List<Param> nonParamList
MS SQLServerのような結果セットをOUTパラメータにマッピングしない場合のパラメータのリストです。

コンストラクタの詳細

AbstractProcedureCall

public AbstractProcedureCall(JdbcManager jdbcManager)
AbstractProcedureCallを作成します。

パラメータ:
jdbcManager - JDBCマネージャ
メソッドの詳細

maxRows

public S maxRows(int maxRows)
インタフェース ProcedureCall の記述:
最大行数を設定します。

定義:
インタフェース ProcedureCall<S extends ProcedureCall<S>> 内の maxRows
パラメータ:
maxRows - 最大行数
戻り値:
このインスタンス自身

fetchSize

public S fetchSize(int fetchSize)
インタフェース ProcedureCall の記述:
フェッチ数を設定します。

定義:
インタフェース ProcedureCall<S extends ProcedureCall<S>> 内の fetchSize
パラメータ:
fetchSize - フェッチ数
戻り値:
このインスタンス自身

call

public void call()
インタフェース ProcedureCall の記述:
ストアドプロシージャを呼び出します。

定義:
インタフェース ProcedureCall<S extends ProcedureCall<S>> 内の call

prepareParameter

protected void prepareParameter()
パラメータの準備をします。


getCallableStatement

protected CallableStatement getCallableStatement(JdbcContext jdbcContext)
呼び出し可能なステートメントを返します。

パラメータ:
jdbcContext - JDBCコンテキスト
戻り値:
呼び出し可能なステートメント

setupCallableStatement

protected void setupCallableStatement(CallableStatement cs)
呼び出し可能なステートメントをセットアップします。

パラメータ:
cs - 呼び出し可能なステートメント

prepareOutParams

protected void prepareOutParams(CallableStatement cs)
OUTパラメータを準備します。

パラメータ:
cs - 呼び出し可能なステートメント

handleNonParamResultSets

protected void handleNonParamResultSets(CallableStatement cs)
OUTパラメータにマッピングされない1つ以上の結果セットを処理します。

パラメータ:
cs - 呼び出し可能なステートメント

handleOutParams

protected void handleOutParams(CallableStatement cs)
OUTパラメータを処理します。

パラメータ:
cs - 呼び出し可能なステートメント

handleResultSet

protected Object handleResultSet(Field field,
                                 ResultSet rs)
結果セットを処理します。

パラメータ:
field - フィールド
rs - 結果セット
戻り値:
処理した結果

getNonParamSize

protected int getNonParamSize()
直接パラメータでは指定しないパラメータの数を返します。

戻り値:
直接パラメータでは指定しないパラメータの数

getNonParam

protected Param getNonParam(int index)
直接パラメータでは指定しないパラメータを返します。

パラメータ:
index - インデックス
戻り値:
直接パラメータでは指定しないパラメータ

addNonParam

protected Param addNonParam(Field field)
直接パラメータでは指定しないパラメータを追加します。

パラメータ:
field - フィールド
戻り値:
追加されたパラメータ

getFetchSize

public int getFetchSize()
フェッチ数を返します。

戻り値:
フェッチ数

getMaxRows

public int getMaxRows()
最大行数を返します。

戻り値:
最大行数

getParameter

public Object getParameter()
パラメータを返します。

戻り値:
パラメータ


Copyright ? 2004-2007 The Seasar Foundation. All Rights Reserved.