IntervalYM supports the SQL92 datatype Year-Month Interval.
Leading field precision will be determined by number of decimal digits on input.
year int Year component. Valid values are -10^9 through 10^9.
month int Month component. Valid values are -11 through 11.
Return an IntervalYM with the value represented by instring.
Check if the interval is NULL.
Return the product of two IntervalYM values.
Return an interval with value (a/b).
Return an interval with value (a - b).
Return the sum of two IntervalYM values.
Set the interval to the values specified.
Set the interval to NULL.
Return the string representation of the interval.
Constructs a NULL IntervalYM object. A NULL IntervalYM can be initialized by assignment or calling operator*() method. Methods that can be called on NULL IntervalYM objects are setName() and isNull().
Constructs an IntervalYM object from val.
The source that the IntervalYM object will be copied from.
This method initializes the interval to the values in inpstr. The string is interpreted using the nls parameters set in the environment.
The nls parameters are picked up from env. If env is NULL, the nls parameters are picked up from the environment associated with the instance, if any.
This method returns the month component of the interval.
This method returns the year component of the interval.
This method tests whether the interval is NULL. If the interval is NULL then TRUE is returned; otherwise, FALSE is returned.
This method multiplies the interval by a factor and returns the result.
This method multiplies the interval by a specified value.
This method assigns the specified value to the interval.
This method compares the intervals specified. If the intervals are equal then TRUE is returned; otherwise, FALSE is returned. If either interval is NULL then SQLException is thrown.
This method compares the intervals specified. If the intervals are not equal then TRUE is returned; otherwise, FALSE is returned. If either interval is NULL then SQLException is thrown.
This method returns the result of dividing the interval by a factor.
This method divides the interval by a factor.
This method compares the intervals specified. If the first interval is greater than the second interval then TRUE is returned; otherwise, FALSE is returned. If either interval is NULL then SQLException is thrown.
This method compares the intervals specified. If the first interval is greater than or equal to the second interval then TRUE is returned; otherwise, FALSE is returned. If either interval is NULL then SQLException is thrown.
This method compares the intervals specified. If the first interval is less than the second interval then TRUE is returned; otherwise, FALSE is returned. If either interval is NULL then SQLException is thrown.
This method returns the difference between the intervals specified.
This method computes the difference between itself and another interval.
This method returns the sum of the intervals specified.
This method assigns the sum of IntervalYM and val to IntervalYM.
This method sets the interval to the values specified.
Year component. Valid values are -10^9 through 10^9.
Month component. Valid values are -11 through 11.
This method sets the interval to NULL.
This method returns the string representation of the interval.