13 Kinds of Technology--jdbc of the Java EE

Source: Internet
Author: User

Background:

Before we prepared for the soft test, we learned the J2SE video. Before entering the Java EE, it is necessary to review and review the basic knowledge, which is very important for future study. First, simply recall the architecture of Java. Java has three architectures: Java Se,java Ee,java ME.

Java se--Standard Edition, mostly used to do desktop software

Java me--Mini-version, mobile phone software authoring platform

Java ee--Enterprise Edition, Enterprise-class development

The Java EE platform is comprised of a suite of services, APIs, and protocols that provide functional support for developing web-based, multi-tiered applications. compared with. NET,theJava EE describes the product standards , many products are in line with the Java EE Standard Products,. NET and Java EE are not on one level, the Java EE is more abstract. Therefore, someone called the Java EE Specification, also called technology.

In this blog, the main introduction to JDBC.

Jdbc:

database connection for Java Data Base Connectivity,java . It is an API for executing SQL statements that provides unified access to a variety of databases. Since JDBC is one of the 13 specifications, it certainly provides a standard that, according to this standard, can build more advanced tools and interfaces that enable database developers to write database applications.

The use of JDBC enables the " write once, run anywhere ". We don't have to write a program for the SQL database, write a program for the Oracle database, and so on, just like the abstract factory in design mode.

Working principle:



1) Establish a connection to the database

2) Send statement of operation database

3) Processing Results


JDBC Drivers:

Implement Database Operations the class.

Type:

2-layer-user directly with the database session;

3-tier-the user and the middle tier (that is, the WebLogic Server) session that represents the database.



With ODBC:

ODBC, opendatabase Connectivity. It establishes a set of specifications and provides a set of standard APIs for database access. Like JDBC, these APIs do most of the work with SQL.

Why is Java's canonical Chinese medicine introduced to JDBC instead of ODBC? Because ODBC is not intended to be used directly in Java, it uses the C language interface. JDBC retains the basic design characteristics of ODBC, which is built on ODBC and not from zero.


Summary:

The content of JDBC is now simply a theoretical understanding and understanding. But before using ODBC, I believe JDBC will not be very unfamiliar. The 13 technical specifications of the Java EE, learning is still going on ...


13 Kinds of Technology--jdbc of the Java EE

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.