X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fdbms%2FSentence.cpp;fp=source%2Fdbms%2FSentence.cpp;h=5ab68be5f7aac6da686630e12614e546d0e8d312;hp=34dfaf39a43657c0ff1c6a6ae9807a8444e5f8c0;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/dbms/Sentence.cpp b/source/dbms/Sentence.cpp index 34dfaf3..5ab68be 100644 --- a/source/dbms/Sentence.cpp +++ b/source/dbms/Sentence.cpp @@ -18,13 +18,13 @@ using namespace std; using namespace anna; const string& dbms::Sentence::getName() const -throw() { +{ static string empty; return (a_dbStatement == NULL) ? empty : a_dbStatement->getName(); } void dbms::Sentence::initialize(dbms::Database& database) -throw(RuntimeException) { +noexcept(false) { Guard guard(this, "anna::dbms::Sentence (initialize)"); a_dbStatement = do_initialize(database); } @@ -34,7 +34,7 @@ throw(RuntimeException) { // activa externamente ... para recoger datos multiples, etc, etc. //------------------------------------------------------------------------------------- dbms::ResultCode dbms::Sentence::execute(dbms::Connection& connection, dbms::Statement* statement) -throw(RuntimeException) { +noexcept(false) { using namespace anna::dbms; ResultCode result; @@ -59,7 +59,7 @@ throw(RuntimeException) { } bool dbms::Sentence::fetch() -throw(RuntimeException) { +noexcept(false) { bool result = false; try { @@ -73,7 +73,7 @@ throw(RuntimeException) { string dbms::Sentence::asString() const /*virtual*/ -throw() { +{ string result("dbms::Sentence { Mode: "); result += (a_mode == Mode::SilentWhenNotFound) ? "SilentWhenNotFound" : "ExceptionWhenNotFound"; result += " | "; @@ -88,7 +88,7 @@ throw() { /*virtual*/ xml::Node* dbms::Sentence::asXML(xml::Node* parent) const -throw() { +{ xml::Node* result = parent->createChild("dbms.Sentence"); result->createAttribute("Mode", (a_mode == Mode::SilentWhenNotFound) ? "SilentWhenNotFound" : "ExceptionWhenNotFound");