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 41 of file SessionImpl.cc.

Constructor & Destructor Documentation

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

Definition at line 43 of file SessionImpl.cc.

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

43  :
44  m_session( session ){
45  isOra = true;
46  }
virtual cond::persistency::OraTransaction::~OraTransaction ( )
inlinevirtual

Definition at line 47 of file SessionImpl.cc.

47 {}

Member Function Documentation

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

Implements cond::persistency::ITransaction.

Definition at line 49 of file SessionImpl.cc.

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

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

Implements cond::persistency::ITransaction.

Definition at line 56 of file SessionImpl.cc.

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

56  {
57  return m_session.transaction().isActive();
58  }
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 53 of file SessionImpl.cc.

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

53  {
55  }
bool rollback()
rollback transaction
DbTransaction & transaction()
Definition: DbSession.cc:208

Member Data Documentation

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

Definition at line 60 of file SessionImpl.cc.

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