Professional Documents
Culture Documents
DataSource (Java Platform SE 8)
DataSource (Java Platform SE 8)
OVERVIEW PACKAGE
19/02/2015
CLASS
FRAMES NO FRAMES
Java Platform
Standard Ed. 8
ALL CLASSES
compact2, compact3
javax.sql
Interface DataSource
All Superinterfaces:
CommonDataSource, Wrapper
1.4
Method Summary
All Methods
Instance Methods
Abstract Methods
Connection
getConnection()
Attempts to establish a connection with the data source that this DataSource object
represents.
Connection
Method Detail
getConnection
http://docs.oracle.com/javase/8/docs/api/javax/sql/DataSource.html
1/2
19/02/2015
Connection getConnection()
throws SQLException
Attempts to establish a connection with the data source that this DataSource object represents.
Returns:
getConnection
username - the database user on whose behalf the connection is being made
password - the user's password
Returns:
1.4
OVERVIEW PACKAGE
CLASS
Java Platform
Standard Ed. 8
ALL CLASSES
http://docs.oracle.com/javase/8/docs/api/javax/sql/DataSource.html
2/2