The Statement Interface

The Statement interface is the base interface in the JDBC API. A Statement interface is implemented by the JDBC driver to provide the ability to execute SQL statements from Java applications using the JDBC API and the JDBC driver. A Statement object is created from a database connection obtained either by loading and initializing the JDBC driver, or from the connection pool configured in the WebLogic Server.

Yesterday you saw all the ways a WebLogic Server configures connection pools for databases using the JDBC driver. You can create and close any number of Statement objects in your JDBC application.

A programmer uses the Statement object as a handle to interact with the database. The SQL statement types that the Statement ...

Get Sams Teach Yourself BEA WebLogic Server 7.0™ in 21 Days 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.