Mirroring of JavaBeans and relational databases

Source: Internet
Author: User
Tags table definition

JDK1.1includes new database access(JDBC)and Components(JavaBeans)the Application interface(APIs). Of these twoAPItogether, they can be used to develop common database code. By using a unique class to access any kind ofJDBCDatabase(each application encapsulated in a different component has its own specific encoding), the user does not have to modify the database encoding because of small changes in the database structure.

A relational database basically consists of a series of interconnected tables, each of which contains a class of data related to the application system. For example, in an address book database, there may be tables about people, addresses, phone numbers, and so on. In the database, each such entity is stored as a series of strings, integers, and other primitive data types. In the database, the table definition describes how each entity-related information is stored in a table's fields. For example, you can have two fields in a table called "people" to indicate that the stored string is "last Name" and "First name". Each table should have one or several field values as the identity, ensuring uniqueness of each record. These identities or "keys" can be used to connect information that exists in different tables. For example, you can specify a unique "person number" key value for each person in the people table, and use the same key value in the corresponding field in the Address table. This allows you to associate each person with his or her address by matching the value of the "Person number" field in the two tables.

   relational database system appeared in the 70 's,  today, it is still the main way to store huge amounts of data. Thus, java software tools need to handle relational databases   capabilities.

To be exploited by a Java application, a relational database needs to solve two problems first. First: Some basic middleware is needed to establish a connection with the database, to issue SQL queries to the database, and so on; second: manipulating a database is as convenient as manipulating any kind of Java Information- As an object. The former problem has been solved by SUN and several database manufacturers; the latter issue awaits further exploration.

In developing a business for a common program, you define a large number ofAPIsin this work,SUNhas maintained a partnership with many software companies. In theJdk1.1apisin whichJDBCof theAPIwas first built up. Moreover, it has been used in a number of applications. In these applications, there are100%of PureJava, while others areJavaand other programs of the mixed body.


Mirroring of JavaBeans and relational databases

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.