public class CallableStatementCreatorFactory extends ObjectSE
CallableStatementCreator
オブジェクトを効率的に作成するヘルパークラス。コンストラクターと説明 |
---|
CallableStatementCreatorFactory(StringSE callString) 新しいファクトリを作成します。 |
CallableStatementCreatorFactory(StringSE callString, ListSE<SqlParameter> declaredParameters) 指定された SQL とパラメーターで新しいファクトリを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
void | addParameter(SqlParameter param) 新しい宣言されたパラメーターを追加します。 |
StringSE | getCallString() SQL 呼び出し文字列を返します。 |
CallableStatementCreator | newCallableStatementCreator(MapSE<StringSE,?> params) このパラメーターを指定して、新しい CallableStatementCreator インスタンスを返します。 |
CallableStatementCreator | newCallableStatementCreator(ParameterMapper inParamMapper) このパラメーターマッパーを指定して、新しい CallableStatementCreator インスタンスを返します。 |
void | setResultSetType(int resultSetType) 特定の型の ResultSet を返す準備済みステートメントを使用するかどうかを設定します。 |
void | setUpdatableResults(boolean updatableResults) 更新可能な ResultSets を返すことができる準備済みステートメントを使用するかどうかを設定します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public CallableStatementCreatorFactory(StringSE callString)
addParameter(org.springframework.jdbc.core.SqlParameter)
メソッドを介してパラメーターを追加する必要があるか、パラメーターがない。callString
- SQL 呼び出し文字列 public CallableStatementCreatorFactory(StringSE callString, ListSE<SqlParameter> declaredParameters)
callString
- SQL 呼び出し文字列 declaredParameters
- SqlParameter
オブジェクトのリスト public final StringSE getCallString()
public void addParameter(SqlParameter param)
パラメーターを追加する順序は重要です。
param
- 宣言されたパラメーターのリストに追加するパラメーター public void setResultSetType(int resultSetType)
resultSetType
- ResultSet 型 ResultSet.TYPE_FORWARD_ONLY
SE, ResultSet.TYPE_SCROLL_INSENSITIVE
SE, ResultSet.TYPE_SCROLL_SENSITIVE
SEpublic void setUpdatableResults(boolean updatableResults)
public CallableStatementCreator newCallableStatementCreator(@Nullable MapSE<StringSE,?> params)
params
- パラメーターのリスト (null
の場合があります)public CallableStatementCreator newCallableStatementCreator(ParameterMapper inParamMapper)
inParamMapper
- パラメーターのマップを返す ParameterMapper 実装