Public member functions documentation

void fromString(std::string str)
Construct the field from the string.
Parameters
str
The string to assign from.
bool isValidInterval() const
Determines whether a Netezza-encoded Interval value is valid and within range.
Returns

FALSE if intervalMonth< ENC_INTERVAL_MONTH_MIN or intervalMonth>

ENC_INTERVAL_MONTH_MAX. TRUE otherwise.

NzaeIntervalField()
Constructs a NULL interval field.
NzaeIntervalField(const NzaeIntervalField &field)
Construcst an interval field with value field.
Parameters
NzaeIntervalField field
The NzaeIntervalField value.
NzaeIntervalField(NzudsInterval val)
Constructs an interval field with value val.
Parameters
val
The encoded interval value.
operator const NzaeTimeField() const
Returns the time field value.
Returns
The time value converted from the interval.
See also: NzaeTimeField.
operator const NzudsInterval &() const
Returns the encoded field value.
Returns
The encoded value.
operator NzudsInterval &()
Returns the encoded field value.
Returns
The encoded value.
bool operator!=(const NzaeIntervalField &x) const
Not Equal.
Parameters
NzaeIntervalField x
Field to compare.
Returns
true if field is not equal to x.
Exceptions
NzaeException
bool operator<(const NzaeIntervalField &x) const
Less than.
Parameters
NzaeIntervalField x
Field to compare.
Returns
True if field is less than x.
Exceptions
NzaeException
bool operator<=(const NzaeIntervalField &x) const
Less than or equal.
Parameters
NzaeIntervalField x
Field to compare.
Returns
TRUE if field is less than x.
Exceptions
NzaeException
NzaeIntervalField& operator=(NzaeField &field)
Assigns the value of the argument to a field object.
NzaeField field
The field to assign.
Returns
NzaeIntervalField
The field argument may be a different type, as long as it is compatible.
NzaeIntervalField& operator=(const NzaeIntervalField &field)
Assigns the value of the argument to a field object.
Parameters
NzaeIntervalField field
The field to assign.
Returns
NzaeIntervalField
NzaeIntervalField& operator=(NzudsInterval val)
Assigns the value of the argument to a field object.
Parameters
val
The encoded value to assign.
Returns
NzaeIntervalField
bool operator==(const NzaeIntervalField &x) const
Equal to.
Parameters
NzaeIntervalField x
The field to compare.
Returns
TRUE if the field is equal to x.
Exceptions
NzaeException
bool operator>(const NzaeIntervalField &x) const
Greater than.
Parameters
NzaeIntervalField x
Field to compare.
Returns
TRUE if the field is greater than x.
Exceptions
NzaeException
bool operator>=(const NzaeIntervalField &x) const
Greater than or equal.
Parameters
NzaeIntervalField x
Field to compare.
Returns
TRUE if the field is greater than or equal to x.
Exceptions
NzaeException
std::string toString() const
Returns the string representation of the field.
Returns
The string representation.
virtual NzaeDataTypes::Types type() const
Returns the type of the field.
Returns
Types
The field type.