JDBC API is mainly divided into two package. Each when we are using JDBC, we have to import these packages to use classes and interfaces in our application.
This package include classes and interface to perform almost all JDBC operation such as creating and executing SQL Queries.
Important classes and interface of
|Provide support for BLOB(Binary Large Object) SQL type.|
|creates a connection with specific database|
|Execute stored procedures|
|Provide support for CLOB(Character Large Object) SQL type.|
|Provide support for Date SQL type.|
|create an instance of a driver with the DriverManager.|
|This class manages database drivers.|
|Used to create and execute parameterized query.|
|It is an interface that provide methods to access the result row-by-row.|
|Specify savepoint in transaction.|
|Encapsulate all JDBC related exception.|
|This interface is used to execute SQL statements.|
||Comprehensive information about the database as a whole.
||An interface that must be implemented when a Driver wants to be notified by DriverManager.
||An object that can be used to get information about the types and properties of the columns in a ResultSet object.
||The representation (mapping) in the Java programming language of an SQL ROWID value.
||The representation of a savepoint, which is a point within the current transaction that can be referenced from the Connection.rollback method.
||The interface used for the custom mapping of an SQL user-defined type (UDT) to a class in the Java programming language.
||An input stream that contains a stream of values representing an instance of an SQL structured type or an SQL distinct type.
||The output stream for writing the attributes of a user-defined type back to the database.
||An object that is used to identify a generic SQL type, called a JDBC type or a vendor specific data type.
||cThe mapping in the JavaTM programming language for the SQL XML type.
||The object used for executing a static SQL statement and returning the results it produces.
||The standard mapping in the Java programming language for an SQL structured type.
||Interface for JDBC classes which provide the ability to retrieve the delegate instance when the instance in question is in fact a proxy class.
The javax.sql package
This package is also known as JDBC extension API. It provides classes and interface to access server-side data.
Important classes and interface of
|Provide information about occurence of event.|
|Used to register event generated by PooledConnection object.|
|Represent the DataSource interface used in an application.|
|provide object to manage connection pools.|
||Interface that defines the methods which are common between DataSource, XADataSource and ConnectionPoolDataSource.
||The interface that adds support to the JDBC API for the JavaBeans™ component model.
||The interface that a RowSet object implements in order to present itself to a RowSetReader or RowSetWriter object.
||An interface that must be implemented by a component that wants to be notified when a significant event happens in the life of a RowSet object.
||An object that contains information about the columns in a RowSet object.
||The facility that a disconnected RowSet object calls on to populate itself with rows of data.
||An object that implements the RowSetWriter interface, called a writer.
||An object that registers to be notified of events that occur on PreparedStatements that are in the Statement pool.
||An object that provides support for distributed transactions.
||A factory for XAConnection objects that is used internally.