javax.sql
Interface DataSource


public interface DataSource

Since:
1.4

Method Summary
 Connection getConnection()
           
 Connection getConnection(String username, String password)
           
 int getLoginTimeout()
           
 PrintWriter getLogWriter()
           
 void setLoginTimeout(int seconds)
           
 void setLogWriter(PrintWriter out)
           
 

Method Detail

getConnection

Connection getConnection()
                         throws SQLException
Throws:
SQLException
Since:
1.4

getConnection

Connection getConnection(String username,
                         String password)
                         throws SQLException
Throws:
SQLException
Since:
1.4

getLogWriter

PrintWriter getLogWriter()
                         throws SQLException
Throws:
SQLException
Since:
1.4

setLogWriter

void setLogWriter(PrintWriter out)
                  throws SQLException
Throws:
SQLException
Since:
1.4

setLoginTimeout

void setLoginTimeout(int seconds)
                     throws SQLException
Throws:
SQLException
Since:
1.4

getLoginTimeout

int getLoginTimeout()
                    throws SQLException
Throws:
SQLException
Since:
1.4