DataSource: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 8: | Line 8: | ||
=Overview= | =Overview= | ||
This page refers to a JSE [https://docs.oracle.com/javase/7/docs/api/javax/sql/DataSource.html javax.sql.DataSource]. The DataSource is part of [[JDBC]] and it is the main interface exposed by the<tt>javax.sql</tt> package. DataSource is part of JSE since 1.4. | This page refers to a JSE [https://docs.oracle.com/javase/7/docs/api/javax/sql/DataSource.html javax.sql.DataSource]. The DataSource is part of [[JDBC]] and it is the main interface exposed by the<tt>javax.sql</tt> package. DataSource is part of JSE since 1.4. JDBC specifies that a database Connection can be obtained from a DriverManager or a DataSource. The DataSource is the preferred way of getting the Connection. | ||
DataSources can be injected with the JEE [[@javax.annotation.Resource|@javax.annotation.Resource]] annotation. | DataSources can be injected with the JEE [[@javax.annotation.Resource|@javax.annotation.Resource]] annotation. |
Revision as of 14:29, 25 September 2017
External
- https://docs.oracle.com/javase/7/docs/api/javax/sql/DataSource.html
- https://docs.oracle.com/javase/7/docs/api/javax/sql/package-summary.html
Internal
Overview
This page refers to a JSE javax.sql.DataSource. The DataSource is part of JDBC and it is the main interface exposed by thejavax.sql package. DataSource is part of JSE since 1.4. JDBC specifies that a database Connection can be obtained from a DriverManager or a DataSource. The DataSource is the preferred way of getting the Connection.
DataSources can be injected with the JEE @javax.annotation.Resource annotation.