}
//
if (null == this.getSqlConnectionReference()) {
- this.sqlConnection = this.getSqlConnectionGeneratorReference().getConnection();
+ this.sqlConnection = this.getSqlConnectionGeneratorReference().getNewConnection();
}
//
LinkedHashMap<String, Object> p = new LinkedHashMap<String, Object>();
/* Generator. */
- public MSqlConnection getConnection() throws MSqlConnectionFailureException {
+ public MSqlConnection getNewConnection() throws MSqlConnectionFailureException {
return new MSqlConnection(this.getDriver(), this.getUrl(), this.getUsername(), this.getPassword());
}
protected void initializeConnectionPool() throws MSqlConnectionFailureException {
for (int c = 0; c < this.getMinimumSize(); c++) {
- MSqlConnection connection = this.getConnectionGenerator().getConnection();
+ MSqlConnection connection = this.getConnectionGenerator().getNewConnection();
this.getConnectionPool().add(connection);
}
}
LinkedList<MSqlConnection> connectionPool = this.getConnectionPool();
MSqlConnection connection = connectionPool.removeLast();
if (this.getMinimumSize() > connectionPool.size()) {
- connectionPool.add(this.getConnectionGenerator().getConnection());
+ connectionPool.add(this.getConnectionGenerator().getNewConnection());
}
return connection;
}