Class AsyncQueryRunner.BatchCallableStatement

  • All Implemented Interfaces:
    java.util.concurrent.Callable<int[]>
    Enclosing class:
    AsyncQueryRunner

    @Deprecated
    protected class AsyncQueryRunner.BatchCallableStatement
    extends java.lang.Object
    implements java.util.concurrent.Callable<int[]>
    Deprecated.
    No longer used by this class. Will be removed in a future version. Class that encapsulates the continuation for batch calls.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean closeConn
      Deprecated.
       
      private java.sql.Connection conn
      Deprecated.
       
      private java.lang.Object[][] params
      Deprecated.
       
      private java.sql.PreparedStatement ps
      Deprecated.
       
      private java.lang.String sql
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      BatchCallableStatement​(java.lang.String sql, java.lang.Object[][] params, java.sql.Connection conn, boolean closeConn, java.sql.PreparedStatement ps)
      Deprecated.
      Creates a new BatchCallableStatement instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      int[] call()
      Deprecated.
      The actual call to executeBatch.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • sql

        private final java.lang.String sql
        Deprecated.
      • params

        private final java.lang.Object[][] params
        Deprecated.
      • conn

        private final java.sql.Connection conn
        Deprecated.
      • closeConn

        private final boolean closeConn
        Deprecated.
      • ps

        private final java.sql.PreparedStatement ps
        Deprecated.
    • Constructor Detail

      • BatchCallableStatement

        public BatchCallableStatement​(java.lang.String sql,
                                      java.lang.Object[][] params,
                                      java.sql.Connection conn,
                                      boolean closeConn,
                                      java.sql.PreparedStatement ps)
        Deprecated.
        Creates a new BatchCallableStatement instance.
        Parameters:
        sql - The SQL statement to execute.
        params - An array of query replacement parameters. Each row in this array is one set of batch replacement values.
        conn - The connection to use for the batch call.
        closeConn - True if the connection should be closed, false otherwise.
        ps - The PreparedStatement to be executed.
    • Method Detail

      • call

        public int[] call()
                   throws java.sql.SQLException
        Deprecated.
        The actual call to executeBatch.
        Specified by:
        call in interface java.util.concurrent.Callable<int[]>
        Returns:
        an array of update counts containing one element for each command in the batch.
        Throws:
        java.sql.SQLException - if a database access error occurs or one of the commands sent to the database fails.
        See Also:
        Statement.executeBatch()