private long executeBatch(PreparedStatement stmt) throws SQLException {
        if (configuration.getUseLiterals()) {
            return stmt.executeUpdate();
        } else if (configuration.getTemplates().isBatchCountViaGetUpdateCount()) {
            stmt.executeBatch();
            return stmt.getUpdateCount();
        } else {
            long rv = 0;
            for (int i : stmt.executeBatch()) {
                rv += i;
            }
            return rv;
        }
    }
Set the parameters to the given PreparedStatement

@param stmt preparedStatement to be populated
@param objects list of constants
@param constantPaths list of paths related to the constants
@param params map of param to value for param resolving
querydsl-sql/src/main/java/com/querydsl/sql/dml/AbstractSQLClause.java