Пример #1
0
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());	
	}
}
Пример #2
0
void Cx_XmlSection::BeginTransaction()
{
    Cx_Interface<Ix_ConfigTransaction> pTrans(m_pData->m_pThis);
    ASSERT(pTrans.IsNotNull());
    pTrans->BeginTransaction();
}
Пример #3
0
bool Cx_XmlSection::EndTransaction()
{
    Cx_Interface<Ix_ConfigTransaction> pTrans(m_pData->m_pThis);
    ASSERT(pTrans.IsNotNull());
    return pTrans->EndTransaction();
}
Пример #4
0
ULONG Cx_XmlSection::GetModifiedCount()
{
    Cx_Interface<Ix_ConfigTransaction> pTrans(m_pData->m_pThis);
    ASSERT(pTrans.IsNotNull());
    return pTrans->GetModifiedCount();
}