クラス SqlOperation
java.lang.ObjectSE
org.springframework.jdbc.object.RdbmsOperation
org.springframework.jdbc.object.SqlOperation
- 実装されたすべてのインターフェース:
InitializingBean
ストアドプロシージャではなく、クエリや更新などの SQL ベースの操作を表す操作オブジェクト。
宣言されたパラメーターに基づいて PreparedStatementCreatorFactory
を構成します。
- 作成者:
- Rod Johnson, Juergen Hoeller
フィールドのサマリー
クラス org.springframework.jdbc.object.RdbmsOperation から継承されたフィールド
logger
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected final void
宣言されたパラメーターに基づいて PreparedStatementCreatorFactory を構成するためのオーバーライドされたメソッド。protected ParsedSql
この操作の SQL ステートメントの解析済み表現を取得します。protected final PreparedStatementCreator
newPreparedStatementCreator
(ObjectSE[] params) PreparedStatementCreator を返し、指定されたパラメーターで操作を実行します。protected final PreparedStatementCreator
newPreparedStatementCreator
(StringSE sqlToUse, ObjectSE[] params) PreparedStatementCreator を返し、指定されたパラメーターで操作を実行します。protected final PreparedStatementSetter
newPreparedStatementSetter
(ObjectSE[] params) PreparedStatementSetter を返し、指定されたパラメーターで操作を実行します。protected void
サブクラスが後処理コンパイルにオーバーライドできるフックメソッド。クラス org.springframework.jdbc.object.RdbmsOperation から継承されたメソッド
afterPropertiesSet, allowsUnusedParameters, checkCompiled, compile, declareParameter, getDeclaredParameters, getGeneratedKeysColumnNames, getJdbcTemplate, getResultSetType, getSql, isCompiled, isReturnGeneratedKeys, isUpdatableResults, resolveSql, setDataSource, setFetchSize, setGeneratedKeysColumnNames, setJdbcTemplate, setMaxRows, setParameters, setQueryTimeout, setResultSetType, setReturnGeneratedKeys, setSql, setTypes, setUpdatableResults, supportsLobParameters, validateNamedParameters, validateParameters
コンストラクターの詳細
SqlOperation
public SqlOperation()
メソッドの詳細
compileInternal
protected final void compileInternal()宣言されたパラメーターに基づいて PreparedStatementCreatorFactory を構成するためのオーバーライドされたメソッド。- 次で指定:
- クラス
RdbmsOperation
のcompileInternal
onCompileInternal
protected void onCompileInternal()サブクラスが後処理コンパイルにオーバーライドする可能性のあるフックメソッド。この実装は何もしません。- 関連事項:
getParsedSql
この操作の SQL ステートメントの解析済み表現を取得します。通常、名前付きパラメーターの解析に使用されます。
newPreparedStatementSetter
PreparedStatementSetter を返し、指定されたパラメーターで操作を実行します。- パラメーター:
params
- パラメーター配列 (null
の場合があります)
newPreparedStatementCreator
PreparedStatementCreator を返し、指定されたパラメーターで操作を実行します。- パラメーター:
params
- パラメーター配列 (null
の場合があります)
newPreparedStatementCreator
protected final PreparedStatementCreator newPreparedStatementCreator(StringSE sqlToUse, @Nullable ObjectSE[] params) PreparedStatementCreator を返し、指定されたパラメーターで操作を実行します。- パラメーター:
sqlToUse
- 使用する実際の SQL ステートメント (名前付きパラメーターの拡張などにより、ファクトリと異なる場合)params
- パラメーター配列 (null
の場合があります)