org.springframework.jdbc.core

Interface BatchPreparedStatementSetter

    • Method Detail

      • setValues

        void setValues(java.sql.PreparedStatement ps,
                       int i)
                throws java.sql.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:
        java.sql.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