1 33 48 49 package net.myvietnam.mvncore.db; 50 51 import javax.sql.DataSource ; 52 import java.io.PrintWriter ; 53 import java.sql.SQLException ; 54 55 58 public abstract class AbstractDataSource implements DataSource { 59 60 63 public int getLoginTimeout() throws SQLException { 64 return 0; 65 } 66 67 public void setLoginTimeout(int timeout) throws SQLException { 68 throw new UnsupportedOperationException ("setLoginTimeout"); 69 } 70 71 74 public PrintWriter getLogWriter() { 75 throw new UnsupportedOperationException ("getLogWriter"); 76 } 77 78 81 public void setLogWriter(PrintWriter pw) throws SQLException { 82 throw new UnsupportedOperationException ("setLogWriter"); 83 } 84 85 } 86 | Popular Tags |