현재 데이터베이스 스키마에 있는 레코드 유형 이름을 포함하는 배열을 리턴합니다.
이 메소드는 모든 State-based 및 Stateless 레코드 유형의 이름을 리턴합니다.
이 메소드를 사용하여 이름의 목록을 가져온 뒤에는 GetEntityDef 메소드를 호출하여 해당 레코드 유형에 대한 EntityDef 오브젝트를 검색할 수 있습니다.
VBScript
session.GetEntityDefNames
Perl
$session->GetEntityDefNames();
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
}