Value class.
More...
Value class.
It is a container which stores a value and its data type (domain). A Value can be NULL.
- Author
- Sparsity Technologies http://www.sparsity-technologies.com
Compares with the given Value.
It does not work if the given Value objects does not have the same DataType.
- Parameters
-
value | Given value to compare to. |
- Returns
- 0 if this Value is equal to the given one; a value less than 0 if this Value is less than the given one; and a value greater than 0 if this Value is greater than the given one.
Compares with the given Value.
It does not work if the given Value objects does not have the same DataType.
- Parameters
-
value | Given value to compare to. |
- Returns
- TRUE if this Value is equal to the given one; FALSE otherwise.
Gets Boolean Value.
This must be a non-NULL Boolean Value.
- Returns
- The Boolean Value.
- (enum STSDataType) getDataType |
|
|
|
Gets the DataType.
Value cannot be NULL.
- Returns
- The DataType.
Gets Double Value.
This must be a non-NULL Double Value.
- Returns
- The Double Value.
Gets Integer Value.
This must be a non-NULL Integer Value.
- Returns
- The Integer Value.
Gets Long Value.
This must be a non-NULL Long Value.
- Returns
- The Long Value.
Gets OID Value.
This must be an non-NULL OID Value.
- Returns
- The OID Value.
Gets String Value.
This must be a non-NULL String Value.
- Returns
- The String Value.
- (long long) getTimestamp |
|
|
|
Gets Timestamp Value.
This must be a non-NULL Timestamp Value.
- Returns
- The Timestamp Value.
- (NSDate *) getTimestampAsNSDate |
|
|
|
Gets Timestamp Value as a NSDate.
This must be a non-NULL Timestamp Value.
- Returns
- The Timestamp Value.
Creates a new instance.
It creates a NULL Value.
- (id) initWithValue: |
|
(STSValue *) |
value |
|
Copy constructor.
- Parameters
-
value | [in] Value to be copied. |
Gets if this is a NULL Value.
- Returns
- TRUE if this is a NULL Value, FALSE otherwise.
Sets the value to the given Value.
- Parameters
-
- Returns
- Returns this Value.
Sets the value to the given boolean.
- Parameters
-
- Returns
- Returns this Value.
- (void) setBooleanVoid: |
|
(BOOL) |
value |
|
Sets the Value.
- Parameters
-
value | [in] New Boolean value. |
Sets the value to the given double number.
- Parameters
-
- Returns
- Returns this Value.
- (void) setDoubleVoid: |
|
(double) |
value |
|
Sets the Value.
- Parameters
-
value | [in] New Double value. |
Sets the value to the given integer number.
- Parameters
-
- Returns
- Returns this Value.
- (void) setIntegerVoid: |
|
(int) |
value |
|
Sets the Value.
- Parameters
-
value | [in] New Integer value. |
- (STSValue*) setLong: |
|
(long long) |
value |
|
Sets the value to the given long long number.
- Parameters
-
- Returns
- Returns this Value.
- (void) setLongVoid: |
|
(long long) |
value |
|
Sets the Value.
- Parameters
-
value | [in] New Long value. |
Sets the value to NULL.
- Returns
- Returns this Value.
Sets the value to the given OID.
- Parameters
-
- Returns
- Returns this Value.
- (void) setOidVoid: |
|
(long long) |
value |
|
Sets the OID Value.
- Parameters
-
- (STSValue*) setString: |
|
(NSString *) |
value |
|
Sets the value to the given string.
- Parameters
-
- Returns
- Returns this Value.
- (void) setStringVoid: |
|
(NSString *) |
value |
|
Sets the Value.
- Parameters
-
value | [in] New String value. |
- (STSValue*) setTimestamp: |
|
(long long) |
value |
|
Sets the value to the given timestamp.
- Parameters
-
- Returns
- Returns this Value.
- (void) setTimestampVoid: |
|
(long long) |
value |
|
Sets the Value.
- Parameters
-
value | [in] New Timestamp value. |
- (void) setTimestampVoidWithYear: |
|
(int) |
year |
month: |
|
(int) |
month |
day: |
|
(int) |
day |
hour: |
|
(int) |
hour |
minutes: |
|
(int) |
minutes |
seconds: |
|
(int) |
seconds |
millisecs: |
|
(int) |
millisecs |
|
|
| |
Sets the Value.
- Parameters
-
year | [in] The year (>=1970). |
month | [in] The month ([1..12]). |
day | [in] The of the month ([1..31]). |
hour | [in] The hour ([0..23]). |
minutes | [in] The minutes ([0..59]). |
seconds | [in] The seconds ([0..59]). |
millisecs | [in] The milliseconds ([0..999]). |
- (STSValue*) setTimestampWithNSDate: |
|
(NSDate *) |
date |
|
Sets the value to the given NSDate timestamp.
- Parameters
-
- Returns
- Returns this Value.
- (STSValue*) setTimestampWithYear: |
|
(int) |
year |
month: |
|
(int) |
month |
day: |
|
(int) |
day |
hour: |
|
(int) |
hour |
minutes: |
|
(int) |
minutes |
seconds: |
|
(int) |
seconds |
milliseconds: |
|
(int) |
millisecs |
|
|
| |
Sets the value to the given timestamp.
- Parameters
-
year | [in] The year (>=1970). |
month | [in] The month ([1..12]). |
day | [in] The of the month ([1..31]). |
hour | [in] The hour ([0..23]). |
minutes | [in] The minutes ([0..59]). |
seconds | [in] The seconds ([0..59]). |
millisecs | [in] The milliseconds ([0..999]). |
- Returns
- Returns this Value.
Sets the Value.
- Parameters
-
The documentation for this class was generated from the following file: