Package java.sql

Interface Summary
Array sample code for java.sql.Array definition code for java.sql.Array The mapping in the Java programming language for the SQL type ARRAY.
Blob sample code for java.sql.Blob definition code for java.sql.Blob The representation (mapping) in the JavaTM programming language of an SQL BLOB value.
CallableStatement sample code for java.sql.CallableStatement definition code for java.sql.CallableStatement The interface used to execute SQL stored procedures.
Clob sample code for java.sql.Clob definition code for java.sql.Clob The mapping in the JavaTM programming language for the SQL CLOB type.
Connection sample code for java.sql.Connection definition code for java.sql.Connection A connection (session) with a specific database.
DatabaseMetaData sample code for java.sql.DatabaseMetaData definition code for java.sql.DatabaseMetaData Comprehensive information about the database as a whole.
Driver sample code for java.sql.Driver definition code for java.sql.Driver The interface that every driver class must implement.
ParameterMetaData sample code for java.sql.ParameterMetaData definition code for java.sql.ParameterMetaData An object that can be used to get information about the types and properties of the parameters in a PreparedStatement object.
PreparedStatement sample code for java.sql.PreparedStatement definition code for java.sql.PreparedStatement An object that represents a precompiled SQL statement.
Ref sample code for java.sql.Ref definition code for java.sql.Ref The mapping in the Java programming language of an SQL REF value, which is a reference to an SQL structured type value in the database.
ResultSet sample code for java.sql.ResultSet definition code for java.sql.ResultSet A table of data representing a database result set, which is usually generated by executing a statement that queries the database.
ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData An object that can be used to get information about the types and properties of the columns in a ResultSet object.
Savepoint sample code for java.sql.Savepoint definition code for java.sql.Savepoint The representation of a savepoint, which is a point within the current transaction that can be referenced from the Connection.rollback method.
SQLData sample code for java.sql.SQLData definition code for java.sql.SQLData The interface used for the custom mapping of an SQL user-defined type (UDT) to a class in the Java programming language.
SQLInput sample code for java.sql.SQLInput definition code for java.sql.SQLInput An input stream that contains a stream of values representing an instance of an SQL structured type or an SQL distinct type.
SQLOutput sample code for java.sql.SQLOutput definition code for java.sql.SQLOutput The output stream for writing the attributes of a user-defined type back to the database.
Statement sample code for java.sql.Statement definition code for java.sql.Statement The object used for executing a static SQL statement and returning the results it produces.
Struct sample code for java.sql.Struct definition code for java.sql.Struct The standard mapping in the Java programming language for an SQL structured type.

Class Summary
Date sample code for java.sql.Date definition code for java.sql.Date A thin wrapper around a millisecond value that allows JDBC to identify this as an SQL DATE value.
DriverManager sample code for java.sql.DriverManager definition code for java.sql.DriverManager The basic service for managing a set of JDBC drivers.
NOTE: The DataSource interface, new in the JDBC 2.0 API, provides another way to connect to a data source.
DriverPropertyInfo sample code for java.sql.DriverPropertyInfo definition code for java.sql.DriverPropertyInfo Driver properties for making a connection.
SQLPermission sample code for java.sql.SQLPermission definition code for java.sql.SQLPermission The permission for which the SecurityManager will check when code that is running in an applet calls the DriverManager.setLogWriter method or the DriverManager.setLogStream (deprecated) method.
Time sample code for java.sql.Time definition code for java.sql.Time A thin wrapper around the java.util.Date class that allows the JDBC API to identify this as an SQL TIME value.
Timestamp sample code for java.sql.Timestamp definition code for java.sql.Timestamp A thin wrapper around java.util.Date that allows the JDBC API to identify this as an SQL TIMESTAMP value.
Types sample code for java.sql.Types definition code for java.sql.Types The class that defines the constants that are used to identify generic SQL types, called JDBC types.

Exception Summary
BatchUpdateException sample code for java.sql.BatchUpdateException definition code for java.sql.BatchUpdateException An exception thrown when an error occurs during a batch update operation.
DataTruncation sample code for java.sql.DataTruncation definition code for java.sql.DataTruncation An exception that reports a DataTruncation warning (on reads) or throws a DataTruncation exception (on writes) when JDBC unexpectedly truncates a data value.
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException An exception that provides information on a database access error or other errors.
SQLWarning sample code for java.sql.SQLWarning definition code for java.sql.SQLWarning An exception that provides information on database access warnings.