IRepositoryTransaction Interface

See Also

The Repository supports transactional processing. Repository methods that are reading data from the Repository may be executed outside of a transaction, but methods that write data must be bracketed within a transaction. Only one transaction may be active at a time for each opened Repository instance. Nesting of Begin/Commit method invocations is permitted, but no actual nesting of transactions occurs.

When to Use

Use the Repository Transaction interface to begin, commit, or abort a Repository transaction. You can also use this interface to retrieve the information about the transactional state of an opened Repository instance, and to set transaction options.

Methods

IUnknown Method Description
QueryInterface Returns pointers to supported interfaces.
AddRef Increments the reference count.
Release Decrements the reference count.

IDispatch Method Description
GetIDsOfNames Maps a single member and a set of argument names to a corresponding set of dispatch identifiers.
GetTypeInfo Retrieves a type information object, which can be used to get the type information for an interface.
GetTypeInfoCount Retrieves the number of type information interfaces that an object provides (either 0 or 1).
Invoke Provides access to properties and methods exposed by an Automation object.

IRepositoryTransaction Method Description
Abort Cancels a currently active transaction.
Begin Begins a new transaction.
Commit Commits an active transaction.
Flush Flushes uncommitted changes to the Repository database.
GetOption Retrieves a transaction option.
get_Status Tells whether or not there is a currently active transaction.
SetOption Sets a transaction option.