javax.sql.DataSource是数据源接口。
方法名 | 返回值类型 | 支持JDBC 4 |
|---|---|---|
getConneciton() | Connection | Yes |
getConnection(String username,String password) | Connection | Yes |
getLoginTimeout() | int | Yes |
getLogWriter() | PrintWriter | Yes |
setLoginTimeout(int seconds) | void | Yes |
setLogWriter(PrintWriter out) | void | Yes |
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69959250/viewspace-3137673/ ,如需转载,请注明出处,否则将追究法律责任。