GPKGUserMappingDao
Objective-C
@interface GPKGUserMappingDao : GPKGUserCustomDao
Swift
class GPKGUserMappingDao : GPKGUserCustomDao
User Mapping DAO for reading user mapping data tables
-
Initialize
Declaration
Objective-C
- (instancetype)initWithDao:(GPKGUserCustomDao *)dao;
Swift
init!(dao: GPKGUserCustomDao!)
Parameters
dao
user custom data access object
Return Value
new user mapping dao
-
Initialize
Declaration
Objective-C
- (instancetype)initWithDao:(GPKGUserCustomDao *)dao andTable:(GPKGUserMappingTable *)userMappingTable;
Swift
init!(dao: GPKGUserCustomDao!, andTable userMappingTable: GPKGUserMappingTable!)
Parameters
dao
user custom data access object
userMappingTable
user mapping table
Return Value
new user mapping dao
-
Get the user mapping table
Declaration
Objective-C
- (GPKGUserMappingTable *)userMappingTable;
Swift
func userMappingTable() -> GPKGUserMappingTable!
Return Value
user mapping table
-
Get the user mapping row for the current result in the result set
Declaration
Objective-C
- (GPKGUserMappingRow *)row:(GPKGResultSet *)results;
Swift
func row(_ results: GPKGResultSet!) -> GPKGUserMappingRow!
Parameters
results
result set
Return Value
user mapping row
-
Create a new user mapping row
Return Value
user mapping row
-
Query by base id
Declaration
Objective-C
- (GPKGResultSet *)queryByBaseIdFromRow:(GPKGUserMappingRow *)userMappingRow;
Swift
func queryByBaseId(from userMappingRow: GPKGUserMappingRow!) -> GPKGResultSet!
Parameters
userMappingRow
user mapping row
Return Value
result set
-
Query by base id
Declaration
Objective-C
- (GPKGResultSet *)queryByBaseId:(int)baseId;
Swift
func query(byBaseId baseId: Int32) -> GPKGResultSet!
Parameters
baseId
base id
Return Value
result set
-
Count by base id
Declaration
Objective-C
- (int)countByBaseIdFromRow:(GPKGUserMappingRow *)userMappingRow;
Swift
func countByBaseId(from userMappingRow: GPKGUserMappingRow!) -> Int32
Parameters
userMappingRow
user mapping row
Return Value
count
-
Count by base id
Declaration
Objective-C
- (int)countByBaseId:(int)baseId;
Swift
func count(byBaseId baseId: Int32) -> Int32
Parameters
baseId
base id
Return Value
count
-
Query by related id
Declaration
Objective-C
- (GPKGResultSet *)queryByRelatedIdFromRow:(GPKGUserMappingRow *)userMappingRow;
Swift
func queryByRelatedId(from userMappingRow: GPKGUserMappingRow!) -> GPKGResultSet!
Parameters
userMappingRow
user mapping row
Return Value
result set
-
Query by related id
Declaration
Objective-C
- (GPKGResultSet *)queryByRelatedId:(int)relatedId;
Swift
func query(byRelatedId relatedId: Int32) -> GPKGResultSet!
Parameters
relatedId
related id
Return Value
result set
-
Count by related id
Declaration
Objective-C
- (int)countByRelatedIdFromRow:(GPKGUserMappingRow *)userMappingRow;
Swift
func countByRelatedId(from userMappingRow: GPKGUserMappingRow!) -> Int32
Parameters
userMappingRow
user mapping row
Return Value
count
-
Count by related id
Declaration
Objective-C
- (int)countByRelatedId:(int)relatedId;
Swift
func count(byRelatedId relatedId: Int32) -> Int32
Parameters
relatedId
related id
Return Value
count
-
Query by both base id and related id
Declaration
Objective-C
- (GPKGResultSet *)queryByIdsFromRow:(GPKGUserMappingRow *)userMappingRow;
Swift
func queryByIds(from userMappingRow: GPKGUserMappingRow!) -> GPKGResultSet!
Parameters
userMappingRow
user mapping row
Return Value
result set
-
Query by both base id and related id
Declaration
Objective-C
- (GPKGResultSet *)queryByBaseId:(int)baseId andRelatedId:(int)relatedId;
Swift
func query(byBaseId baseId: Int32, andRelatedId relatedId: Int32) -> GPKGResultSet!
Parameters
baseId
base id
relatedId
related id
Return Value
result set
-
Get the unique base ids
Declaration
Objective-C
- (NSArray<NSNumber *> *)uniqueBaseIds;
Swift
func uniqueBaseIds() -> [NSNumber]!
Return Value
list of unique base ids
-
Get the unique related ids
Declaration
Objective-C
- (NSArray<NSNumber *> *)uniqueRelatedIds;
Swift
func uniqueRelatedIds() -> [NSNumber]!
Return Value
list of unique related ids
-
Count by both base id and related id
Declaration
Objective-C
- (int)countByIdsFromRow:(GPKGUserMappingRow *)userMappingRow;
Swift
func countByIds(from userMappingRow: GPKGUserMappingRow!) -> Int32
Parameters
userMappingRow
user mapping row
Return Value
count
-
Count by both base id and related id
Declaration
Objective-C
- (int)countByBaseId:(int)baseId andRelatedId:(int)relatedId;
Swift
func count(byBaseId baseId: Int32, andRelatedId relatedId: Int32) -> Int32
Parameters
baseId
base id
relatedId
related id
Return Value
count
-
Delete user mappings by base id
Declaration
Objective-C
- (int)deleteByBaseIdFromRow:(GPKGUserMappingRow *)userMappingRow;
Swift
func deleteByBaseId(from userMappingRow: GPKGUserMappingRow!) -> Int32
Parameters
userMappingRow
user mapping row
Return Value
rows deleted
-
Delete user mappings by base id
Declaration
Objective-C
- (int)deleteByBaseId:(int)baseId;
Swift
func delete(byBaseId baseId: Int32) -> Int32
Parameters
baseId
base id
Return Value
rows deleted
-
Delete user mappings by related id
Declaration
Objective-C
- (int)deleteByRelatedIdFromRow:(GPKGUserMappingRow *)userMappingRow;
Swift
func deleteByRelatedId(from userMappingRow: GPKGUserMappingRow!) -> Int32
Parameters
userMappingRow
user mapping row
Return Value
rows deleted
-
Delete user mappings by related id
Declaration
Objective-C
- (int)deleteByRelatedId:(int)relatedId;
Swift
func delete(byRelatedId relatedId: Int32) -> Int32
Parameters
relatedId
related id
Return Value
rows deleted
-
Delete user mappings by both base id and related id
Declaration
Objective-C
- (int)deleteByIdsFromRow:(GPKGUserMappingRow *)userMappingRow;
Swift
func deleteByIds(from userMappingRow: GPKGUserMappingRow!) -> Int32
Parameters
userMappingRow
user mapping row
Return Value
rows deleted
-
Delete user mappings by both base id and related id
Declaration
Objective-C
- (int)deleteByBaseId:(int)baseId andRelatedId:(int)relatedId;
Swift
func delete(byBaseId baseId: Int32, andRelatedId relatedId: Int32) -> Int32
Parameters
baseId
base id
relatedId
related id
Return Value
rows deleted