CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
cond::CSScopedSession Class Reference

Public Member Functions

void close ()
 
 CSScopedSession (CredentialStore &store)
 
void start (bool readOnly=true)
 
void startSuper (const std::string &connectionString, const std::string &userName, const std::string &password)
 
 ~CSScopedSession ()
 

Private Attributes

CredentialStorem_store
 

Detailed Description

Definition at line 170 of file CredentialStore.cc.

Constructor & Destructor Documentation

cond::CSScopedSession::CSScopedSession ( CredentialStore store)
inline

Definition at line 172 of file CredentialStore.cc.

172  :
173  m_store( store ){}
CredentialStore & m_store
cond::CSScopedSession::~CSScopedSession ( )
inline

Definition at line 174 of file CredentialStore.cc.

174  {
175  m_store.closeSession( false );
176  }
CredentialStore & m_store
void closeSession(bool commit=true)

Member Function Documentation

void cond::CSScopedSession::close ( void  )
inline
void cond::CSScopedSession::start ( bool  readOnly = true)
inline
void cond::CSScopedSession::startSuper ( const std::string &  connectionString,
const std::string &  userName,
const std::string &  password 
)
inline

Definition at line 177 of file CredentialStore.cc.

Referenced by cond::CredentialStore::createSchema(), cond::CredentialStore::drop(), and cond::CredentialStore::resetAdmin().

179  {
180  m_store.startSuperSession( connectionString, userName, password );
181  }
CredentialStore & m_store
void startSuperSession(const std::string &connectionString, const std::string &userName, const std::string &password)

Member Data Documentation

CredentialStore& cond::CSScopedSession::m_store
private

Definition at line 190 of file CredentialStore.cc.