if (_connection.getAutoCommit()) {
_connection.setAutoCommit(false);
}
_tool = new RDBMSTool(_connection);
} catch (SQLException exception) {
throw new PersistenceException(exception.getMessage());
}
try {
convertMessagesTable(schema);
convertHandlesTable(schema);
createUsersTable(schema);
SchemaHelper.setVersion(_connection, "V0.7.6");
_connection.commit();
} catch (PersistenceException exception) {
SQLHelper.rollback(_connection);
throw exception;
} catch (SQLException exception) {
SQLHelper.rollback(_connection);
throw new PersistenceException(exception);
}
}