接口 BatchPreparedStatementSetter

    • 方法详细资料

      • setValues

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

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