JDBC (Autosaved)
JDBC (Autosaved)
(Java Database
Connectivity)
Storage areas or options
Storage areas or options
As the part of our Applications, we required to store our data like
customers information, Billing Information, Calls Information etc..
To store this Data, we required Storage Areas. There are 2 types of
Storage Areas.
Temporary Storage Areas
Permanent Storage Areas
Temporary Storage Areas:
These are the Memory Areas where Data will be stored temporarily.
Ex: All JVM Memory Areas (like Heap Area, Method Area, Stack Area etc).
Once JVM shutdown all these Memory Areas will be cleared automatically.
Permanent Storage Areas:
ODBC JDBC
ODBC Stands for Open Database Connectivity. JDBC Stands for java database connectivity.
We can use ODBC for any language like C,C++,Java etc. We can use JDBC only for Java languages.
We can choose ODBC only windows platform. We can Use JDBC in any platform.
Interface Summary
Interface Description
Array The mapping in the Java programming language for the SQL type ARRAY.
Blob The representation (mapping) in the Java™ programming language of an
SQL BLOB value.
DataSource A factory for connections to the physical data source that this DataSource object represents.
RowSetListener 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.
RowSetMetaData An object that contains information about the columns in a RowSet object.
Class Summary
Class Description
ConnectionEvent An Event object that provides information about the source of a connection-
related event.
This Driver internally depends on ODBC Driver, which will work only on
Windows Machines. Hence Type-1 Driver is Platform Dependent Driver.
Type-3 Driver converts JDBC Calls into Middleware Server specific Calls.
Middleware Server can convert Middleware Server specific calls into
Database specific calls.
We need to purchase Middleware Server and hence the cost of this Driver
is more when compared with remaining drivers.
Ex:
Connector/J Driver for MySQL
Thin Driver for Oracle
Standard Steps for developing JDBC Application