javax.sql

Interface DataSource

public interface DataSource

Since: 1.4

Method Summary
ConnectiongetConnection()
ConnectiongetConnection(String username, String password)
intgetLoginTimeout()
PrintWritergetLogWriter()
voidsetLoginTimeout(int seconds)
voidsetLogWriter(PrintWriter out)

Method Detail

getConnection

public Connection getConnection()

Since: 1.4

getConnection

public Connection getConnection(String username, String password)

Since: 1.4

getLoginTimeout

public int getLoginTimeout()

Since: 1.4

getLogWriter

public PrintWriter getLogWriter()

Since: 1.4

setLoginTimeout

public void setLoginTimeout(int seconds)

Since: 1.4

setLogWriter

public void setLogWriter(PrintWriter out)

Since: 1.4