API Reference > OdDb Classes > OdDgTransactionReactor Class > OdDgTransactionReactor Methods > OdDgTransactionReactor::objectIdSwapped Method
OdDgTransactionReactor::objectIdSwapped Method
Syntax
C++
virtual void objectIdSwapped(const OdDgElement* pTransObj, const OdDgElement* pOtherTransObj, OdDgDatabase* pDb);
Parameters 
Description 
const OdDgElement* pTransObj 
[in] Pointer to the first transaction resident object.  
const OdDgElement* pOtherTransObj 
[in] Pointer to the second transaction resident object.  
OdDgDatabase* pDb 
[in] Pointer to the database sending the notification. 

Notification function called when the transaction resident object is involved in a swapIdWith() operation. 

 

According to database transactions implementation the both objects are transaction-resident or not. So this function will be called only once in OdDgElement::swapIdWith() method.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.