CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
cond::persistency::OraTransaction Class Reference
Inheritance diagram for cond::persistency::OraTransaction:
cond::persistency::ITransaction

Public Member Functions

void commit ()
 
bool isActive ()
 
 OraTransaction (const cond::DbSession &session)
 
void rollback ()
 
virtual ~OraTransaction ()
 
- Public Member Functions inherited from cond::persistency::ITransaction
virtual ~ITransaction ()
 

Private Attributes

cond::DbSession m_session
 

Additional Inherited Members

- Public Attributes inherited from cond::persistency::ITransaction
size_t clients = 0
 
bool gtDbExists = false
 
bool gtDbOpen = false
 
bool iovDbExists = false
 
bool iovDbOpen = false
 
bool isOra = false
 

Detailed Description

Definition at line 38 of file SessionImpl.cc.

Constructor & Destructor Documentation

cond::persistency::OraTransaction::OraTransaction ( const cond::DbSession session)
inline

Definition at line 40 of file SessionImpl.cc.

References cond::persistency::ITransaction::isOra.

40  :
41  m_session( session ){
42  isOra = true;
43  }
virtual cond::persistency::OraTransaction::~OraTransaction ( )
inlinevirtual

Definition at line 44 of file SessionImpl.cc.

44 {}

Member Function Documentation

void cond::persistency::OraTransaction::commit ( )
inlinevirtual

Implements cond::persistency::ITransaction.

Definition at line 46 of file SessionImpl.cc.

References cond::DbTransaction::commit(), m_session, and cond::DbSession::transaction().

46  {
48  }
DbTransaction & transaction()
Definition: DbSession.cc:208
int commit()
commit transaction.
bool cond::persistency::OraTransaction::isActive ( )
inlinevirtual

Implements cond::persistency::ITransaction.

Definition at line 53 of file SessionImpl.cc.

References cond::DbTransaction::isActive(), m_session, and cond::DbSession::transaction().

53  {
54  return m_session.transaction().isActive();
55  }
DbTransaction & transaction()
Definition: DbSession.cc:208
int isActive() const
current transaction is active
void cond::persistency::OraTransaction::rollback ( )
inlinevirtual

Implements cond::persistency::ITransaction.

Definition at line 50 of file SessionImpl.cc.

References m_session, cond::DbTransaction::rollback(), and cond::DbSession::transaction().

50  {
52  }
bool rollback()
rollback transaction
DbTransaction & transaction()
Definition: DbSession.cc:208

Member Data Documentation

cond::DbSession cond::persistency::OraTransaction::m_session
private

Definition at line 57 of file SessionImpl.cc.

Referenced by commit(), isActive(), and rollback().