37 m_implementation( conn.m_implementation ){
51 m_implementation->m_configuration.configure( m_implementation->m_connectionPool->configuration() );
52 m_implementation->m_initialized =
true;
62 m_implementation->m_configuration.setParameters( connectionPset );
68 throw cond::Exception(
"DbConnection::createSession: cannot create session. Connection has been closed.");
75 m_implementation->close();
80 return m_implementation->m_connectionPool.get();
85 return m_implementation->m_configuration;
90 return m_implementation->m_configuration;
94 return m_implementation->m_connectionPool;
99 throw cond::Exception(
"DbConnection::connectionService: cannot get connection service. Connection has not been open.");
100 return m_implementation->m_connectionPool->connectionService();
105 throw cond::Exception(
"DbConnection::monitoringReporter: cannot get connection service. Connection has not been open.");
106 return m_implementation->m_connectionPool->connectionService().monitoringReporter();
111 throw cond::Exception(
"DbConnection::webCacheControl: cannot get connection service. Connection has not been open.");
112 return m_implementation->m_connectionPool->connectionService().webCacheControl();
DbConnectionConfiguration m_configuration
virtual ~ConnectionImpl()
const coral::IMonitoringReporter & monitoringReporter() const
DbConnectionConfiguration & configuration()
coral::IWebCacheControl & webCacheControl() const
coral::IConnectionService & connectionService() const
boost::shared_ptr< ora::ConnectionPool > m_connectionPool
DbConnection & operator=(const DbConnection &conn)
boost::shared_ptr< ora::ConnectionPool > connectionPool() const
DbSession createSession() const
boost::shared_ptr< ConnectionImpl > m_implementation
volatile std::atomic< bool > shutdown_flag false
static const std::vector< DbConnectionConfiguration > & defaultConfigurations()