src/main/java/com/conveyal/gtfs/model/FareAttribute.java
@Override
    public void setStatementParameters(PreparedStatement statement, boolean setDefaultId) throws SQLException {
        int oneBasedIndex = 1;
        if (!setDefaultId) statement.setInt(oneBasedIndex++, id);
        statement.setString(oneBasedIndex++, fare_id);
        statement.setDouble(oneBasedIndex++, price);
        statement.setString(oneBasedIndex++, currency_type);
        setIntParameter(statement, oneBasedIndex++, payment_method);
        // FIXME Entity.INT_MISSING causing out of range error on small int
        setIntParameter(statement, oneBasedIndex++, transfers);
        statement.setString(oneBasedIndex++, agency_id);
        setIntParameter(statement, oneBasedIndex++, transfer_duration);
    }
@Override
    public void setStatementParameters(PreparedStatement statement, boolean setDefaultId) throws SQLException {
        int oneBasedIndex = 1;
        if (!setDefaultId) statement.setInt(oneBasedIndex++, id);
        statement.setString(oneBasedIndex++, fare_id);
        statement.setDouble(oneBasedIndex++, price);
        statement.setString(oneBasedIndex++, currency_type);
        setIntParameter(statement, oneBasedIndex++, payment_method);
        // FIXME Entity.INT_MISSING causing out of range error on small int
        setIntParameter(statement, oneBasedIndex++, transfers);
        statement.setString(oneBasedIndex++, agency_id);
        setIntParameter(statement, oneBasedIndex++, transfer_duration);
    }
@ Override public void setStatementParameters ( PreparedStatement statement , boolean setDefaultId ) throws SQLException { int oneBasedIndex = 1 ; if ( ! setDefaultId ) statement . setInt ( oneBasedIndex ++ , id ) ; statement . setString ( oneBasedIndex ++ , fare_id ) ; statement . setDouble ( oneBasedIndex ++ , price ) ; statement . setString ( oneBasedIndex ++ , currency_type ) ; setIntParameter ( statement , oneBasedIndex ++ , payment_method ) ; // FIXME Entity.INT_MISSING causing out of range error on small int setIntParameter ( statement , oneBasedIndex ++ , transfers ) ; statement . setString ( oneBasedIndex ++ , agency_id ) ; setIntParameter ( statement , oneBasedIndex ++ , transfer_duration ) ; }
Sets the parameters for a prepared statement following the parameter order defined in
{@link com.conveyal.gtfs.loader.Table#FARE_ATTRIBUTES}. JDBC prepared statement parameters use a one-based index.
Sets the parameters for a prepared statement following the parameter order defined in {