Class PersistRequestUpdateSql

All Implemented Interfaces:
TxnProfileEventCodes, BatchPostExecute

public final class PersistRequestUpdateSql extends PersistRequest
Persist request specifically for CallableSql.
  • Constructor Details

  • Method Details

    • profile

      public void profile(long offset, int flushCount)
      Description copied from interface: BatchPostExecute
      Add as event to the profiling.
    • addBatch

      public void addBatch()
      Add this statement to JDBC batch for later execution.
    • executeAddBatch

      public void executeAddBatch()
      Execute using jdbc batch.
    • addToFlushQueue

      public void addToFlushQueue(int pos)
      Add this request to BatchControl to flush later.
    • isFlushQueue

      public boolean isFlushQueue()
      Description copied from interface: BatchPostExecute
      Return true if this is a queued sql update for element collection or intersection table. In this case we can executeBatch on the PreparedStatement.
      Specified by:
      isFlushQueue in interface BatchPostExecute
      Overrides:
      isFlushQueue in class PersistRequest
    • executeNow

      public int executeNow()
      Description copied from class: PersistRequest
      Execute the request right now.
      Specified by:
      executeNow in class PersistRequest
    • isBatchThisRequest

      public boolean isBatchThisRequest()
      Description copied from class: PersistRequest
      Return true if this persist request should use JDBC batch.
      Overrides:
      isBatchThisRequest in class PersistRequest
    • executeOrQueue

      public int executeOrQueue()
      Description copied from class: PersistRequest
      Execute a the request or queue/batch it for later execution.
      Specified by:
      executeOrQueue in class PersistRequest
    • updateSql

      public SpiSqlUpdate updateSql()
      Return the UpdateSql.
    • checkRowCount

      public void checkRowCount(int count)
      No concurrency checking so just note the rowCount.
    • setGeneratedKey

      public void setGeneratedKey(Object idValue)
      Not called for this type of request.
    • isGetGeneratedKeys

      public boolean isGetGeneratedKeys()
    • setType

      public void setType(PersistRequestUpdateSql.SqlType sqlType, String tableName)
      Specify the type of statement executed. Used to automatically register with the transaction event.
    • setBindLog

      public void setBindLog(String bindLog)
      Set the bound values.
    • startBind

      public void startBind(boolean batchThisRequest)
      Description copied from class: PersistRequest
      Effectively set start nanos if we are collecting metrics on a label.
      Overrides:
      startBind in class PersistRequest
    • logSqlBatchBind

      public void logSqlBatchBind()
      Log the sql bind used with jdbc batch.
    • postExecute

      public void postExecute()
      Perform post execute processing.