Temporal Databases and Mediators ◾ 11
program that needs to access a specic database management system has
to import and register the appropriate driver. In the program, we import
the Oracle
TM
driver and the corresponding importation and registration
statements are
import oracle.jdbc.driver.*;
and
DriverManager.registerDriver (new oracle.jdbc.driver.
OracleDriver());
Java oers some useful features for temporal queries. Note that as new
releases of Java become available, some of the classes/methods mentioned
below might change or become deprecated. e programs in Appendix B
were compiled using JDK 1.6.0.
A class • Date, which represents an instance in time using year, month,
day, hour, minute, second, and millisecond information. is cla ...