01: package org.geotools.data.jdbc.datasource;
02:
03: import java.sql.SQLException;
04:
05: import org.apache.commons.dbcp.BasicDataSource;
06:
07: /**
08: * A closeable wrapper around {@link BasicDataSource}
09: *
10: * @author Administrator
11: *
12: */
13: public class DBCPDataSource extends AbstractManageableDataSource {
14:
15: public DBCPDataSource(BasicDataSource wrapped) {
16: super (wrapped);
17:
18: }
19:
20: public void close() throws SQLException {
21: ((BasicDataSource) wrapped).close();
22: }
23:
24: }
|