GPKGUserCustomDao
Objective-C
@interface GPKGUserCustomDao : GPKGUserDao
Swift
class GPKGUserCustomDao : GPKGUserDao
User Custom DAO for reading user custom data tables
-
Initializer
Declaration
Objective-C
- (instancetype)initWithDatabase:(GPKGConnection *)database andTable:(GPKGUserCustomTable *)table;
Swift
init!(database: GPKGConnection!, andTable table: GPKGUserCustomTable!)
Parameters
database
database connection
table
user custom table
Return Value
new user custom dao
-
Initializer
Declaration
Objective-C
- (instancetype)initWithDao:(GPKGUserCustomDao *)dao;
Swift
init!(dao: GPKGUserCustomDao!)
Parameters
dao
user custom dao
Return Value
new user custom dao
-
Initializer
Declaration
Objective-C
- (instancetype)initWithDao:(GPKGUserCustomDao *)dao andTable:(GPKGUserCustomTable *)table;
Swift
init!(dao: GPKGUserCustomDao!, andTable table: GPKGUserCustomTable!)
Parameters
dao
user custom dao
table
user custom table
Return Value
new user custom dao
-
Get the user custom table
Declaration
Objective-C
- (GPKGUserCustomTable *)userCustomTable;
Swift
func userCustomTable() -> GPKGUserCustomTable!
Return Value
user custom table
-
Get the user custom row for the current result in the result set
Declaration
Objective-C
- (GPKGUserCustomRow *)row:(GPKGResultSet *)results;
Swift
func row(_ results: GPKGResultSet!) -> GPKGUserCustomRow!
Parameters
results
result set
Return Value
user custom row
-
Get a user custom row from the row
Declaration
Objective-C
- (GPKGUserCustomRow *)rowWithRow:(GPKGRow *)row;
Swift
func row(with row: GPKGRow!) -> GPKGUserCustomRow!
Parameters
row
result row
Return Value
user custom row
-
Create a new user custom row
Return Value
user custom row
-
Get the count of the result set and close it
Declaration
Objective-C
- (int)countOfResultSet:(GPKGResultSet *)resultSet;
Swift
func count(of resultSet: GPKGResultSet!) -> Int32
Parameters
resultSet
result set
Return Value
count
-
Read the database table and create a DAO
Declaration
Objective-C
+ (GPKGUserCustomDao *)readTableWithDatabase:(NSString *)database andConnection:(GPKGConnection *)connection andTable:(NSString *)tableName;
Swift
class func readTable(withDatabase database: String!, andConnection connection: GPKGConnection!, andTable tableName: String!) -> GPKGUserCustomDao!
Parameters
database
database name
connection
db connection
tableName
table name
Return Value
user custom DAO