X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fdbms%2FDelivery.hpp;fp=include%2Fanna%2Fdbms%2FDelivery.hpp;h=baf758e888d9f20bca3e62b21fcd6d2ec296483c;hp=6cd4603b4f3ce78c4c4eaf4d1c6f8d1c3815c1e5;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/dbms/Delivery.hpp b/include/anna/dbms/Delivery.hpp index 6cd4603..baf758e 100644 --- a/include/anna/dbms/Delivery.hpp +++ b/include/anna/dbms/Delivery.hpp @@ -44,13 +44,13 @@ public: \warning Recordar que el numero maximo de conexiones a una base de datos esta limitado por Database::maxConnection. */ void createConnections(Database& database, const char* prefixName, const char* user, const char* password, const int n) - throw(RuntimeException, DatabaseException); + noexcept(false); /** Incorpora al conexion recibida como parametro a la agrupacion logica. \param connection Conexion que vamos a incorporar a la agrupacion logica. */ - void addConnection(Connection* connection) throw(RuntimeException) { + void addConnection(Connection* connection) noexcept(false) { this->add(connection); a_iiConnection = this->begin(); } @@ -62,13 +62,13 @@ public: cualquier otro thread que intente acceder a ella queda bloqueado a la espera de que terminemos de trabajar sobre ella. */ - Connection& getConnection() throw(RuntimeException); + Connection& getConnection() noexcept(false); private: iterator a_iiConnection; - void do_initialize() throw() { a_iiConnection = begin(); } - comm::Resource* do_apply() throw(RuntimeException); + void do_initialize() { a_iiConnection = begin(); } + comm::Resource* do_apply() noexcept(false); static Connection* connection(iterator& ii) { return (Connection*) comm::Delivery::resource(ii); } };