1 #ifndef INCLUDE_ORA_CONNECTIONPOOL_H
2 #define INCLUDE_ORA_CONNECTIONPOOL_H
7 #include <boost/shared_ptr.hpp>
8 #include <boost/weak_ptr.hpp>
9 #include "RelationalAccess/ConnectionService.h"
20 SharedSession(boost::shared_ptr<coral::ISessionProxy>& coralSession);
25 coral::ISessionProxy&
get();
28 boost::shared_ptr<coral::ISessionProxy>
m_proxy;
44 SharedSession connect(
const std::string& connectionString,
const std::string& asRole, coral::AccessMode accessMode );
48 static std::string
lookupString(
const std::string& connectionString, coral::AccessMode accessMode );
49 static std::string
lookupString(
const std::string& connectionString,
const std::string& role, coral::AccessMode accessMode );
55 std::map<std::string,boost::weak_ptr<coral::ISessionProxy> >
m_sessions;
To be moved in DBCommon, has to serve also the pure coral use case.
static std::string lookupString(const std::string &connectionString, coral::AccessMode accessMode)
coral::IConnectionServiceConfiguration & configuration()
virtual ~ConnectionPool()
std::map< std::string, boost::weak_ptr< coral::ISessionProxy > > m_sessions
coral::IConnectionService & connectionService()
SharedSession & operator=(const SharedSession &rhs)
boost::shared_ptr< coral::ISessionProxy > m_proxy
coral::ConnectionService m_connectionService
SharedSession connect(const std::string &connectionString, coral::AccessMode accessMode)