Value class.
More...
#include <Sparksee.h>
|
|
(int) | + getMaxLengthString |
| | Maximum number of characters allowed for a String.
|
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
◆ compare:
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.
◆ equals:
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.
◆ getBoolean
Gets Boolean Value.
This must be a non-NULL Boolean Value.
- Returns
- The Boolean Value.
References getBoolean.
Referenced by getBoolean.
◆ getDataType
| - (enum STSDataType) getDataType |
|
|
|
Gets the DataType.
Value cannot be NULL.
- Returns
- The DataType.
References getDataType.
Referenced by getDataType.
◆ getDouble
Gets Double Value.
This must be a non-NULL Double Value.
- Returns
- The Double Value.
References getDouble.
Referenced by getDouble.
◆ getInteger
Gets Integer Value.
This must be a non-NULL Integer Value.
- Returns
- The Integer Value.
References getInteger.
Referenced by getInteger.
◆ getLong
Gets Long Value.
This must be a non-NULL Long Value.
- Returns
- The Long Value.
References getLong.
Referenced by getLong.
◆ getOid
Gets OID Value.
This must be an non-NULL OID Value.
- Returns
- The OID Value.
References getOid.
Referenced by getOid.
◆ getString
Gets String Value.
This must be a non-NULL String Value.
- Returns
- The String Value.
References getString.
Referenced by getString.
◆ getTimestamp
| - (long long) getTimestamp |
|
|
|
Gets Timestamp Value.
This must be a non-NULL Timestamp Value.
- Returns
- The Timestamp Value.
References getTimestamp.
Referenced by getTimestamp.
◆ getTimestampAsNSDate
| - (NSDate *) getTimestampAsNSDate |
|
|
|
◆ init
Creates a new instance.
It creates a NULL Value.
References init.
Referenced by init.
◆ initWithValue:
| - (id) initWithValue: |
|
(STSValue *) | value |
|
Copy constructor.
- Parameters
-
| value | [in] Value to be copied. |
◆ isNull
Gets if this is a NULL Value.
- Returns
- TRUE if this is a NULL Value, FALSE otherwise.
References isNull.
Referenced by isNull.
◆ set:
Sets the value to the given Value.
- Parameters
-
- Returns
- Returns this Value.
◆ setBoolean:
Sets the value to the given boolean.
- Parameters
-
- Returns
- Returns this Value.
◆ setBooleanVoid:
| - (void) setBooleanVoid: |
|
(BOOL) | value |
|
Sets the Value.
- Parameters
-
| value | [in] New Boolean value. |
◆ setDouble:
| - (STSValue *) setDouble: |
|
(double) | value |
|
Sets the value to the given double number.
- Parameters
-
- Returns
- Returns this Value.
◆ setDoubleVoid:
| - (void) setDoubleVoid: |
|
(double) | value |
|
Sets the Value.
- Parameters
-
| value | [in] New Double value. |
◆ setInteger:
Sets the value to the given integer number.
- Parameters
-
- Returns
- Returns this Value.
◆ setIntegerVoid:
| - (void) setIntegerVoid: |
|
(int) | value |
|
Sets the Value.
- Parameters
-
| value | [in] New Integer value. |
◆ setLong:
| - (STSValue *) setLong: |
|
(long long) | value |
|
Sets the value to the given long long number.
- Parameters
-
- Returns
- Returns this Value.
◆ setLongVoid:
| - (void) setLongVoid: |
|
(long long) | value |
|
Sets the Value.
- Parameters
-
| value | [in] New Long value. |
◆ setNull
Sets the value to NULL.
- Returns
- Returns this Value.
References setNull.
Referenced by setNull.
◆ setOid:
| - (STSValue *) setOid: |
|
(long long) | value |
|
Sets the value to the given OID.
- Parameters
-
- Returns
- Returns this Value.
◆ setOidVoid:
| - (void) setOidVoid: |
|
(long long) | value |
|
Sets the OID Value.
- Parameters
-
◆ setString:
| - (STSValue *) setString: |
|
(NSString *) | value |
|
Sets the value to the given string.
- Parameters
-
- Returns
- Returns this Value.
◆ setStringVoid:
| - (void) setStringVoid: |
|
(NSString *) | value |
|
Sets the Value.
- Parameters
-
| value | [in] New String value. |
◆ setTimestamp:
| - (STSValue *) setTimestamp: |
|
(long long) | value |
|
Sets the value to the given timestamp.
- Parameters
-
- Returns
- Returns this Value.
◆ setTimestampVoid:
| - (void) setTimestampVoid: |
|
(long long) | value |
|
Sets the Value.
- Parameters
-
| value | [in] New Timestamp value. |
◆ setTimestampVoidWithYear:month:day:hour:minutes:seconds:millisecs:
| - (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]). |
◆ setTimestampWithNSDate:
| - (STSValue *) setTimestampWithNSDate: |
|
(NSDate *) | date |
|
Sets the value to the given NSDate timestamp.
- Parameters
-
- Returns
- Returns this Value.
◆ setTimestampWithYear:month:day:hour:minutes:seconds:milliseconds:
| - (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.
◆ setVoid:
Sets the Value.
- Parameters
-
The documentation for this class was generated from the following file: