1 56 package org.objectstyle.cayenne.project; 57 58 import java.io.PrintWriter ; 59 import java.sql.Connection ; 60 import java.sql.SQLException ; 61 62 import javax.sql.DataSource ; 63 64 import org.objectstyle.cayenne.conn.DataSourceInfo; 65 66 69 public class ProjectDataSource implements DataSource { 70 71 protected DataSourceInfo info; 72 73 public ProjectDataSource(DataSourceInfo info) { 74 this.info = info; 75 } 76 77 public DataSourceInfo getDataSourceInfo() { 78 return info; 79 } 80 81 public Connection getConnection() throws SQLException { 82 throw new SQLException ("Method not implemented"); 83 } 84 85 public Connection getConnection(String username, String password) throws SQLException { 86 throw new SQLException ("Method not implemented"); 87 } 88 89 public PrintWriter getLogWriter() throws SQLException { 90 return new PrintWriter (System.out); 91 } 92 93 public void setLogWriter(PrintWriter out) throws SQLException { 94 } 95 96 public void setLoginTimeout(int seconds) throws SQLException { 97 } 98 99 public int getLoginTimeout() throws SQLException { 100 throw new SQLException ("Method not implemented"); 101 } 102 } | Popular Tags |