Changeset 30397
- Timestamp:
- 02/21/08 13:06:43 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-directory-sql/src/main/java/org/nuxeo/ecm/directory/sql/SimpleDataSource.java
r19199 r30397 27 27 import javax.sql.DataSource; 28 28 29 30 29 /** 30 * TODO: OG: please someone explain here the goal of this empty implementation 31 * of the DataSource interface. According to the Call hierarchy it is only 32 * needed for the getConnection() method. 33 * 34 * TODO: OG: maybe methods with empty implementation should raise SQLException 35 * wrapping UnexpectedOperationException instead. 36 * 31 37 * @author <a href="mailto:glefter@nuxeo.com">George Lefter</a> 32 38 * … … 35 41 36 42 private final String url; 43 37 44 private final String user; 45 38 46 private final String password; 39 47 40 public SimpleDataSource(String url, String driver, String user, String password) { 48 public SimpleDataSource(String url, String driver, String user, 49 String password) { 41 50 try { 42 51 Class.forName(driver); … … 57 66 public Connection getConnection(String username, String password) 58 67 throws SQLException { 59 // TODO Auto-generated method stub60 68 return getConnection(); 61 69 } 62 70 63 71 public PrintWriter getLogWriter() throws SQLException { 64 // TODO Auto-generated method stub72 // not used by Nuxeo SQLDirectory API 65 73 return null; 66 74 } 67 75 68 76 public int getLoginTimeout() throws SQLException { 69 // TODO Auto-generated method stub77 // not used by Nuxeo SQLDirectory API 70 78 return 0; 71 79 } 72 80 73 81 public void setLogWriter(PrintWriter out) throws SQLException { 74 // TODO Auto-generated method stub82 // not used by Nuxeo SQLDirectory API 75 83 } 76 84 77 85 public void setLoginTimeout(int seconds) throws SQLException { 78 // TODO Auto-generated method stub 86 // not used by Nuxeo SQLDirectory API 87 } 88 89 public boolean isWrapperFor(Class<?> iface) throws SQLException { 90 // not used by Nuxeo SQLDirectory API 91 return false; 92 } 93 94 public <T> T unwrap(Class<T> iface) throws SQLException { 95 // not used by Nuxeo SQLDirectory API 96 return null; 79 97 } 80 98
