9.9. ADO.NET for JDBC Programmers

JDBC is related in concept to ODBC and shares some additional features with OLE DB and ADO. JDBC's three main interfaces are Connection, Statement, and ResultSet. There are two additional subclasses of the Statement interface: PreparedStatement (statements that can use input parameters) and CallableStatement (statements that can return output parameters).

The three main JDBC interfaces most closely correspond to ADO.NET's IDb-Connection, IDbCommand, and IDataReader. JDBC also defines RowSet, an interface that inherits from ResultSet. It is meant for implementing disconnected ResultSet operations, although the exact semantics of this class differ with each implementation. Some available beta implementations of ...

Get Essential ADO.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.