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
field
Name of the field to be compared.
lowerLimitInt
Int lower limit value.
lowerIncluded
True 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
field
Name of the field to be compared.
lowerLimitDouble
Double lower limit value.
lowerIncluded
True 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
field
Name of the field to be compared.
upperLimitInt
Int upper limit value.
upperIncluded
True 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
field
Name of the field to be compared.
upperLimitDouble
Double upper limit value.
upperIncluded
True 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
field
Name of the field to be compared.
lowerLimitInt
Int lower limit value.
lowerIncluded
True provided to include lowerLimit
upperLimit
Int upper limit value.
upperIncluded
True 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
field
Name of the field to be compared.
lowerLimitDouble
Double lower limit value.
lowerIncluded
True provided to include lowerLimit
upperLimit
Double upper limit value.
upperIncluded
True 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() -> NSDictionary
Return Value
a NSDictionary instance.