Stack based helper class that encapsulates a command sequence (ICommandSequence); if a sequence already exists this class does nothing (the commands you process join the existing sequence), otherwise a new sequence is created and ended by this class. The changes made by commands processed within the sequence are commited if the global error code is kSuccess when this helper class goes out of scope, otherwise the database is rolled back to its state before the sequence started (see CmdUtils::EndCommandSequence(ICommandSequence *)).
The difference between this class and CmdUtils::SequencePtr is that this class does not create a new sequence if one already exists.
- See Also
- ICommandSequence
- CmdUtils::SequencePtr