ReadObject - Teradata Meta Data Services

Teradata Meta Data Services Programmer Guide

Product
Teradata Meta Data Services
Release Number
15.00
Language
English (United States)
Last Update
2018-09-28
Product Category
Teradata Tools and Utilities

ReadObject

Purpose

The CMetaObject class ReadObject function reads the current version of an object from the repository database into the instantiated CMetaObject. This may require waiting for the release of write locks held by other transactions. MDS does not support reads of write-locked MDS repository data.

Requirements

The class ID (internal or globally unique) and object name or the object ID (internal or globally unique) must be set before calling ReadObject. If given, the internal object ID must be for a version of the object.

Note: The order of evaluation to determine the object to be read is: (1) internal object ID if not zero; (2) global object ID if not null; (3) internal class ID and name if the internal class ID is not zero; and (4) global class ID and name.

Syntax

HRESULT ReadObject(void);