GPKGSimpleAttributesTable
Objective-C
@interface GPKGSimpleAttributesTable : GPKGUserRelatedTable
Swift
class GPKGSimpleAttributesTable : GPKGUserRelatedTable
Simple Attributes Requirements Class User-Defined Related Data Table
-
User-Defined Simple Attributes Table relation name
Declaration
Objective-C
+ (enum GPKGRelationType)relationType;
Swift
class func relationType() -> GPKGRelationType
Return Value
relation type
-
Create a simple attributes table with the metadata
Declaration
Objective-C
+ (GPKGSimpleAttributesTable *)createWithMetadata: (GPKGSimpleAttributesTableMetadata *)metadata;
Swift
class func create(with metadata: GPKGSimpleAttributesTableMetadata!) -> GPKGSimpleAttributesTable!
Parameters
metadata
simple attributes table metadata
Return Value
simple attributes table
-
Create the required table columns
Declaration
Objective-C
+ (NSArray<GPKGUserCustomColumn *> *)createRequiredColumns;
Swift
class func createRequiredColumns() -> [GPKGUserCustomColumn]!
Return Value
user custom columns
-
Create the required table columns
Declaration
Objective-C
+ (NSArray<GPKGUserCustomColumn *> *)createRequiredColumnsWithAutoincrement: (BOOL)autoincrement;
Swift
class func createRequiredColumns(withAutoincrement autoincrement: Bool) -> [GPKGUserCustomColumn]!
Parameters
autoincrement
autoincrement id values
Return Value
user custom columns
-
Create the required table columns with the id column name
Declaration
Objective-C
+ (NSArray<GPKGUserCustomColumn *> *)createRequiredColumnsWithIdColumnName: (NSString *)idColumnName;
Swift
class func createRequiredColumns(withIdColumnName idColumnName: String!) -> [GPKGUserCustomColumn]!
Parameters
idColumnName
id column name
Return Value
user custom columns
-
Create the required table columns with the id column name
Declaration
Objective-C
+ (NSArray<GPKGUserCustomColumn *> *) createRequiredColumnsWithIdColumnName:(NSString *)idColumnName andAutoincrement:(BOOL)autoincrement;
Swift
class func createRequiredColumns(withIdColumnName idColumnName: String!, andAutoincrement autoincrement: Bool) -> [GPKGUserCustomColumn]!
Parameters
idColumnName
id column name
autoincrement
autoincrement id values
Return Value
user custom columns
-
Create the required table columns, starting at the provided index
Declaration
Objective-C
+ (NSArray<GPKGUserCustomColumn *> *)createRequiredColumnsWithIndex: (int)startingIndex;
Swift
class func createRequiredColumns(with startingIndex: Int32) -> [GPKGUserCustomColumn]!
Parameters
startingIndex
starting index
Return Value
user custom columns
-
Create the required table columns, starting at the provided index
Declaration
Objective-C
+ (NSArray<GPKGUserCustomColumn *> *) createRequiredColumnsWithIndex:(int)startingIndex andAutoincrement:(BOOL)autoincrement;
Swift
class func createRequiredColumns(with startingIndex: Int32, andAutoincrement autoincrement: Bool) -> [GPKGUserCustomColumn]!
Parameters
startingIndex
starting index
autoincrement
autoincrement id values
Return Value
user custom columns
-
Create the required table columns with id column name, starting at the provided index
Declaration
Objective-C
+ (NSArray<GPKGUserCustomColumn *> *) createRequiredColumnsWithIndex:(int)startingIndex andIdColumnName:(NSString *)idColumnName;
Swift
class func createRequiredColumns(with startingIndex: Int32, andIdColumnName idColumnName: String!) -> [GPKGUserCustomColumn]!
Parameters
startingIndex
starting index
idColumnName
id column name
Return Value
user custom columns
-
Create the required table columns with id column name, starting at the provided index
Declaration
Objective-C
+ (NSArray<GPKGUserCustomColumn *> *) createRequiredColumnsWithIndex:(int)startingIndex andIdColumnName:(NSString *)idColumnName andAutoincrement:(BOOL)autoincrement;
Swift
class func createRequiredColumns(with startingIndex: Int32, andIdColumnName idColumnName: String!, andAutoincrement autoincrement: Bool) -> [GPKGUserCustomColumn]!
Parameters
startingIndex
starting index
idColumnName
id column name
autoincrement
autoincrement id values
Return Value
user custom columns
-
Create the primary key id column
Declaration
Objective-C
+ (GPKGUserCustomColumn *)createIdColumnWithName:(NSString *)idColumnName;
Swift
class func createIdColumn(withName idColumnName: String!) -> GPKGUserCustomColumn!
Parameters
idColumnName
id column name
Return Value
id column
-
Create the primary key id column
Declaration
Objective-C
+ (GPKGUserCustomColumn *)createIdColumnWithName:(NSString *)idColumnName andAutoincrement:(BOOL)autoincrement;
Swift
class func createIdColumn(withName idColumnName: String!, andAutoincrement autoincrement: Bool) -> GPKGUserCustomColumn!
Parameters
idColumnName
id column name
autoincrement
autoincrement id values
Return Value
id column
-
Create the primary key id column
Declaration
Objective-C
+ (GPKGUserCustomColumn *)createIdColumnWithIndex:(int)index andName:(NSString *)idColumnName;
Swift
class func createIdColumn(with index: Int32, andName idColumnName: String!) -> GPKGUserCustomColumn!
Parameters
index
column index
idColumnName
id column name
Return Value
id column
-
Create the primary key id column
Declaration
Objective-C
+ (GPKGUserCustomColumn *)createIdColumnWithIndex:(int)index andName:(NSString *)idColumnName andAutoincrement:(BOOL)autoincrement;
Swift
class func createIdColumn(with index: Int32, andName idColumnName: String!, andAutoincrement autoincrement: Bool) -> GPKGUserCustomColumn!
Parameters
index
column index
idColumnName
id column name
autoincrement
autoincrement id values
Return Value
id column
-
Get the number of required columns
Declaration
Objective-C
+ (int)numRequiredColumns;
Swift
class func numRequiredColumns() -> Int32
Return Value
required columns count
-
Get the required columns
Declaration
Objective-C
+ (NSArray<NSString *> *)requiredColumns;
Swift
class func requiredColumns() -> [String]!
Return Value
required columns
-
Get the required columns
Declaration
Objective-C
+ (NSArray<NSString *> *)requiredColumnsWithIdColumnName: (NSString *)idColumnName;
Swift
class func requiredColumns(withIdColumnName idColumnName: String!) -> [String]!
Parameters
idColumnName
id column name
Return Value
required columns
-
Initialize
Declaration
Objective-C
- (instancetype)initWithTable:(NSString *)tableName andColumns:(NSArray *)columns;
Swift
init!(table tableName: String!, andColumns columns: [Any]!)
Parameters
tableName
table name
columns
list of columns
Return Value
new simple attributes table
-
Initialize
Declaration
Objective-C
- (instancetype)initWithTable:(NSString *)tableName andColumns:(NSArray *)columns andIdColumnName:(NSString *)idColumnName;
Swift
init!(table tableName: String!, andColumns columns: [Any]!, andIdColumnName idColumnName: String!)
Parameters
tableName
table name
columns
list of columns
idColumnName
id column name
Return Value
new simple attributes table
-
Initialize
Declaration
Objective-C
- (instancetype)initWithTable:(GPKGUserCustomTable *)table;
Swift
init!(table: GPKGUserCustomTable!)
Parameters
table
user custom table
Return Value
new simple attributes table
-
Get the id column index
Declaration
Objective-C
- (int)idColumnIndex;
Swift
func idColumnIndex() -> Int32
Return Value
id column index
-
Get the id column
Declaration
Objective-C
- (GPKGUserCustomColumn *)idColumn;
Swift
func idColumn() -> GPKGUserCustomColumn!
Return Value
id column
-
Determine if the column is a non nullable simple type: TEXT, INTEGER, or REAL
Declaration
Objective-C
+ (BOOL)isSimpleColumn:(GPKGUserColumn *)column;
Swift
class func isSimpleColumn(_ column: GPKGUserColumn!) -> Bool
Parameters
column
user column
Return Value
true if a simple column
-
Determine if the data type is a simple type: TEXT, INTEGER, or REAL storage classes
Declaration
Objective-C
+ (BOOL)isSimpleDataType:(enum GPKGDataType)dataType;
Swift
class func isSimpleDataType(_ dataType: GPKGDataType) -> Bool
Parameters
dataType
data type
Return Value
true if a simple column