public class CallMetaDataContext extends ObjectSE
コンストラクターと説明 |
---|
CallMetaDataContext() |
修飾子と型 | メソッドと説明 |
---|---|
StringSE | createCallString() 構成およびメタデータ情報に基づいて呼び出し文字列を作成します。 |
protected StringSE | createParameterBinding(SqlParameter parameter) パラメーターバインディングフラグメントを構築します。 |
SqlParameter | createReturnResultSetParameter(StringSE parameterName, RowMapper<?> rowMapper) 使用中のデータベースに使用される JDBC ドライバーによって提供されるサポートに応じて、ReturnResultSetParameter/SqlOutParameter を作成します。 |
ListSE<SqlParameter> | getCallParameters() 呼び出し実行で使用される SqlParameter オブジェクトのリストを取得します。 |
StringSE | getCatalogName() カタログの名前を取得します。 |
StringSE | getFunctionReturnName() 関数の戻り値に使用される名前を取得します。 |
SetSE<StringSE> | getLimitedInParameterNames() 使用するパラメーターの限定セットを取得します。 |
ListSE<StringSE> | getOutParameterNames() 出力パラメーター名のリストを取得します。 |
StringSE | getProcedureName() プロシージャの名前を取得します。 |
StringSE | getScalarOutParameterName() この呼び出しのシングル出力パラメーターの名前を取得します。 |
StringSE | getSchemaName() スキーマの名前を取得します。 |
void | initializeMetaData(DataSourceSE dataSource) データベースからのメタデータでこのクラスを初期化します。 |
boolean | isAccessCallParameterMetaData() 呼び出しパラメーターのメタデータにアクセスする必要があるかどうかを確認します。 |
boolean | isFunction() この呼び出しが関数呼び出しかどうかを確認します。 |
boolean | isNamedBinding() パラメーターを名前でバインドする必要があるかどうかを確認します。 |
boolean | isReturnValueRequired() 戻り値が必要かどうかを確認します。 |
MapSE<StringSE,?> | matchInParameterValuesWithCallParameters(MapSE<StringSE,?> inParameters) 入力パラメーター値を、呼び出しで使用するように宣言されたパラメーターと一致させます。 |
MapSE<StringSE,?> | matchInParameterValuesWithCallParameters(ObjectSE[] parameterValues) |
MapSE<StringSE, ObjectSE> | matchInParameterValuesWithCallParameters(SqlParameterSource parameterSource) 入力パラメーター値を、呼び出しで使用するように宣言されたパラメーターと一致させます。 |
void | processParameters(ListSE<SqlParameter> parameters) 提供されたパラメーターのリストを処理します。プロシージャ列のメタデータが使用される場合、パラメーターはメタデータ情報と照合され、不足しているものは自動的に含まれます。 |
protected ListSE<SqlParameter> | reconcileParameters(ListSE<SqlParameter> parameters) 提供されたパラメーターを利用可能なメタデータと調整し、必要に応じて新しいものを追加します。 |
void | setAccessCallParameterMetaData(boolean accessCallParameterMetaData) 呼び出しパラメーターのメタデータにアクセスするかどうかを指定します。 |
void | setCatalogName(StringSE catalogName) カタログの名前を指定します。 |
void | setFunction(boolean function) この呼び出しが関数呼び出しかどうかを指定します。 |
void | setFunctionReturnName(StringSE functionReturnName) 関数の戻り値に使用される名前を指定します。 |
void | setLimitedInParameterNames(SetSE<StringSE> limitedInParameterNames) 使用する in パラメーターの限定セットを指定します。 |
void | setNamedBinding(boolean namedBinding) パラメーターを名前でバインドするかどうかを指定します。 |
void | setOutParameterNames(ListSE<StringSE> outParameterNames) 出力パラメーターの名前を指定します。 |
void | setProcedureName(StringSE procedureName) プロシージャの名前を指定します。 |
void | setReturnValueRequired(boolean returnValueRequired) 戻り値が必要かどうかを指定します。 |
void | setSchemaName(StringSE schemaName) スキーマの名前を指定します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
protected final Log logger
public void setFunctionReturnName(StringSE functionReturnName)
public StringSE getFunctionReturnName()
public void setLimitedInParameterNames(SetSE<StringSE> limitedInParameterNames)
public SetSE<StringSE> getLimitedInParameterNames()
public void setOutParameterNames(ListSE<StringSE> outParameterNames)
public void setFunction(boolean function)
public boolean isFunction()
public void setReturnValueRequired(boolean returnValueRequired)
public boolean isReturnValueRequired()
public void setAccessCallParameterMetaData(boolean accessCallParameterMetaData)
public boolean isAccessCallParameterMetaData()
public void setNamedBinding(boolean namedBinding)
public boolean isNamedBinding()
public void initializeMetaData(DataSourceSE dataSource)
dataSource
- メタデータの取得に使用される DataSourcepublic SqlParameter createReturnResultSetParameter(StringSE parameterName, RowMapper<?> rowMapper)
parameterName
- パラメーターの名前 (出力で返されるリストの名前としても使用されます)rowMapper
- 結果セットで返されたデータのマッピングに使用される RowMapper 実装 @Nullable public StringSE getScalarOutParameterName()
public ListSE<SqlParameter> getCallParameters()
public void processParameters(ListSE<SqlParameter> parameters)
parameters
- ベースとして使用するパラメーターのリスト protected ListSE<SqlParameter> reconcileParameters(ListSE<SqlParameter> parameters)
public MapSE<StringSE,ObjectSE> matchInParameterValuesWithCallParameters(SqlParameterSource parameterSource)
parameterSource
- 入力値 public MapSE<StringSE,?> matchInParameterValuesWithCallParameters(MapSE<StringSE,?> inParameters)
inParameters
- 入力値 public MapSE<StringSE,?> matchInParameterValuesWithCallParameters(ObjectSE[] parameterValues)
public StringSE createCallString()
protected StringSE createParameterBinding(SqlParameter parameter)
parameter
- 呼び出しパラメーター