bool ConcreteDatabase::transactionCommitDirect() { if (!_asyncConn) return false; //check if we have pending transaction if(!_transStorage->get()) return false; //directly execute SqlTransaction { scoped_ptr<SqlTransaction> pTrans(_transStorage->detach()); return pTrans->execute(getAsyncConnection()); } }
void Cx_XmlSection::BeginTransaction() { Cx_Interface<Ix_ConfigTransaction> pTrans(m_pData->m_pThis); ASSERT(pTrans.IsNotNull()); pTrans->BeginTransaction(); }
bool Cx_XmlSection::EndTransaction() { Cx_Interface<Ix_ConfigTransaction> pTrans(m_pData->m_pThis); ASSERT(pTrans.IsNotNull()); return pTrans->EndTransaction(); }
ULONG Cx_XmlSection::GetModifiedCount() { Cx_Interface<Ix_ConfigTransaction> pTrans(m_pData->m_pThis); ASSERT(pTrans.IsNotNull()); return pTrans->GetModifiedCount(); }