/**
* Creates a <code>ConnectionParams</code> object from this <code>DatabaseLocation</code>.
*/
public ConnectionParams getConnectionParams() {
synchronized (getDataLock()) {
ConnectionParams params = new ConnectionParams();
params.setServer(getServer())
.setPort(getPort())
.setDatabase(getDatabase())
.setDriverName(getDriverName())
.setDriver(getDriver())
.setUser(getLogin())
.setPassword(getPassword())
.setAdditionalParams(getAdditionalConnectionParameters())
.setBeginEndQuotes(getBeginEndQuote())
.setTransactionIsolationLevel(getTransactionIsolationLevel());
if (isManualMode()) {
params.setManualConnectionString(getManualConnectionString());
}
return params;
}
}