The Interval class
The com.informix.lang.Interval class is the HCL
OneDB™-specific extension to the JDBC specification.
Interval is the base class for the INTERVAL data type. Interval has two subclasses: IntervalYM (for
year-month qualifiers) and IntervalDF (for day-time qualifiers). You use these subclasses to create
and manipulate INTERVAL data types.
Tip: Many of the Interval, IntervalYM,
and IntervalDF constructors take a Connection object as a parameter. This passes the
value of the CLIENT_LOCALE environment variable to the Interval,
IntervalYM, or IntervalDF object, which allows the display of localized error messages
if an exception is thrown. For more information, see Support for globalized error messages.
For information about the string INTERVAL formats in this section, see the HCL OneDB Guide to SQL: Syntax.
This section discusses many of the methods you can use with the INTERVAL data types. For complete reference information, see the online reference documentation in the directory doc/javadoc/* after you install your software. (The doc directory is a subdirectory of the directory where you installed HCL OneDB JDBC Driver.)