GPKGGeoPackageMetadataDao

Objective-C

@interface GPKGGeoPackageMetadataDao : GPKGBaseDao

Swift

class GPKGGeoPackageMetadataDao : GPKGBaseDao

GeoPackage Metadata Data Access Object

  • Initialize

    Declaration

    Objective-C

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

    Swift

    init!(database: GPKGConnection!)

    Parameters

    database

    database connection

    Return Value

    new GeoPackage metadata DAO

  • Delete the metadata

    Declaration

    Objective-C

    - (BOOL)deleteMetadata:(GPKGGeoPackageMetadata *)metadata;

    Swift

    func delete(_ metadata: GPKGGeoPackageMetadata!) -> Bool

    Parameters

    metadata

    metadata

    Return Value

    true if deleted

  • Delete metadata by name

    Declaration

    Objective-C

    - (BOOL)deleteByName:(NSString *)name;

    Swift

    func delete(byName name: String!) -> Bool

    Parameters

    name

    metadata name

    Return Value

    true if deleted

  • Rename metadata

    Declaration

    Objective-C

    - (BOOL)renameMetadata:(GPKGGeoPackageMetadata *)metadata
                 toNewName:(NSString *)newName;

    Swift

    func renameMetadata(_ metadata: GPKGGeoPackageMetadata!, toNewName newName: String!) -> Bool

    Parameters

    metadata

    metadata

    newName

    new metadata name

    Return Value

    true if renamed

  • Rename metadata

    Declaration

    Objective-C

    - (BOOL)renameName:(NSString *)name toNewName:(NSString *)newName;

    Swift

    func renameName(_ name: String!, toNewName newName: String!) -> Bool

    Parameters

    name

    metadata name

    newName

    new metadata name

    Return Value

    true if renamed

  • Get all metadata

    Declaration

    Objective-C

    - (NSArray *)all;

    Swift

    func all() -> [Any]!

    Return Value

    all metadata

  • Get all metadata names

    Declaration

    Objective-C

    - (NSArray *)allNames;

    Swift

    func allNames() -> [Any]!

    Return Value

    metadata names

  • Get all metadata names sorted

    Declaration

    Objective-C

    - (NSArray *)allNamesSorted;

    Swift

    func allNamesSorted() -> [Any]!

    Return Value

    sorted metadata names

  • Get metadata by name

    Declaration

    Objective-C

    - (GPKGGeoPackageMetadata *)metadataByName:(NSString *)name;

    Swift

    func metadata(byName name: String!) -> GPKGGeoPackageMetadata!

    Parameters

    name

    metadata name

    Return Value

    metadata

  • Get metadata by id

    Declaration

    Objective-C

    - (GPKGGeoPackageMetadata *)metadataById:(NSNumber *)id;

    Swift

    func metadata(byId id: NSNumber!) -> GPKGGeoPackageMetadata!

    Parameters

    id

    metadata id

    Return Value

    metadata

  • Get or create metadata by name

    Declaration

    Objective-C

    - (GPKGGeoPackageMetadata *)metadataCreateByName:(NSString *)name;

    Swift

    func metadataCreate(byName name: String!) -> GPKGGeoPackageMetadata!

    Parameters

    name

    metadata name

    Return Value

    existing or created metadata

  • Check if the metadata exists

    Declaration

    Objective-C

    - (BOOL)existsByName:(NSString *)name;

    Swift

    func exists(byName name: String!) -> Bool

    Parameters

    name

    metadata name

    Return Value

    true if exists

  • Get metadata where the name is like

    Declaration

    Objective-C

    - (NSArray *)metadataWhereNameLike:(NSString *)like sortedBy:(NSString *)column;

    Swift

    func metadataWhereNameLike(_ like: String!, sortedBy column: String!) -> [Any]!

    Parameters

    like

    like argument

    column

    sort by column

    Return Value

    metadata names

  • Get metadata where the name is not like

    Declaration

    Objective-C

    - (NSArray *)metadataWhereNameNotLike:(NSString *)notLike
                                 sortedBy:(NSString *)column;

    Swift

    func metadataWhereNameNotLike(_ notLike: String!, sortedBy column: String!) -> [Any]!

    Parameters

    notLike

    not like argument

    column

    sort by column

    Return Value

    metadata names