@Override
    public void setStatementParameters(PreparedStatement statement, boolean setDefaultId) throws SQLException {
        int oneBasedIndex = 1;
        if (!setDefaultId) statement.setInt(oneBasedIndex++, id);
        DateField feedStartDateField = (DateField) Table.FEED_INFO.getFieldForName("feed_start_date");
        DateField feedEndDateField = (DateField) Table.FEED_INFO.getFieldForName("feed_end_date");
        String feedPublisherUrl = feed_publisher_url != null ? feed_publisher_url.toString() : null;
        statement.setString(oneBasedIndex++, feed_publisher_name);
        statement.setString(oneBasedIndex++, feedPublisherUrl);
        statement.setString(oneBasedIndex++, feed_lang);
        feedStartDateField.setParameter(statement, oneBasedIndex++, feed_start_date);
        feedEndDateField.setParameter(statement, oneBasedIndex++, feed_end_date);
        statement.setString(oneBasedIndex++, feed_version);
    }
@Override
    public void setStatementParameters(PreparedStatement statement, boolean setDefaultId) throws SQLException {
        int oneBasedIndex = 1;
        if (!setDefaultId) statement.setInt(oneBasedIndex++, id);
        DateField feedStartDateField = (DateField) Table.FEED_INFO.getFieldForName("feed_start_date");
        DateField feedEndDateField = (DateField) Table.FEED_INFO.getFieldForName("feed_end_date");
        String feedPublisherUrl = feed_publisher_url != null ? feed_publisher_url.toString() : null;
        statement.setString(oneBasedIndex++, feed_publisher_name);
        statement.setString(oneBasedIndex++, feedPublisherUrl);
        statement.setString(oneBasedIndex++, feed_lang);
        feedStartDateField.setParameter(statement, oneBasedIndex++, feed_start_date);
        feedEndDateField.setParameter(statement, oneBasedIndex++, feed_end_date);
        statement.setString(oneBasedIndex++, feed_version);
    }
@ Override public void setStatementParameters ( PreparedStatement statement , boolean setDefaultId ) throws SQLException { int oneBasedIndex = 1 ; if ( ! setDefaultId ) statement . setInt ( oneBasedIndex ++ , id ) ; DateField feedStartDateField = ( DateField ) Table . FEED_INFO . getFieldForName ( "feed_start_date" ) ; DateField feedEndDateField = ( DateField ) Table . FEED_INFO . getFieldForName ( "feed_end_date" ) ; String feedPublisherUrl = feed_publisher_url != null ? feed_publisher_url . toString ( ) : null ; statement . setString ( oneBasedIndex ++ , feed_publisher_name ) ; statement . setString ( oneBasedIndex ++ , feedPublisherUrl ) ; statement . setString ( oneBasedIndex ++ , feed_lang ) ; feedStartDateField . setParameter ( statement , oneBasedIndex ++ , feed_start_date ) ; feedEndDateField . setParameter ( statement , oneBasedIndex ++ , feed_end_date ) ; statement . setString ( oneBasedIndex ++ , feed_version ) ; }
Sets the parameters for a prepared statement following the parameter order defined in
{@link com.conveyal.gtfs.loader.Table#FEED_INFO}. JDBC prepared statement parameters use a one-based index.
Sets the parameters for a prepared statement following the parameter order defined in {