Where is the “Oracle” class and what does it provide?
The Oracle class is in the oracle.sqlj.runtime package for release 8.1.5 and higher and provides convenient static methods to create and close instances of the standard sqlj.runtime.ref.DefaultContext class, used for database connections. Use Oracle.connect() to create a DefaultContext instance and establish it as your default connection. Use Oracle.getConnection() to simply create a DefaultContext instance. Use Oracle.close() (available in release 8.1.6 and higher) to close your default connection. For earlier versions of Oracle SQLJ, you will have to use equivalent functionality (constructors and methods) of the standard sqlj.runtime.ref.DefaultContext class. See the SQLJ Developer’s Guide and Reference for more information.