Rollback Mechanism

FDO API

 
Rollback Mechanism
 
 
 

The FdoFeatureSchema contains a mechanism that allows you to “roll back” model changes to the last accepted state. For example, a model retrieved via FdoIDescribeSchema can have classes added, attributes deleted, or names and default values changed. All of these changes are thrown out and the model returned to its unmodified state by calling FdoFeatureSchema::RejectChanges().

The converse of this operation is the FdoFeatureSchema::AcceptChanges() method, which removes all of the elements with a status of Deleted and sets the state flag of all other elements to Unchanged. Generally, this method is only invoked by FDO provider code after it has processed an FdoIApplySchema::Execute() command. Normal FDO clients should not call this method directly.