Updated on 2023-10-23 GMT+08:00

javax.sql.DataSource

This section describes javax.sql.DataSource, the interface for data sources.

Table 1 Support status for javax.sql.DataSource

Method Name

Return Type

Support 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