From: Thomas R. <tri...@us...> - 2009-03-17 15:30:29
|
Update of /cvsroot/springframework/spring/test/org/springframework/jdbc/datasource In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv17574/test/org/springframework/jdbc/datasource Added Files: TestDataSourceWrapper.java Log Message: added a concrete GenericStoredProcedure class to make it possible to configure using application context (SPR-3987 backport) --- NEW FILE: TestDataSourceWrapper.java --- package org.springframework.jdbc.datasource; import java.sql.Connection; import java.sql.SQLException; import javax.sql.DataSource; public class TestDataSourceWrapper extends AbstractDataSource { private DataSource target; public void setTarget(DataSource target) { this.target = target; } public Connection getConnection() throws SQLException { return target.getConnection(); } public Connection getConnection(String username, String password) throws SQLException { return target.getConnection(username, password); } } |