@Override
    public void setStatementParameters(PreparedStatement statement, boolean setDefaultId) throws SQLException {
        int oneBasedIndex = 1;
        if (!setDefaultId) statement.setInt(oneBasedIndex++, id);
        statement.setString(oneBasedIndex++, trip_id);
        statement.setString(oneBasedIndex++, route_id);
        statement.setString(oneBasedIndex++, service_id);
        statement.setString(oneBasedIndex++, trip_headsign);
        statement.setString(oneBasedIndex++, trip_short_name);
        setIntParameter(statement, oneBasedIndex++, direction_id);
        statement.setString(oneBasedIndex++, block_id);
        statement.setString(oneBasedIndex++, shape_id);
        setIntParameter(statement, oneBasedIndex++, wheelchair_accessible);
        setIntParameter(statement, oneBasedIndex++, bikes_allowed);
        // Editor-specific field? pattern_id
        statement.setString(oneBasedIndex++, null);
    }
@Override
    public void setStatementParameters(PreparedStatement statement, boolean setDefaultId) throws SQLException {
        int oneBasedIndex = 1;
        if (!setDefaultId) statement.setInt(oneBasedIndex++, id);
        statement.setString(oneBasedIndex++, trip_id);
        statement.setString(oneBasedIndex++, route_id);
        statement.setString(oneBasedIndex++, service_id);
        statement.setString(oneBasedIndex++, trip_headsign);
        statement.setString(oneBasedIndex++, trip_short_name);
        setIntParameter(statement, oneBasedIndex++, direction_id);
        statement.setString(oneBasedIndex++, block_id);
        statement.setString(oneBasedIndex++, shape_id);
        setIntParameter(statement, oneBasedIndex++, wheelchair_accessible);
        setIntParameter(statement, oneBasedIndex++, bikes_allowed);
        
        statement.setString(oneBasedIndex++, null);
    }
@ Override public void setStatementParameters ( PreparedStatement statement , boolean setDefaultId ) throws SQLException { int oneBasedIndex = 1 ; if ( ! setDefaultId ) statement . setInt ( oneBasedIndex ++ , id ) ; statement . setString ( oneBasedIndex ++ , trip_id ) ; statement . setString ( oneBasedIndex ++ , route_id ) ; statement . setString ( oneBasedIndex ++ , service_id ) ; statement . setString ( oneBasedIndex ++ , trip_headsign ) ; statement . setString ( oneBasedIndex ++ , trip_short_name ) ; setIntParameter ( statement , oneBasedIndex ++ , direction_id ) ; statement . setString ( oneBasedIndex ++ , block_id ) ; statement . setString ( oneBasedIndex ++ , shape_id ) ; setIntParameter ( statement , oneBasedIndex ++ , wheelchair_accessible ) ; setIntParameter ( statement , oneBasedIndex ++ , bikes_allowed ) ; // Editor-specific field? pattern_id statement . setString ( oneBasedIndex ++ , null ) ; }
Sets the parameters for a prepared statement following the parameter order defined in
{@link com.conveyal.gtfs.loader.Table#TRIPS}. JDBC prepared statement parameters use a one-based index.
Sets the parameters for a prepared statement following the parameter order defined in {