Interface BatchPreparedStatementSetter

    • Method Detail

      • setValues

        void setValues​(PreparedStatement ps,
                       int i)
                throws SQLException
        Set parameter values on the given PreparedStatement.
        Parameters:
        ps - the PreparedStatement to invoke setter methods on
        i - index of the statement we're issuing in the batch, starting from 0
        Throws:
        SQLException - if a SQLException is encountered (i.e. there is no need to catch SQLException)
      • getBatchSize

        int getBatchSize()
        Return the size of the batch.
        Returns:
        the number of statements in the batch