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 Yes int getLoginTimeout () 2.0 Optional Yes void setLogWriter (PrintWriter) 2.0 Optional Yes Enable JDBC Spy, which traces all of the information into the specified PrintWriter. void setLoginTimeout (int) 2.0 Optional Yes