GPKGMediaTable
Objective-C
@interface GPKGMediaTable : GPKGUserRelatedTable
Swift
class GPKGMediaTable : GPKGUserRelatedTable
Media Requirements Class User-Defined Related Data Table
-
User-Defined Media Table relation name
Declaration
Objective-C
+ (enum GPKGRelationType)relationType;
Swift
class func relationType() -> GPKGRelationType
Return Value
relation type
-
Create a media table with the metadata
Declaration
Objective-C
+ (GPKGMediaTable *)createWithMetadata:(GPKGMediaTableMetadata *)metadata;
Swift
class func create(with metadata: GPKGMediaTableMetadata!) -> GPKGMediaTable!
Parameters
metadata
media table metadata
Return Value
media 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
-
Create a data column
Declaration
Objective-C
+ (GPKGUserCustomColumn *)createDataColumn;
Swift
class func createDataColumn() -> GPKGUserCustomColumn!
Return Value
data column
-
Create a data column
Declaration
Objective-C
+ (GPKGUserCustomColumn *)createDataColumnWithIndex:(int)index;
Swift
class func createDataColumn(with index: Int32) -> GPKGUserCustomColumn!
Parameters
index
column index
Return Value
data column
-
Create a content type column
Declaration
Objective-C
+ (GPKGUserCustomColumn *)createContentTypeColumn;
Swift
class func createContentTypeColumn() -> GPKGUserCustomColumn!
Return Value
content type column
-
Create a content type column
Declaration
Objective-C
+ (GPKGUserCustomColumn *)createContentTypeColumnWithIndex:(int)index;
Swift
class func createContentTypeColumn(with index: Int32) -> GPKGUserCustomColumn!
Parameters
index
column index
Return Value
content type 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 media 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 media table
-
Initialize
Declaration
Objective-C
- (instancetype)initWithTable:(GPKGUserCustomTable *)table;
Swift
init!(table: GPKGUserCustomTable!)
Parameters
table
user custom table
Return Value
new media 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
-
Get the data column index
Declaration
Objective-C
- (int)dataColumnIndex;
Swift
func dataColumnIndex() -> Int32
Return Value
data column index
-
Get the data column
Declaration
Objective-C
- (GPKGUserCustomColumn *)dataColumn;
Swift
func dataColumn() -> GPKGUserCustomColumn!
Return Value
data column
-
Get the content type column index
Declaration
Objective-C
- (int)contentTypeColumnIndex;
Swift
func contentTypeColumnIndex() -> Int32
Return Value
content type column index
-
Get the content type column
Declaration
Objective-C
- (GPKGUserCustomColumn *)contentTypeColumn;
Swift
func contentTypeColumn() -> GPKGUserCustomColumn!
Return Value
content type column