GPKGMappedColumn

Objective-C

@interface GPKGMappedColumn : NSObject

Swift

class GPKGMappedColumn : NSObject

Mapped column, to a column and potentially from a differently named column

  • To column

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *toColumn;

    Swift

    var toColumn: String! { get set }
  • From column or null if the same as to column

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *fromColumn;

    Swift

    var fromColumn: String! { get set }
  • Default to column value

    Declaration

    Objective-C

    @property (nonatomic, strong) NSObject *defaultValue;

    Swift

    var defaultValue: NSObject! { get set }
  • Column data type

    Declaration

    Objective-C

    @property (nonatomic) enum GPKGDataType dataType;

    Swift

    var dataType: GPKGDataType { get set }
  • Constant value

    Declaration

    Objective-C

    @property (nonatomic, strong) NSObject *constantValue;

    Swift

    var constantValue: NSObject! { get set }
  • Where value

    Declaration

    Objective-C

    @property (nonatomic, strong) NSObject *whereValue;

    Swift

    var whereValue: NSObject! { get set }
  • Where value comparison operator (=, <, etc)

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *whereOperator;

    Swift

    var whereOperator: String! { get set }
  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithToColumn:(NSString *)toColumn;

    Swift

    init!(toColumn: String!)

    Parameters

    toColumn

    to column

    Return Value

    new mapped column

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithToColumn:(NSString *)toColumn
                       andFromColumn:(NSString *)fromColumn;

    Swift

    init!(toColumn: String!, andFromColumn fromColumn: String!)

    Parameters

    toColumn

    to column

    fromColumn

    from column

    Return Value

    new mapped column

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithToColumn:(NSString *)toColumn
                       andFromColumn:(NSString *)fromColumn
                     andDefaultValue:(NSObject *)defaultValue
                         andDataType:(enum GPKGDataType)dataType;

    Swift

    init!(toColumn: String!, andFromColumn fromColumn: String!, andDefaultValue defaultValue: NSObject!, andDataType dataType: GPKGDataType)

    Parameters

    toColumn

    to column

    fromColumn

    from column

    defaultValue

    default value

    dataType

    data type

    Return Value

    new mapped column

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithToColumn:(NSString *)toColumn
                     andDefaultValue:(NSObject *)defaultValue
                         andDataType:(enum GPKGDataType)dataType;

    Swift

    init!(toColumn: String!, andDefaultValue defaultValue: NSObject!, andDataType dataType: GPKGDataType)

    Parameters

    toColumn

    to column

    defaultValue

    default value

    dataType

    data type

    Return Value

    new mapped column

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithUserColumn:(GPKGUserColumn *)column;

    Swift

    init!(userColumn column: GPKGUserColumn!)

    Parameters

    column

    user column

    Return Value

    new mapped column

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithTableColumn:(GPKGTableColumn *)column;

    Swift

    init!(tableColumn column: GPKGTableColumn!)

    Parameters

    column

    table column

    Return Value

    new mapped column

  • Determine if the column has a new name

    Declaration

    Objective-C

    - (BOOL)hasNewName;

    Swift

    func hasNewName() -> Bool

    Return Value

    true if the to and from column names are different

  • Check if the column has a default value

    Declaration

    Objective-C

    - (BOOL)hasDefaultValue;

    Swift

    func hasDefaultValue() -> Bool

    Return Value

    true if has a default value

  • Get the default value as a string

    Declaration

    Objective-C

    - (NSString *)defaultValueAsString;

    Swift

    func defaultValueAsString() -> String!

    Return Value

    default value as string

  • Check if the column has a constant value

    Declaration

    Objective-C

    - (BOOL)hasConstantValue;

    Swift

    func hasConstantValue() -> Bool

    Return Value

    true if has a constant value

  • Get the constant value as a string

    Declaration

    Objective-C

    - (NSString *)constantValueAsString;

    Swift

    func constantValueAsString() -> String!

    Return Value

    constant value as string

  • Check if the column has a where value

    Declaration

    Objective-C

    - (BOOL)hasWhereValue;

    Swift

    func hasWhereValue() -> Bool

    Return Value

    true if has a where value

  • Get the where value as a string

    Declaration

    Objective-C

    - (NSString *)whereValueAsString;

    Swift

    func whereValueAsString() -> String!

    Return Value

    where value as string

  • Set the where value

    Declaration

    Objective-C

    - (void)setWhereValue:(NSObject *)whereValue
             withOperator:(NSString *)whereOperator;

    Swift

    func setWhereValue(_ whereValue: NSObject!, withOperator whereOperator: String!)

    Parameters

    whereValue

    where value

    whereOperator

    where operator