DataSource Object Methods Version Introduced Supported Comments Connection getConnection () 2.0 Optional Yes Connection getConnection (String, String) 2.0 Optional Yes PrintWriter getLogWriter () 2.0 Optional No int getLoginTimeout () 2.0 Optional Yes void setLogWriter (PrintWriter) 2.0 Optional No void setLoginTimeout (int) 2.0 Optional Yes