GPKGContentsDao
Objective-C
@interface GPKGContentsDao : GPKGBaseDao
Swift
class GPKGContentsDao : GPKGBaseDao
Contents Data Access Object
-
Create the DAO
Declaration
Objective-C
+ (GPKGContentsDao *)createWithDatabase:(GPKGConnection *)database;
Swift
class func create(withDatabase database: GPKGConnection!) -> GPKGContentsDao!
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 contents dao
-
Get table names by data type
Declaration
Objective-C
- (NSArray<NSString *> *)tablesByType:(enum GPKGContentsDataType)dataType;
Swift
func tables(by dataType: GPKGContentsDataType) -> [String]!
Parameters
dataType
data type
Return Value
table names
-
Get table names by data types
Declaration
Objective-C
- (NSArray<NSString *> *)tablesByTypes:(NSArray<NSNumber *> *)dataTypes;
Swift
func tables(byTypes dataTypes: [NSNumber]!) -> [String]!
Parameters
dataTypes
data types
Return Value
table names
-
Get table names by data type
Declaration
Objective-C
- (NSArray<NSString *> *)tablesByTypeName:(NSString *)dataType;
Swift
func tables(byTypeName dataType: String!) -> [String]!
Parameters
dataType
data type
Return Value
table names
-
Get table names by data types
Declaration
Objective-C
- (NSArray<NSString *> *)tablesByTypeNames:(NSArray<NSString *> *)dataTypes;
Swift
func tables(byTypeNames dataTypes: [String]!) -> [String]!
Parameters
dataTypes
data types
Return Value
table names
-
Get contents by data type
Declaration
Objective-C
- (GPKGResultSet *)contentsByType:(enum GPKGContentsDataType)dataType;
Swift
func contents(by dataType: GPKGContentsDataType) -> GPKGResultSet!
Parameters
dataType
data type
Return Value
contents result set
-
Get contents by data types
Declaration
Objective-C
- (GPKGResultSet *)contentsByTypes:(NSArray<NSNumber *> *)dataTypes;
Swift
func contents(byTypes dataTypes: [NSNumber]!) -> GPKGResultSet!
Parameters
dataTypes
data types
Return Value
contents result set
-
Get contents by data type
Declaration
Objective-C
- (GPKGResultSet *)contentsByTypeName:(NSString *)dataType;
Swift
func contents(byTypeName dataType: String!) -> GPKGResultSet!
Parameters
dataType
data type
Return Value
contents result set
-
Get contents by data types
Declaration
Objective-C
- (GPKGResultSet *)contentsByTypeNames:(NSArray<NSString *> *)dataTypes;
Swift
func contents(byTypeNames dataTypes: [String]!) -> GPKGResultSet!
Parameters
dataTypes
data types
Return Value
contents result set
-
Get table names
Declaration
Objective-C
- (NSArray<NSString *> *)tables;
Swift
func tables() -> [String]!
Return Value
table names
-
Delete the Contents, cascading
Declaration
Objective-C
- (int)deleteCascade:(GPKGContents *)contents;
Swift
func deleteCascade(_ contents: GPKGContents!) -> Int32
Parameters
contents
contents
Return Value
rows deleted
-
Delete the Contents, cascading optionally including the user table
Declaration
Objective-C
- (int)deleteCascade:(GPKGContents *)contents andUserTable:(BOOL)userTable;
Swift
func deleteCascade(_ contents: GPKGContents!, andUserTable userTable: Bool) -> Int32
Parameters
contents
contents
userTable
delete user table
Return Value
rows deleted
-
Delete the collection of Contents, cascading
Declaration
Objective-C
- (int)deleteCascadeWithCollection:(NSArray *)contentsCollection;
Swift
func deleteCascade(withCollection contentsCollection: [Any]!) -> Int32
Parameters
contentsCollection
contents array
Return Value
rows deleted
-
Delete the collection of Contents, cascading optionally including the user table
Declaration
Objective-C
- (int)deleteCascadeWithCollection:(NSArray *)contentsCollection andUserTable:(BOOL)userTable;
Swift
func deleteCascade(withCollection contentsCollection: [Any]!, andUserTable userTable: Bool) -> Int32
Parameters
contentsCollection
contents array
userTable
delete user table
Return Value
rows deleted
-
Delete the Contents 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 Contents where, cascading optionally including the user table
Declaration
Objective-C
- (int)deleteCascadeWhere:(NSString *)where andWhereArgs:(NSArray *)whereArgs andUserTable:(BOOL)userTable;
Swift
func deleteCascadeWhere(_ where: String!, andWhereArgs whereArgs: [Any]!, andUserTable userTable: Bool) -> Int32
Parameters
where
where clause
whereArgs
where args
userTable
delete user table
Return Value
rows deleted
-
Delete the Contents by id, cascading
Declaration
Objective-C
- (int)deleteByIdCascade:(NSString *)id;
Swift
func delete(byIdCascade id: String!) -> Int32
Parameters
id
id
Return Value
rows deleted
-
Delete the Contents by id, cascading optionally including the user table
Declaration
Objective-C
- (int)deleteByIdCascade:(NSString *)id andUserTable:(BOOL)userTable;
Swift
func delete(byIdCascade id: String!, andUserTable userTable: Bool) -> Int32
Parameters
id
id
userTable
delete user table
Return Value
rows deleted
-
Delete the Contents by ids, cascading
Declaration
Objective-C
- (int)deleteIdsCascade:(NSArray *)idCollection;
Swift
func deleteIdsCascade(_ idCollection: [Any]!) -> Int32
Parameters
idCollection
id array
Return Value
rows deleted
-
Delete the Contents by ids, cascading optionally including the user table
Declaration
Objective-C
- (int)deleteIdsCascade:(NSArray *)idCollection andUserTable:(BOOL)userTable;
Swift
func deleteIdsCascade(_ idCollection: [Any]!, andUserTable userTable: Bool) -> Int32
Parameters
idCollection
id array
userTable
delete user table
Return Value
rows deleted
-
Delete the table
Declaration
Objective-C
- (void)deleteTable:(NSString *)table;
Swift
func deleteTable(_ table: String!)
Parameters
table
table name
-
Get the Spatial Reference System
Declaration
Objective-C
- (GPKGSpatialReferenceSystem *)srs:(GPKGContents *)contents;
Swift
func srs(_ contents: GPKGContents!) -> GPKGSpatialReferenceSystem!
Parameters
contents
contents
Return Value
srs
-
Get the Geometry Columns
Declaration
Objective-C
- (GPKGGeometryColumns *)geometryColumns:(GPKGContents *)contents;
Swift
func geometryColumns(_ contents: GPKGContents!) -> GPKGGeometryColumns!
Parameters
contents
contents
Return Value
geometry columns
-
Get the Tile Matrix Set
Declaration
Objective-C
- (GPKGTileMatrixSet *)tileMatrixSet:(GPKGContents *)contents;
Swift
func tileMatrixSet(_ contents: GPKGContents!) -> GPKGTileMatrixSet!
Parameters
contents
contents
Return Value
tile matrix set
-
Get the Tile Matrix results
Declaration
Objective-C
- (GPKGResultSet *)tileMatrix:(GPKGContents *)contents;
Swift
func tileMatrix(_ contents: GPKGContents!) -> GPKGResultSet!
Parameters
contents
contents
Return Value
result set
-
Get the bounding box for all tables in the provided projection
Declaration
Objective-C
- (GPKGBoundingBox *)boundingBoxInProjection:(PROJProjection *)projection;
Swift
func boundingBox(in projection: PROJProjection!) -> GPKGBoundingBox!
Parameters
projection
desired bounding box projection
Return Value
bounding box
-
Get the bounding box for the table in the table’s projection
Declaration
Objective-C
- (GPKGBoundingBox *)boundingBoxOfTable:(NSString *)table;
Swift
func boundingBox(ofTable table: String!) -> GPKGBoundingBox!
Parameters
table
table name
Return Value
bounding box
-
Get the bounding box for the table in the provided projection
Declaration
Objective-C
- (GPKGBoundingBox *)boundingBoxOfTable:(NSString *)table inProjection:(PROJProjection *)projection;
Swift
func boundingBox(ofTable table: String!, in projection: PROJProjection!) -> GPKGBoundingBox!
Parameters
table
table name
projection
desired bounding box projection
Return Value
bounding box
-
Get a bounding box in the provided projection
Declaration
Objective-C
- (GPKGBoundingBox *)boundingBoxOfContents:(GPKGContents *)contents inProjection:(PROJProjection *)projection;
Swift
func boundingBox(of contents: GPKGContents!, in projection: PROJProjection!) -> GPKGBoundingBox!
Parameters
contents
contents
projection
desired projection
Return Value
bounding box