Application programming interface

5x puncte

categorie: Informatica

nota: 9.95

nivel: Facultate

The value of the JDBC API is that an application can access virtually any data source and run on any platform with a Java Virtual Machine. In other words, through the JDBC technology the code a program uses to access a database is independent of the type of the database (MySQL, Oracle, Access, etc.).
In order to operate on a database a connection to that database must be created from the a[...]
DOWNLOAD REFERAT

Preview referat: Application programming interface

The value of the JDBC API is that an application can access virtually any data source and run on any platform with a Java Virtual Machine. In other words, through the JDBC technology the code a program uses to access a database is independent of the type of the database (MySQL, Oracle, Access, etc.).
In order to operate on a database a connection to that database must be created from the application accessing the database. A single application can have one or more connections with a single database, or it can have connections with many different databases.

The traditional way to establish a connection with a database is to call the method DriverManager.getConnection().
This method takes a string containing a URL specifying a database as an argument. The DriverManager class, referred to as the JDBC management layer, attempts to locate a driver that can connect to the database represented by that URL. The DriverManager class maintains a list of registered Driver classes, and when the method getConnection is called, it checks with each driver in the list until it finds one that can connect to the database specified in the URL. The Driver method connect uses this URL to actually establish the connection.

The DriverManager class is the traditional management layer of JDBC, working between the user and the drivers. It keeps track of the drivers that are available and establishes a connection between a database and the appropriate driver.
For simple applications, the only method in the DriverManager class that a general programmer needs to use directly is DriverManager.getConnection which establishes a connection to a database and in most cases it is better to let the DriverManager class manage the details of establishing a connection.
DOWNLOAD REFERAT
« mai multe referate din Informatica

CAUTA REFERAT


TRIMITE REFERAT CERE REFERAT
Referatele si lucrarile oferite de E-referate.ro au scop educativ si orientativ pentru cercetare academica.