Reference | Help | Introduction | Slide Show | Class Hierarchy | InterClient | ||
PREV | NEXT | FRAMES | NO FRAMES |
Specification released for public review June, 1998.
Download from http://java.sun.com/jdbc
The jdbc 2 core api was released for public review on june 1, 1998. As well as providing new database functionality, one of the goals of jdbc 2 is to leverage the new java technology which was released subsequently to jdbc 1. jdbc 1 was released with the jdk 1.0, and did not integrate with the new technology released in jdk 1.1 and 1.2. When jdbc 1 was released, there was no java beans component model. Under the java beans component model, a jdbc 2 rowset (part of jdbc 2 extension api) will be a serializable java bean. Jdbc 2 core will make use of the new internationalization features of the jdk 1.1.
Think of the new jdbc 2 java.sql package as a superset of the old jdbc 1 java.sql package. So jdbc 1 applications will continue to work under jdk 1.2, but they'll require new jdbc 2 drivers which support the new java.sql interfaces in jdk 1.2. InterClient will provide a driver for jdk 1.2, jdbc 2 methods which are not yet implemented will throw a SQLException.
Because of widely disparate capabilities of various dbms, almost everything new in jdbc 2 is optional.
Due to public review and beta use of the jdbc 2 core api as part of the jdk 1.2 beta, some new interface methods will be added in the final release which do not currently appear in the downloadable jdbc 2 specification as of today, August 30, 1998.
There are two basic kinds of results sets - scrollable or forward only.
And there are two basic kinds of scrollable result sets - sensitive and insensitive [cursors].
Sensitive result sets are sensitive to changes made by other transactions,
insensitive result sets are not
even sensitive to changes made within their own transaction.
Sensitive result sets may not sense all changes if setFetchSize() is greater than 1
because of client-side row caching by the driver.
refreshRows() has been added recently to jdbc 2 to allow for sensitivity to row
changes that might not otherwise be seen in a client cached row.
Updatable result sets will be supported using either database write locks or
an optimistic concurrency scheme in which, when rows are updated, the old row values
are compared to current values in the database to determine if an
update conflict has occurred. The optimistic concurrency algorithm is provided
within the driver, not requiring database locks, and can in fact allow
for disconnected rowset capability for mobile computing.
Read only result sets will also be supported
New ways of doing positioned updates and deletes, which was not well supported
in jdbc 1 and not universally supported by drivers.
Reference | Help | Introduction | Slide Show | Class Hierarchy | InterClient | ||
PREV | NEXT | FRAMES | NO FRAMES |