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