GetEntityDefNames

설명

현재 데이터베이스 스키마에 있는 레코드 유형 이름을 포함하는 배열을 리턴합니다.

이 메소드는 모든 State-based 및 Stateless 레코드 유형의 이름을 리턴합니다.

이 메소드를 사용하여 이름의 목록을 가져온 뒤에는 GetEntityDef 메소드를 호출하여 해당 레코드 유형에 대한 EntityDef 오브젝트를 검색할 수 있습니다.

구문

VBScript

session.GetEntityDefNames 

Perl

$session->GetEntityDefNames(); 
ID
설명
session
현재 database-access 세션을 나타내는 Session 오브젝트입니다.
Return value
Visual Basic의 경우 문자열 배열이 포함된 Variant를 리턴합니다. 배열의 각 문자열에는 스키마의 단일 EntityDef의 이름이 포함됩니다. Perl의 경우 문자열 배열에 대한 참조가 리턴됩니다.

예제

VBScript

set sessionObj = GetSession 

' Get the list of names of all record types. 
entityDefNames = sessionObj.GetEntityDefNames 

' Iterate over all the record types 
for each name in entityDefNames 
      set entityDefObj = sessionObj.GetEntityDef(name) 

   ' Do something with the EntityDef object 
   Next

Perl

#Create a Rational ClearQuest session

$sessionObj = $entity->GetSession();



#Get the names of the record types in the
# current database's schema. 

$entityDefNames = $sessionObj->GetEntityDefNames(); 


   #Iterate over the record types
   foreach $name ( @$entityDefNames )
      {
      $entityDefObj = $sessionObj->GetEntityDef( $name );

      #Do something with the EntityDef object

      } 

피드백