Using the JDBC Interfaces

From InterBase
Jump to: navigation, search

Go Up to Developing InterClient Programs


The JDBC API is a set of Java interfaces that allow database applications to open connections to a database, execute SQL statements, and process the results. These include:

java.sql.DriverManager

Loads the specific drivers and supports creating new database connections.

java.sql.Connection

Represents a connection to a specific database.

java.sql.Statement

Allows the application to execute a SQL statement.

java.sql.PreparedStatement

Represents a pre-compiled SQL statement.

The following methods have been implemented:

  • Public void setObject (int parameterIndex, Object x) now works when parameter x is of type java.io.Inputstream.
  • All variations of the setCharacterStream () method are implemented.
  • All variations of the setAsciiStream() and setBinaryStream() methods are implemented.
  • All variations of setBlob () and setClob() methods are implemented.
  • The isClosed() method is implemented.

java.sql.CallableStatement

Represents a call to a stored procedure in the database.

java.sql.ResultSet

Controls access to the rows resulting from a statement execution.

The following methods have been implemented:

  • All variations of the getCharacterStream () method are implemented.
  • All variations of the getBlob () and getClob() methods are implemented.

JDBC interfaces

Topics