equal
deleted
inserted
replaced
80 * <p>Attempts to establish a connection with the data source that |
80 * <p>Attempts to establish a connection with the data source that |
81 * this {@code DataSource} object represents. |
81 * this {@code DataSource} object represents. |
82 * |
82 * |
83 * @return a connection to the data source |
83 * @return a connection to the data source |
84 * @exception SQLException if a database access error occurs |
84 * @exception SQLException if a database access error occurs |
85 * @throws SQLTimeoutException when the driver has determined that the |
85 * @throws java.sql.SQLTimeoutException when the driver has determined that the |
86 * timeout value specified by the {@code setLoginTimeout} method |
86 * timeout value specified by the {@code setLoginTimeout} method |
87 * has been exceeded and has at least tried to cancel the |
87 * has been exceeded and has at least tried to cancel the |
88 * current database connection attempt |
88 * current database connection attempt |
89 */ |
89 */ |
90 Connection getConnection() throws SQLException; |
90 Connection getConnection() throws SQLException; |
96 * @param username the database user on whose behalf the connection is |
96 * @param username the database user on whose behalf the connection is |
97 * being made |
97 * being made |
98 * @param password the user's password |
98 * @param password the user's password |
99 * @return a connection to the data source |
99 * @return a connection to the data source |
100 * @exception SQLException if a database access error occurs |
100 * @exception SQLException if a database access error occurs |
101 * @throws SQLTimeoutException when the driver has determined that the |
101 * @throws java.sql.SQLTimeoutException when the driver has determined that the |
102 * timeout value specified by the {@code setLoginTimeout} method |
102 * timeout value specified by the {@code setLoginTimeout} method |
103 * has been exceeded and has at least tried to cancel the |
103 * has been exceeded and has at least tried to cancel the |
104 * current database connection attempt |
104 * current database connection attempt |
105 * @since 1.4 |
105 * @since 1.4 |
106 */ |
106 */ |