\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();
}
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); }
};