Since: API Level 1
package

java.sql

Classes | Description

Provides a compatibility interface for accessing SQL-based databases.

more...

Interfaces

ArrayA Java representation of the SQL ARRAY type. 
BlobA Java interface representing the SQL BLOB type. 
CallableStatementAn interface used to call Stored Procedures
ClobA Java interface mapping for the SQL CLOB type. 
ConnectionA connection represents a link from a Java application to a database. 
DatabaseMetaDataAn interface which provides comprehensive information about the database management system and its supported features. 
DriverAn interface to a JDBC driver. 
NClob 
ParameterMetaDataAn interface used to get information about the types and properties of parameters in a PreparedStatement
PreparedStatementAn interface for a precompiled SQL Statement. 
RefThis interface represents an SQL Ref - a data object containing a cursor or pointer to a result table. 
ResultSetAn interface for an object which represents a database table entry, returned as the result of the query to the database. 
ResultSetMetaDataProvides information about the columns returned in a ResultSet
RowIdMaps SQL's ROWID type into Java. 
SavepointA savepoint is an instant during the current transaction that can be utilized by a rollback via the rollback() command. 
SQLDataAn interface for the custom mapping of an SQL User Defined Type (UDT) to a Java class. 
SQLInputThe SQLInput interface defines operations which apply to a type of input stream which carries a series of values representing an instance of an SQL structured type or SQL distinct type. 
SQLOutputThe interface for an output stream used to write attributes of an SQL User Defined Type (UDT) to the database. 
SQLXMLMaps SQL's XML type into Java. 
StatementInterface used for executing static SQL statements to retrieve query results. 
StructAn interface which provides facilities for manipulating an SQL structured type as a Java object. 
WrapperThis class is an actual usage of the wrapper pattern for JDBC classes. 

Classes

DateA class which can consume and produce dates in SQL Date format. 
DriverManagerProvides facilities for managing JDBC drivers. 
DriverPropertyInfoA class holding information about driver properties of a database connection. 
SQLPermissionA Permission relating to security access control in the java.sql package. 
TimeJava representation of an SQL TIME value. 
TimestampA Java representation of the SQL TIMESTAMP type. 
TypesA class which defines constants used to identify generic SQL types, also called JDBC types. 

Enums

ClientInfoStatusAn enumeration to describe the reason why a property cannot be set by calling Connection.setClientInfo. 
RowIdLifetimeAn enumeration to describe the life-time of RowID. 

Exceptions

BatchUpdateExceptionThis exception is thrown if a problem occurs during a batch update operation. 
DataTruncationAn exception which is thrown when a JDBC driver unexpectedly truncates a data value either when reading (resulting in warning), or when writing data (resulting in an error). 
SQLClientInfoExceptionAn exception, which is subclass of SQLException, is thrown when one or more client info properties could not be set on a Connection. 
SQLDataExceptionAn exception, which is subclass of SQLException, is thrown when various data errors arise. 
SQLExceptionAn exception that indicates a failed JDBC operation. 
SQLFeatureNotSupportedExceptionAn exception, which is subclass of SQLNonTransientException, is thrown when various the JDBC driver does not support an optional JDBC feature. 
SQLIntegrityConstraintViolationExceptionAn exception, which is subclass of SQLNonTransientException, is thrown when various the an integrity constraint (foreign key, primary key or unique key) has been violated. 
SQLInvalidAuthorizationSpecExceptionAn exception, which is subclass of SQLNonTransientException, is thrown when the authorization credentials presented during connection establishment are not valid. 
SQLNonTransientConnectionExceptionAn exception, which is subclass of SQLException, is thrown when the connection operation that failed will not succeed when the operation is retried without the cause of the failure being corrected. 
SQLNonTransientException 
SQLRecoverableException 
SQLSyntaxErrorException 
SQLTimeoutException 
SQLTransactionRollbackException 
SQLTransientConnectionException 
SQLTransientException 
SQLWarningAn exception class that holds information about Database access warnings.