GPKGContentsIdDao
Objective-C
@interface GPKGContentsIdDao : GPKGBaseDao
Swift
class GPKGContentsIdDao : GPKGBaseDao
Contents Id Data Access Object
-
Create the DAO
Declaration
Objective-C
+ (GPKGContentsIdDao *)createWithDatabase:(GPKGConnection *)database;
Swift
class func create(withDatabase database: GPKGConnection!) -> GPKGContentsIdDao!
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 id dao
-
Get the contents id for the current result in the result set
Declaration
Objective-C
- (GPKGContentsId *)contentsId:(GPKGResultSet *)results;
Swift
func contentsId(_ results: GPKGResultSet!) -> GPKGContentsId!
Parameters
results
result set
Return Value
contents id
-
Query for and set the contents in the contents id
Declaration
Objective-C
- (void)setContents:(GPKGContentsId *)contentsId;
Swift
func setContents(_ contentsId: GPKGContentsId!)
Parameters
contentsId
contents id
-
Query for the contents for the contents id
Declaration
Objective-C
- (GPKGContents *)contents:(GPKGContentsId *)contentsId;
Swift
func contents(_ contentsId: GPKGContentsId!) -> GPKGContents!
Parameters
contentsId
contents id
Return Value
contents
-
Query by table name
Declaration
Objective-C
- (GPKGContentsId *)queryForTableName:(NSString *)tableName;
Swift
func query(forTableName tableName: String!) -> GPKGContentsId!
Parameters
tableName
table name
Return Value
contents id
-
Delete by table name
Declaration
Objective-C
- (int)deleteByTableName:(NSString *)tableName;
Swift
func delete(byTableName tableName: String!) -> Int32
Parameters
tableName
table name
Return Value
rows deleted