RepositoryTransaction Flush Method

Meta Data Services Programming

Meta Data Services Programming

RepositoryTransaction Flush Method

This method flushes cached changes to the repository database.

Syntax

Call object.Flush

The Flush method syntax has the following part.

Part Description
object An object expression that evaluates to a RepositoryTransaction object for the currently open Repository instance
Remarks

You can set flags that determine what happens to data during a transaction. Changes are not written to the database until the transaction is committed. If a concurrent SQL query is run against the repository database, the result of the query will not reflect the uncommitted changes. (This is usually the desired behavior.)

If your tool or application must be able to see uncommitted changes in SQL queries, you can use the Flush method to write uncommitted changes to the repository database. All changes made within the scope of the current transaction are flushed. Flushing uncommitted changes does not affect your ability to cancel a transaction using the Abort method.

To get and set flags, use the GetOption and SetOption methods.

See Also

Repository Transaction Property

RepositoryTransaction Object

RepositoryTransaction GetOption Method

RepositoryTransaction SetOption Method

TransactionFlags Enumeration