Project

General

Profile

« Previous | Next » 

Revision 4244

use factory method for creating database connection pool

View differences:

src/edu/ucsb/nceas/metacat/dataquery/DataQuery.java
66 66
	}
67 67
	
68 68
	private void init() {
69
		connectionPool = new PostgresDatabaseConnectionPool();
69
		connectionPool = DatabaseConnectionPoolFactory.getDatabaseConnectionPoolInterface();
70 70
		dataManager = 
71 71
			DataManager.getInstance(connectionPool, connectionPool.getDBAdapterName());
72 72
	}

Also available in: Unified diff