1 7 8 package javax.sql; 9 10 import java.sql.Connection ; 11 import java.sql.SQLException ; 12 13 54 55 public interface DataSource { 56 57 64 Connection getConnection() throws SQLException ; 65 66 76 Connection getConnection(String username, String password) 77 throws SQLException ; 78 79 99 java.io.PrintWriter getLogWriter() throws SQLException ; 100 101 120 void setLogWriter(java.io.PrintWriter out) throws SQLException ; 121 122 134 void setLoginTimeout(int seconds) throws SQLException ; 135 136 148 int getLoginTimeout() throws SQLException ; 149 } 150 151 152 153 154 155 | Popular Tags |