@Override
    public void setStatementParameters(PreparedStatement statement, boolean setDefaultId) throws SQLException {
    """
	Sets the parameters for a prepared statement following the parameter order defined in
	{@link com.conveyal.gtfs.loader.Table#SHAPES}. JDBC prepared statement parameters use a one-based index.
    """
        int oneBasedIndex = 1;
        if (!setDefaultId) statement.setInt(oneBasedIndex++, id);
        statement.setString(oneBasedIndex++, shape_id);
        setIntParameter(statement, oneBasedIndex++, shape_pt_sequence);
        statement.setDouble(oneBasedIndex++, shape_pt_lat);
        statement.setDouble(oneBasedIndex++, shape_pt_lon);
        statement.setDouble(oneBasedIndex++, shape_dist_traveled);
        // Editor-specific field below (point_type 0 indicates no control point)
        statement.setInt(oneBasedIndex++, 0);
    }
@Override
    public void setStatementParameters(PreparedStatement statement, boolean setDefaultId) throws SQLException {
        int oneBasedIndex = 1;
        if (!setDefaultId) statement.setInt(oneBasedIndex++, id);
        statement.setString(oneBasedIndex++, shape_id);
        setIntParameter(statement, oneBasedIndex++, shape_pt_sequence);
        statement.setDouble(oneBasedIndex++, shape_pt_lat);
        statement.setDouble(oneBasedIndex++, shape_pt_lon);
        statement.setDouble(oneBasedIndex++, shape_dist_traveled);
        // Editor-specific field below (point_type 0 indicates no control point)
        statement.setInt(oneBasedIndex++, 0);
    }
@ Override public void setStatementParameters ( PreparedStatement statement , boolean setDefaultId ) throws SQLException { int oneBasedIndex = 1 ; if ( ! setDefaultId ) statement . setInt ( oneBasedIndex ++ , id ) ; statement . setString ( oneBasedIndex ++ , shape_id ) ; setIntParameter ( statement , oneBasedIndex ++ , shape_pt_sequence ) ; statement . setDouble ( oneBasedIndex ++ , shape_pt_lat ) ; statement . setDouble ( oneBasedIndex ++ , shape_pt_lon ) ; statement . setDouble ( oneBasedIndex ++ , shape_dist_traveled ) ; // Editor-specific field below (point_type 0 indicates no control point) statement . setInt ( oneBasedIndex ++ , 0 ) ; }
Sets the parameters for a prepared statement following the parameter order defined in
{@link com.conveyal.gtfs.loader.Table#SHAPES}. JDBC prepared statement parameters use a one-based index.
Sets the parameters for a prepared statement following the parameter order defined in {