can you pleas tell me how i can implement some of its methods?
I know about impementing getConnection but not the other stuff.
public PrintWriter getLogWriter() throws SQLException {
return new PrintWriter(System.out);
}
public void setLogWriter(PrintWriter out) throws SQLException {
}
public void setLoginTimeout(int seconds) throws SQLException {
}
public int getLoginTimeout() throws SQLException {
}
thanks
All of those depend on the logger you are using (if any) or the configuration of your Driver.
Read your driver documentation to see how you set the timeout for your connection attempt (for the setTimeout). The others can easily be handled with simple instance variables. Think about it for a moment. All of those methods are simple getter/setter methods.