liquibase-core/src/main/java/liquibase/statement/ExecutablePreparedStatementBase.java
protected void attachParams(List<ColumnConfig> cols, PreparedStatement stmt)
            throws SQLException, DatabaseException {
        int i = 1;  // index starts from 1
        for (ColumnConfig col : cols) {
            LOG.fine(LogType.LOG, "Applying column parameter = " + i + " for column " + col.getName());
            applyColumnParameter(stmt, i, col);
            i++;
        }
    }
protected void attachParams(List<ColumnConfig> cols, PreparedStatement stmt)
            throws SQLException, DatabaseException {
        int i = 1;  // index starts from 1
        for (ColumnConfig col : cols) {
            LOG.fine(LogType.LOG, "Applying column parameter = " + i + " for column " + col.getName());
            applyColumnParameter(stmt, i, col);
            i++;
        }
    }
protected void attachParams ( List < ColumnConfig > cols , PreparedStatement stmt ) throws SQLException , DatabaseException { int i = 1 ; // index starts from 1 for ( ColumnConfig col : cols ) { LOG . fine ( LogType . LOG , "Applying column parameter = " + i + " for column " + col . getName ( ) ) ; applyColumnParameter ( stmt , i , col ) ; i ++ ; } }
Sets the list of bind variables for the execution of a DML statement
@param cols a list of columns with their designated values
@param stmt the PreparedStatement to which the values are to be attached
@throws SQLException if JDBC objects to a setting (non-existent bind number, wrong column type etc.)
@throws DatabaseException if an I/O error occurs during the read of LOB values
Sets the list of bind variables for the execution of a DML statement