Introduction to Data sources:

Source: Internet
Author: User

In the Java language, an DataSource object is an object that represents a data source entity. A data source is a tool for storing data, which can be a complex large-scale database or a file that is simply a row and column. The data source can be located on the server side or on the customer service side.

An application accesses a data source through a connection, then a DataSource object is the tool used to provide a connection to the data source. The DataSource interface provides two methods for establishing and connecting to a data source
Using the DataSource object to establish a connection to the database is more efficient than using the DriverManager interface, although both are similar in scope and provide a way to establish a connection to the database, set the maximum timeout time for the connection, get the stream, log in.

Introduction to Data sources:

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.