クラス AutoFunctionCallImpl<T>
- java.lang.Object
-
- com.github.mygreen.sqlmapper.core.query.auto.AutoStoredExecutorSupport
-
- com.github.mygreen.sqlmapper.core.query.auto.AutoFunctionCallImpl<T>
-
- 型パラメータ:
T- ストアドファンクションの戻り値のタイプ
- すべての実装されたインタフェース:
AutoFunctionCall<T>
public class AutoFunctionCallImpl<T> extends AutoStoredExecutorSupport implements AutoFunctionCall<T>
ストアドファンクションを呼び出すためのSQLを自動生成する処理の実装です。戻り値がRETURN文の場合のみ対応し、OUTパラメータ、RESULT_SETの場合は、
AutoProcedureCallImplを使用します。- 作成者:
- T.TSUCHIE
-
-
フィールドの概要
-
クラスから継承されたフィールド com.github.mygreen.sqlmapper.core.query.auto.AutoStoredExecutorSupport
context
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 AutoFunctionCallImpl(SqlMapperContext context, Class<T> resultClass, StoredName functionName)AutoFunctionCallImpl(SqlMapperContext context, Class<T> resultClass, StoredName functionName, Object parameter)
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 Texecute()ストアドファンクションを呼び出します。StoredNamegetFunctionName()呼び出すストアドファンクション名Optional<Object>getParameter()パラメータIntegergetQueryTimeout()AutoFunctionCallImpl<T>queryTimeout(int seconds)クエリタイムアウトの秒数を設定します。-
クラスから継承されたメソッド com.github.mygreen.sqlmapper.core.query.auto.AutoStoredExecutorSupport
containsResultParam, createParameterValues, createSqlParameterTypes, doResultValue
-
-
-
-
コンストラクタの詳細
-
AutoFunctionCallImpl
public AutoFunctionCallImpl(SqlMapperContext context, Class<T> resultClass, StoredName functionName)
-
AutoFunctionCallImpl
public AutoFunctionCallImpl(SqlMapperContext context, Class<T> resultClass, StoredName functionName, Object parameter)
-
-
メソッドの詳細
-
queryTimeout
public AutoFunctionCallImpl<T> queryTimeout(int seconds)
インタフェースからコピーされた説明:AutoFunctionCallクエリタイムアウトの秒数を設定します。-1 を指定するとJDBC ドライバーのデフォルト値を使用します。
- 定義:
queryTimeoutインタフェース内AutoFunctionCall<T>- パラメータ:
seconds- クエリタイムアウトの秒数- 戻り値:
- 自身のインスタンス。
-
execute
public T execute()
インタフェースからコピーされた説明:AutoFunctionCallストアドファンクションを呼び出します。- 定義:
executeインタフェース内AutoFunctionCall<T>- 戻り値:
- ファンクションの戻り値
-
getFunctionName
public StoredName getFunctionName()
呼び出すストアドファンクション名
-
getQueryTimeout
public Integer getQueryTimeout()
-
-