GPKGMetadataDao

Objective-C

@interface GPKGMetadataDao : GPKGBaseDao

Swift

class GPKGMetadataDao : GPKGBaseDao

Metadata Data Access Object

  • Create the DAO

    Declaration

    Objective-C

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

    Swift

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

    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 metadata dao

  • Delete the Metadata, cascading

    Declaration

    Objective-C

    - (int)deleteCascade:(GPKGMetadata *)metadata;

    Swift

    func deleteCascade(_ metadata: GPKGMetadata!) -> Int32

    Parameters

    metadata

    metadata

    Return Value

    rows deleted

  • Delete the collection of Metadata, cascading

    Declaration

    Objective-C

    - (int)deleteCascadeWithCollection:(NSArray *)metadataCollection;

    Swift

    func deleteCascade(withCollection metadataCollection: [Any]!) -> Int32

    Parameters

    metadataCollection

    metadata array

    Return Value

    rows deleted

  • Delete the Metadata where, cascading

    Declaration

    Objective-C

    - (int)deleteCascadeWhere:(NSString *)where andWhereArgs:(NSArray *)whereArgs;

    Swift

    func deleteCascadeWhere(_ where: String!, andWhereArgs whereArgs: [Any]!) -> Int32

    Parameters

    where

    where clause

    whereArgs

    where args

    Return Value

    rows deleted

  • Delete the Metadata by id, cascading

    Declaration

    Objective-C

    - (int)deleteByIdCascade:(NSNumber *)id;

    Swift

    func delete(byIdCascade id: NSNumber!) -> Int32

    Parameters

    id

    id

    Return Value

    rows deleted

  • Delete the Metadata with the ids, cascading

    Declaration

    Objective-C

    - (int)deleteIdsCascade:(NSArray *)idCollection;

    Swift

    func deleteIdsCascade(_ idCollection: [Any]!) -> Int32

    Parameters

    idCollection

    id array

    Return Value

    rows deleted