GetObjectKeys - 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

GetObjectKeys

Purpose

GetObjectKeys returns the keys for all object versions in the repository, in a metamodel, or in a class that have the current label.

Description

If all of the four parameters gModelGuid, ModelLoid, gClassGuid, and ClassLoid are null or not specified, then all object versions in the repository with the current label are returned.

If one of gModelGuid or ModelLoid is not null, then all object versions in the metamodel with the current label are returned.

If both gModelGuid and ModelLoid are null and one of gClassGuid or ClassLoid is not null, then all object versions in the class with the current label are returned.

Requirements:

The object ID (internal or globally unique) or the name must be set.

Syntax

HRESULT GetObjectKeys(
	vector<CMetaVersionedObjectClassKey>& returnList,
	const GUID &gModelGuid = NULLGUID,
	const OBJECTID_t ModelLoid = NULLLOID,
	const GUID &gClassGuid = NULLGUID,
	const OBJECTID_t ClassLoid = NULLLOID);
 

Argument

In/Out

Description

returnList

In

Reference to vector to return the object keys; the list is cleared before adding the return collection.

gModelGuid

In
(Optional)

Globally unique ID for a metamodel.

ModelLoid

In
(Optional)

Internal object ID for a metamodel.

gClassGuid

In
(Optional)

Globally unique ID for a class.

ClassLoid

In
(Optional)

Internal object ID for a class.