GPKGGriddedTileDao
Objective-C
@interface GPKGGriddedTileDao : GPKGBaseDao
Swift
class GPKGGriddedTileDao : GPKGBaseDao
Gridded Tile Data Access Object
-
Create the DAO
Declaration
Objective-C
+ (GPKGGriddedTileDao *)createWithDatabase:(GPKGConnection *)database;
Swift
class func create(withDatabase database: GPKGConnection!) -> GPKGGriddedTileDao!
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 gridded tile dao
-
Query by contents
Declaration
Objective-C
- (GPKGResultSet *)queryByContents:(GPKGContents *)contents;
Swift
func query(by contents: GPKGContents!) -> GPKGResultSet!
Parameters
contents
contents
Return Value
gridded tile result set
-
Query by table name
Declaration
Objective-C
- (GPKGResultSet *)queryByTableName:(NSString *)tableName;
Swift
func query(byTableName tableName: String!) -> GPKGResultSet!
Parameters
tableName
table name
Return Value
gridded tile result set
-
Query by table name and table id
Declaration
Objective-C
- (GPKGGriddedTile *)queryByTableName:(NSString *)tableName andTileId:(int)tileId;
Swift
func query(byTableName tableName: String!, andTileId tileId: Int32) -> GPKGGriddedTile!
Parameters
tableName
table name
tileId
tile id
Return Value
gridded tile
-
Delete by contents
Declaration
Objective-C
- (int)deleteByContents:(GPKGContents *)contents;
Swift
func delete(by contents: GPKGContents!) -> Int32
Parameters
contents
contents
Return Value
deleted count
-
Delete by table name
Declaration
Objective-C
- (int)deleteByTableName:(NSString *)tableName;
Swift
func delete(byTableName tableName: String!) -> Int32
Parameters
tableName
table name
Return Value
deleted count
-
Get the contents
Declaration
Objective-C
- (GPKGContents *)contents:(GPKGGriddedTile *)griddedTile;
Swift
func contents(_ griddedTile: GPKGGriddedTile!) -> GPKGContents!
Parameters
griddedTile
gridded tile
Return Value
contents