RangeClause
public class RangeClause: NSObject, Clause
Class represents Range clause.
-
Initialize with Int left hand side value. this works as >(greater than) if lower included is false and as >=(greater than or equals) if lower included is true.
Parameter
Parameter field: Name of the field to be compared.Parameter
Parameter lowerLimitInt: Int lower limit value.Parameter
Parameter lowerIncluded: True provided to include lowerLimitDeclaration
Swift
public init(field:String, lowerLimitInt:Int, lowerIncluded: Bool)Parameters
fieldName of the field to be compared.
lowerLimitIntInt lower limit value.
lowerIncludedTrue provided to include lowerLimit
-
Initialize with Double left hand side value. this works as >(greater than) if lower included is false and as >=(greater than or equals) if lower included is true.
Parameter
Parameter field: Name of the field to be compared.Parameter
Parameter lowerLimitDouble: Double lower limit value.Parameter
Parameter lowerIncluded: True provided to include lowerLimitDeclaration
Swift
public init(field:String, lowerLimitDouble:Double, lowerIncluded: Bool)Parameters
fieldName of the field to be compared.
lowerLimitDoubleDouble lower limit value.
lowerIncludedTrue provided to include lowerLimit
-
Initialize with Int left hand side value. this works as <(less than) if upper included is false and as <=(less than or equals) if upper included is true.
Parameter
Parameter field: Name of the field to be compared.Parameter
Parameter upperLimitInt: Int upper limit value.Parameter
Parameter upperIncluded: True provided to include upperLimitDeclaration
Swift
public init(field:String, upperLimitInt:Int, upperIncluded: Bool)Parameters
fieldName of the field to be compared.
upperLimitIntInt upper limit value.
upperIncludedTrue provided to include upperLimit
-
Initialize with Double left hand side value. this works as <(less than) if upper included is false and as <=(less than or equals) if upper included is true.
Parameter
Parameter field: Name of the field to be compared.Parameter
Parameter upperLimitDouble: Double upper limit value.Parameter
Parameter upperIncluded: True provided to include upperLimitDeclaration
Swift
public init(field:String, upperLimitDouble:Double, upperIncluded: Bool)Parameters
fieldName of the field to be compared.
upperLimitDoubleDouble upper limit value.
upperIncludedTrue provided to include upperLimit
-
Initialize with Range. this works in the following cases: -
>(greater than) and <(less than)
if lower included is false and upper included is false. ->=(greater than or equals) and <(less than)
if lower included is true and upper included is false. ->(greater than) and <=(less than and equals)
if lower included is false and upper included is true. ->=(greater than and equals) and <=(less than and equals)
if lower included is true and upper included is true.Parameter
Parameter field: Name of the field to be compared.Parameter
Parameter lowerLimitInt: Int lower limit value.Parameter
Parameter lowerIncluded: True provided to include lowerLimitParameter
Parameter upperLimit: Int upper limit value.Parameter
Parameter upperIncluded: True provided to include upperLimitDeclaration
Swift
public init(field:String, lowerLimitInt: Int, lowerIncluded: Bool, upperLimit: Int, upperIncluded: Bool)Parameters
fieldName of the field to be compared.
lowerLimitIntInt lower limit value.
lowerIncludedTrue provided to include lowerLimit
upperLimitInt upper limit value.
upperIncludedTrue provided to include upperLimit
-
Initialize with Range. this works in the following cases: -
>(greater than) and <(less than)
if lower included is false and upper included is false. ->=(greater than or equals) and <(less than)
if lower included is true and upper included is false. ->(greater than) and <=(less than and equals)
if lower included is false and upper included is true. ->=(greater than and equals) and <=(less than and equals)
if lower included is true and upper included is true.Parameter
Parameter field: Name of the field to be compared.Parameter
Parameter lowerLimitDouble: Double lower limit value.Parameter
Parameter lowerIncluded: True provided to include lowerLimitParameter
Parameter upperLimit: Double upper limit value.Parameter
Parameter upperIncluded: True provided to include upperLimitDeclaration
Swift
public init(field:String, lowerLimitDouble: Double, lowerIncluded: Bool, upperLimit: Double, upperIncluded: Bool)Parameters
fieldName of the field to be compared.
lowerLimitDoubleDouble lower limit value.
lowerIncludedTrue provided to include lowerLimit
upperLimitDouble upper limit value.
upperIncludedTrue provided to include upperLimit
-
Undocumented
Declaration
Swift
public class RangeClause: NSObject, Clause -
Undocumented
Declaration
Swift
public class RangeClause: NSObject, Clause -
Get Clause as NSDictionary instance
Returns
a NSDictionary instance.Declaration
Swift
public func toNSDictionary() -> NSDictionaryReturn Value
a NSDictionary instance.
View on GitHub
RangeClause Class Reference