GPKGFeatureTileLinkDao

Objective-C

@interface GPKGFeatureTileLinkDao : GPKGBaseDao

Swift

class GPKGFeatureTileLinkDao : GPKGBaseDao

Feature Tile Link Data Access Object

  • Create the DAO

    Declaration

    Objective-C

    + (GPKGFeatureTileLinkDao *)createWithDatabase:(GPKGConnection *)database;

    Swift

    class func create(withDatabase database: GPKGConnection!) -> GPKGFeatureTileLinkDao!

    Parameters

    database

    database connection

    Return Value

    dao

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithDatabase:(GPKGConnection *)database;

    Swift

    init!(database: GPKGConnection!)

    Parameters

    database

    database connection

    Return Value

    new feature tile link dao

  • Query by feature table name and tile table name for a link

    Declaration

    Objective-C

    - (GPKGFeatureTileLink *)queryForFeatureTable:(NSString *)featureTable
                                     andTileTable:(NSString *)tileTable;

    Swift

    func query(forFeatureTable featureTable: String!, andTileTable tileTable: String!) -> GPKGFeatureTileLink!

    Parameters

    featureTable

    feature table name

    tileTable

    tile table name

    Return Value

    feature tile link or nil

  • Query by feature table name

    Declaration

    Objective-C

    - (GPKGResultSet *)queryForFeatureTableName:(NSString *)featureTable;

    Swift

    func query(forFeatureTableName featureTable: String!) -> GPKGResultSet!

    Parameters

    featureTable

    feature table name

    Return Value

    result set

  • Query by tile table name

    Declaration

    Objective-C

    - (GPKGResultSet *)queryForTileTableName:(NSString *)tileTable;

    Swift

    func query(forTileTableName tileTable: String!) -> GPKGResultSet!

    Parameters

    tileTable

    tile table name

    Return Value

    result set

  • Delete by feature table and tile table names

    Declaration

    Objective-C

    - (int)deleteByFeatureTable:(NSString *)featureTable
                   andTileTable:(NSString *)tileTable;

    Swift

    func delete(byFeatureTable featureTable: String!, andTileTable tileTable: String!) -> Int32

    Parameters

    featureTable

    feature table name

    tileTable

    tile table name

    Return Value

    rows deleted

  • Delete by table name, either feature or tile table name

    Declaration

    Objective-C

    - (int)deleteByTableName:(NSString *)tableName;

    Swift

    func delete(byTableName tableName: String!) -> Int32

    Parameters

    tableName

    table name

    Return Value

    rows deleted