CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
ora::DatabaseImpl Class Reference

Public Member Functions

 DatabaseImpl ()
 
 DatabaseImpl (boost::shared_ptr< ConnectionPool > &connectionPool)
 
 ~DatabaseImpl ()
 

Public Attributes

std::auto_ptr< DatabaseSessionm_session
 
std::auto_ptr< Transactionm_transaction
 

Detailed Description

Definition at line 14 of file Database.cc.

Constructor & Destructor Documentation

ora::DatabaseImpl::DatabaseImpl ( )
inline

Definition at line 16 of file Database.cc.

References m_session, and m_transaction.

16  :
17  m_session(0),
18  m_transaction(0){
19  m_session.reset( new DatabaseSession );
20  m_transaction.reset( new Transaction( *m_session ));
21  }
std::auto_ptr< DatabaseSession > m_session
Definition: Database.cc:33
std::auto_ptr< Transaction > m_transaction
Definition: Database.cc:34
ora::DatabaseImpl::DatabaseImpl ( boost::shared_ptr< ConnectionPool > &  connectionPool)
inline

Definition at line 23 of file Database.cc.

References m_session, and m_transaction.

23  :
24  m_session(0),
25  m_transaction(0){
26  m_session.reset( new DatabaseSession( connectionPool ) );
27  m_transaction.reset( new Transaction( *m_session )) ;
28  }
std::auto_ptr< DatabaseSession > m_session
Definition: Database.cc:33
std::auto_ptr< Transaction > m_transaction
Definition: Database.cc:34
ora::DatabaseImpl::~DatabaseImpl ( )
inline

Definition at line 30 of file Database.cc.

30  {
31  }

Member Data Documentation

std::auto_ptr<DatabaseSession> ora::DatabaseImpl::m_session

Definition at line 33 of file Database.cc.

Referenced by DatabaseImpl().

std::auto_ptr<Transaction> ora::DatabaseImpl::m_transaction

Definition at line 34 of file Database.cc.

Referenced by DatabaseImpl().