Repository Object

See Also

When you define a tool information model, the classes, relationships, properties, and collections for the model are stored in a Repository. Multiple tool information models may be stored in the same Repository.

When you access a Repository, you do so via a Repository instance.

When to Use

You can use a Repository instance to:

Properties

Property Description
ConnectionString The ODBC connection string that the Repository engine uses to obtain an ODBC connection. This property is not a default interface member.
Object Retrieves the specified Repository object.
ReposConnection The ODBC connection handle that the Repository engine is using to access the Repository database. This property is not a default interface member.
RootObject The root Repository object of the currently open Repository.
Transaction The transaction processing interface.
Version Retrieves the specified Repository object version.

Methods

Property Description
Create Creates a new Repository database.
CreateObject Creates a new Repository object in the currently open Repository.
ExecuteQuery Executes the specified SQL query against the Repository database. This method is not a default interface member.
FreeConnection Releases an ODBC connection handle. This method is not a default interface member.
GetNewConnection Obtains a new ODBC connection handle using the same connection settings that the Repository engine is using to access the Repository database. This method is not a default interface member.
InternalIDToObjectID Converts an internal identifier into an object identifier.
InternalIDToVersionID Converts an internal object-version identifier into an object-version identifier.
ObjectIDToInternalID Converts an object identifier into an internal identifier.
Open Opens the specified Repository.
Refresh Refreshes the cached image of all data for the currently open Repository.
VersionIDToInternalID Converts an object-version identifier into an internal object-version identifier.