public interface DataSource
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
Connection getConnection() throws SQLException
SQLExceptionConnection getConnection(String username, String password) throws SQLException
SQLExceptionPrintWriter getLogWriter() throws SQLException
SQLExceptionvoid setLogWriter(PrintWriter out) throws SQLException
SQLExceptionvoid setLoginTimeout(int seconds) throws SQLException
SQLExceptionint getLoginTimeout() throws SQLException
SQLException