{
if (!mIsOpen)
{
try
{
Configuration config = Configuration.getInstance();
String user = config.getValueOptional(mConfigChapter,
mConfigSection, "User");
if (user != null)
{
String password = config.getValue(mConfigChapter,
mConfigSection, "Password");
mConnection = DriverManager.getConnection(
mDBUrl.toString(), user, password);
}
else
{
mConnection = DriverManager
.getConnection(mDBUrl.toString());
}
mConnection.setAutoCommit(config.getValueAsBoolean(
mConfigChapter, mConfigSection, "AutoCommit"));
}
catch (SQLException e)
{
throw new XException(Constants.LOCATION_EXTERN,