43 m_implementation( conn.m_implementation ){
57 m_implementation->m_configuration.configure( m_implementation->m_connectionPool->configuration() );
58 m_implementation->m_initialized =
true;
68 m_implementation->m_configuration.setParameters( connectionPset );
74 throw cond::Exception(
"DbConnection::createSession: cannot create session. Connection has been closed.");
81 m_implementation->close();
86 return m_implementation->m_connectionPool.get();
91 return m_implementation->m_configuration;
96 return m_implementation->m_configuration;
100 return m_implementation->m_connectionPool;
105 throw cond::Exception(
"DbConnection::connectionService: cannot get connection service. Connection has not been open.");
106 return m_implementation->m_connectionPool->connectionService();
111 throw cond::Exception(
"DbConnection::monitoringReporter: cannot get connection service. Connection has not been open.");
112 return m_implementation->m_connectionPool->connectionService().monitoringReporter();
117 throw cond::Exception(
"DbConnection::webCacheControl: cannot get connection service. Connection has not been open.");
118 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
static std::vector< DbConnectionConfiguration > & defaultConfigurations()