Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Where is the “Oracle” class and what does it provide?

class Oracle
0
Posted

Where is the “Oracle” class and what does it provide?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.