クラス SqlOperation

java.lang.ObjectSE
org.springframework.jdbc.object.RdbmsOperation
org.springframework.jdbc.object.SqlOperation
実装されたすべてのインターフェース:
InitializingBean
既知の直属サブクラス
SqlQuerySqlUpdate

public abstract class SqlOperation extends RdbmsOperation
ストアドプロシージャではなく、クエリや更新などの SQL ベースの操作を表す操作オブジェクト。

宣言されたパラメーターに基づいて PreparedStatementCreatorFactory を構成します。

作成者:
Rod Johnson, Juergen Hoeller
  • コンストラクターの詳細

    • SqlOperation

      public SqlOperation()
  • メソッドの詳細

    • compileInternal

      protected final void compileInternal()
      宣言されたパラメーターに基づいて PreparedStatementCreatorFactory を構成するためのオーバーライドされたメソッド。
      次で指定:
      クラス RdbmsOperationcompileInternal 
    • onCompileInternal

      protected void onCompileInternal()
      サブクラスが後処理コンパイルにオーバーライドする可能性のあるフックメソッド。この実装は何もしません。
      関連事項:
    • getParsedSql

      protected ParsedSql getParsedSql()
      この操作の SQL ステートメントの解析済み表現を取得します。

      通常、名前付きパラメーターの解析に使用されます。

    • newPreparedStatementSetter

      protected final PreparedStatementSetter newPreparedStatementSetter(@Nullable ObjectSE[] params)
      PreparedStatementSetter を返し、指定されたパラメーターで操作を実行します。
      パラメーター:
      params - パラメーター配列 (null の場合があります)
    • newPreparedStatementCreator

      protected final PreparedStatementCreator newPreparedStatementCreator(@Nullable ObjectSE[] params)
      PreparedStatementCreator を返し、指定されたパラメーターで操作を実行します。
      パラメーター:
      params - パラメーター配列 (null の場合があります)
    • newPreparedStatementCreator

      protected final PreparedStatementCreator newPreparedStatementCreator(StringSE sqlToUse, @Nullable ObjectSE[] params)
      PreparedStatementCreator を返し、指定されたパラメーターで操作を実行します。
      パラメーター:
      sqlToUse - 使用する実際の SQL ステートメント (名前付きパラメーターの拡張などにより、ファクトリと異なる場合)
      params - パラメーター配列 (null の場合があります)