| Java™ Platform Standard Ed. 6 | ||||||||||
See:
Description
| Array | The mapping in the Java programming language for the SQL typeARRAY. |
| Blob | The representation (mapping) in the Java programming language of an SQLBLOB value. |
| CallableStatement | The interface used to execute SQL stored procedures. |
| Clob | The mapping in the Java programming language for the SQLCLOB type. |
| Connection | A connection (session) with a specific database. |
| DatabaseMetaData | Comprehensive information about the database as a whole. |
| Driver | The interface that every driver class must implement. |
| NClob | The mapping in the Java programming language for the SQLNCLOB type. |
| ParameterMetaData | An object that can be used to get information about the types and properties for each parameter marker in aPreparedStatement object. |
| PreparedStatement | An object that represents a precompiled SQL statement. |
| Ref | The mapping in the Java programming language of an SQLREF value, which is a reference to an SQL structured type value in the database. |
| ResultSet | A table of data representing a database result set, which is usually generated by executing a statement that queries the database. |
| ResultSetMetaData | An object that can be used to get information about the types and properties of the columns in aResultSet object. |
| RowId | The representation (mapping) in the Java programming language of an SQL ROWID value. |
| Savepoint | The representation of a savepoint, which is a point within the current transaction that can be referenced from theConnection.rollback method. |
| SQLData | The interface used for the custom mapping of an SQL user-defined type (UDT) to a class in the Java programming language. |
| SQLInput | An input stream that contains a stream of values representing an instance of an SQL structured type or an SQL distinct type. |
| SQLOutput | The output stream for writing the attributes of a user-defined type back to the database. |
| SQLXML | The mapping in the JavaTM programming language for the SQL XML type. |
| Statement | The object used for executing a static SQL statement and returning the results it produces. |
| Struct | The standard mapping in the Java programming language for an SQL structured type. |
| Wrapper | Interface for JDBC classes which provide the ability to retrieve the delegate instance when the instance in question is in fact a proxy class. |
| Date | A thin wrapper around a millisecond value that allows JDBC to identify this as an SQLDATE value. |
| 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 | Driver properties for making a connection. |
| SQLPermission | The permission for which theSecurityManager will check when code that is running in an applet calls theDriverManager.setLogWriter method or theDriverManager.setLogStream (deprecated) method. |
| Time | A thin wrapper around thejava.util.Date class that allows the JDBC API to identify this as an SQLTIME value. |
| Timestamp | A thin wrapper aroundjava.util.Date that allows the JDBC API to identify this as an SQLTIMESTAMP value. |
| Types | The class that defines the constants that are used to identify generic SQL types, called JDBC types. |
| ClientInfoStatus | Enumeration for status of the reason that a property could not be set via a call toConnection.setClientInfo |
| RowIdLifetime | Enumeration for RowId life-time values. |
| BatchUpdateException | The subclass ofSQLException thrown when an error occurs during a batch update operation. |
| DataTruncation | An exception thrown as aDataTruncation exception (on writes) or reported as aDataTruncation warning (on reads) when a data values is unexpectedly truncated for reasons other than its having execeededMaxFieldSize. |
| SQLClientInfoException | The subclass ofSQLException is thrown when one or more client info properties could not be set on aConnection. |
| SQLDataException | The subclass ofSQLException thrown when the SQLState class value is '22'. |
| SQLException | An exception that provides information on a database access error or other errors. |
| SQLFeatureNotSupportedException | The subclass ofSQLException thrown when the SQLState class value is '0A' ( the value is 'zero' A). |
| SQLIntegrityConstraintViolationException | The subclass ofSQLException thrown when the SQLState class value is '23'. |
| SQLInvalidAuthorizationSpecException | The subclass ofSQLException thrown when the SQLState class value is '28'. |
| SQLNonTransientConnectionException | The subclass ofSQLException thrown for the SQLState class value '08', representing that the connection operation that failed will not succeed when the operation is retried without the cause of the failure being corrected. |
| SQLNonTransientException | The subclass ofSQLException thrown when an instance where a retry of the same operation would fail unless the cause of theSQLException is corrected. |
| SQLRecoverableException | The subclass ofSQLException thrown in situations where a previously failed operation might be able to succeed if the application performs some recovery steps and retries the entire transaction or in the case of a distributed transaction, the transaction branch. |
| SQLSyntaxErrorException | The subclass ofSQLException thrown when the SQLState class value is '42'. |
| SQLTimeoutException | The subclass ofSQLException thrown when the timeout specified byStatement has expired. |
| SQLTransactionRollbackException | The subclass ofSQLException thrown when the SQLState class value is '40'. |
| SQLTransientConnectionException | The subclass ofSQLException for the SQLState class value '08', representing that the connection operation that failed might be able to succeed when the operation is retried without any application-level changes. |
| SQLTransientException | The subclass ofSQLException is thrown in situations where a previoulsy failed operation might be able to succeed when the operation is retried without any intervention by application-level functionality. |
| SQLWarning | An exception that provides information on database access warnings. |
Provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java programming language. This API includes a framework whereby differentdrivers can be installed dynamically to access different data sources.Although the JDBC API is mainly geared to passing SQL statements to a database, it provides for reading andwriting data from any data source with a tabular format.The reader/writer facility, available through thejavax.sql.RowSet group of interfaces, can be customized touse and update data from a spread sheet, flat file, or any other tabular data source.
java.sql package, referred to as the JDBC core API,and thejavax.sql package, referred to as the JDBC OptionalPackage API. This complete JDBC APIis included in the Java Standard Edition (Java SE), version 6. Thejavax.sql package extends the functionality of the JDBC API from a client-side API to a server-side API, and it is an essential partof the Java Enterprise Edition(Java EE) technology.Classes, interfaces, methods, fields, constructors, and exceptions have the following "since" tags that indicate when they were introduced into the Java platform. When these "since" tags are used inJavadoc comments for the JDBC API,they indicate the following:
NOTE: Many of the new features are optional; consequently, there is some variation in drivers and the features they support. Always check your driver's documentation to see whether it supports a feature beforeyou try to use it.
NOTE: The classSQLPermission was added in theJava 2 SDK, Standard Edition, version 1.3 release. This class is used to prevent unauthorizedaccess to the logging stream associated with theDriverManager,which may contain information such as table names, column data, and so on.
java.sql Package Containsjava.sql package contains API for the following:DriverManager facilityDriverManager class -- makes a connection with a driverSQLPermission class -- provides permission when code running within a Security Manager, such as an applet, attempts to set up a logging stream through theDriverManagerDriver interface -- provides the API for registering and connecting drivers based on JDBC technology ("JDBC drivers"); generally used only by theDriverManager classDriverPropertyInfo class -- provides properties for a JDBC driver; not used by the general userStatement -- used to send basic SQL statementsPreparedStatement -- used to send prepared statements or basic SQL statements (derived fromStatement)CallableStatement -- used to call database stored procedures (derived fromPreparedStatement)Connection interface -- provides methods for creating statements and managing connections and their propertiesSavepoint -- provides savepoints in a transactionResultSet interfaceArray interface -- mapping for SQLARRAYBlob interface -- mapping for SQLBLOBClob interface -- mapping for SQLCLOBDate class -- mapping for SQLDATENClob interface -- mapping for SQLNCLOBRef interface -- mapping for SQLREFRowId interface -- mapping for SQLROWIDStruct interface -- mapping for SQLSTRUCTSQLXML interface -- mapping for SQLXMLTime class -- mapping for SQLTIMETimestamp class -- mapping for SQLTIMESTAMPTypes class -- provides constants for SQL typesSQLData interface -- specifies the mapping of a UDT to an instance of this classSQLInput interface -- provides methods for reading UDT attributes from a streamSQLOutput interface -- provides methods for writing UDT attributes back to a streamDatabaseMetaData interface -- provides information about the databaseResultSetMetaData interface -- provides information about the columns of aResultSet objectParameterMetaData interface -- provides information about the parameters toPreparedStatement commandsSQLException -- thrown by most methods when there is a problem accessing data and by some methods for other reasonsSQLWarning -- thrown to indicate a warningDataTruncation -- thrown to indicate that data may have been truncatedBatchUpdateException -- thrown to indicate that not all commands in a batch update executed successfullyjava.sql andjavax.sql Features Introduced in the JDBC 4.0 APIjava.sql.Driver class viaClass.forNamePreparedStatement that is associated with aPooledConnection has been closed or the driver determines is invalidjava.sql andjavax.sql Features Introduced in the JDBC 3.0 APIConnectionPoolDataSource -- specify how connections are to be pooledPreparedStatement objectResultSet objects returned fromCallableStatement objects open at the same timeCallableStatement objects by name as well as by indexResultSet holdability -- ability to specify whether cursors should be held open or closed at the end of a transactionRef object referencesBLOB,CLOB,ARRAY, andREF values.java.sql.Types.DATALINK data type -- allows JDBC drivers access to objects stored outside a data sourcejava.sql Features Introduced in the JDBC 2.1 Core APIResultSet interface that allow the cursor to be moved to a particular row or to a position relative to its current positionResultSet updater methodsjava.math.BigDecimal values, additional security, and support for time zones in date, time, and timestamp values.javax.sql Features Introduced in the JDBC 2.0 OptionalPackage APIDataSource interface as a means of making a connection. The Java Naming and Directory Interface (JNDI) is used for registering aDataSource object with a naming service and also for retrieving it.RowSet technology -- providing a convenient means of handling and passing dataDISTINCTtype are the UDTs that may be custom mapped. The following threesteps set up a custom mapping:DISTINCT type in SQLSQLData interface.Connection object's type map that contains two things:Class object for the class that implements theSQLData interfaceWhen these are in place for a UDT, calling the methodsResultSet.getObject orCallableStatement.getObject on that UDT will automatically retrieve the custom mapping for it. Also, thePreparedStatement.setObject method will automatically map theobject back to its SQL type to store it in the data source.
| Java™ Platform Standard Ed. 6 | ||||||||||