// (1) Si no tiene variables de salida => consideramos que es un update, insert o delete.
//-----------------------------------------------------------------------------------------------------------
dbms::ResultCode dbms::Connection::execute(Statement* statement)
-throw(RuntimeException, dbms::DatabaseException) {
+noexcept(false) {
if(statement == NULL) {
string msg(asString());
msg += " | Cannot execute a NULL sentence";
// y los volcados de contexto.
//------------------------------------------------------------------------------------------------
void dbms::Connection::commit()
-throw(RuntimeException, dbms::DatabaseException) {
+noexcept(false) {
LOGINFORMATION(
string msg("dbms::Connection::commit | ");
msg += asString();
// y los volcados de contexto.
//------------------------------------------------------------------------------------------------
void dbms::Connection::rollback()
-throw() {
+{
LOGWARNING(
string msg("dbms::Connection::rollback | ");
msg += asString();
}
void dbms::Connection::lock()
-throw(RuntimeException) {
+noexcept(false) {
if(isAvailable() == false) {
string msg(asString());
msg += " | Unavailable connection";
}
void dbms::Connection::unlock()
-throw() {
+{
LOGDEBUG(
string msg("dbms::Connection::unlock | ");
msg += asString();
}
string dbms::Connection::asString() const
-throw() {
+{
string result("dbms::Connection { ");
result += comm::Resource::asString();
result += " | ";
}
xml::Node* dbms::Connection::asXML(xml::Node* parent) const
-throw() {
+{
xml::Node* result = comm::Resource::asXML(parent);
result->createAttribute("User", a_user);
result->createAttribute("LockingCounter", a_lockingCounter);