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

Filter

The CMetaFilterInfo class contains an attribute called Filter which is an object of the CMetaProperty class:

CMetaProperty     Filter

The Filter object contains the:

  • Relative Property ID or Name of the property on which to perform the search. This can be any of the object’s Common Properties or Unique Properties defined for the class.
  • Search value.
  • The id is set using the CMetaProperty::SetPropertyID function. The name is set using the CMetaProperty::SetName function. For example:

    CMetaFilterInfo filterInfo;
    	filterInfo.Initialize();
    	filterInfo.Filter.SetPropertyID(3);

    The search value is set using a CMetaProperty::Setxxx function such as SetString, SetInt, SetShort, SetBinary, and so on. For example:

    filterInfo.Filter.SetString(_TEXT("FOO"));

    To search on unique properties of a class, you must specify the relative property id or property name specified for the Property Description in the Model.