GetReqEntityDefNames

설명

현재 데이터베이스 스키마의 State-based 레코드 유형 이름을 리턴합니다.

상태 기반 레코드 유형은 상태 기반 레코드용 템플리트입니다. 대부분의 데이터베이스에는 데이터베이스에 의해 저장되는 데이터의 유형을 정의하는 상태 기반 레코드 유형이 최소 한 개는 있습니다. 데이터베이스에는 보조 정보가 포함된 여러 개의 지원 Stateless 레코드 유형이 있을 수도 있습니다.

일반적으로 리턴값에는 최소 하나의 이름이 포함됩니다. 하지만 스키마에 상태 기반 레코드 유형이 없는 경우 리턴값이 빈 Variant일 수 있습니다.

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

구문

VBScript

session.GetReqEntityDefNames 

Perl

$sessionObj->GetReqEntityDefNames(); 
ID
설명
session
현재 database-access 세션을 나타내는 Session 오브젝트입니다.
Return value
Visual Basic의 경우 문자열 배열이 포함된 Variant를 리턴합니다. 배열의 각 문자열에는 원하는 레코드 유형 중 하나의 이름이 포함됩니다.

Perl의 경우 문자열 배열에 대한 참조가 리턴됩니다.

예제

VBScript

set sessionObj = GetSession 

' Get the list of names of the state-based record types. 
entityDefNames = sessionObj.GetReqEntityDefNames 

' Iterate over the state-based record types 
for each name in entityDefNames 
   set entityDefObj = sessionObj.GetEntityDef(name) 
   ' Do something with the EntityDef object 
   Next

Perl

$sessionObj = $entity->GetSession();

#Get the names of the state-based record types. 

$entityDefNames = $sessionObj->GetReqEntityDefNames();

   

#Iterate over the state-based record types

foreach $name ( @$entityDefNames){

   print $name, "\n";

   $entityDefObj = $session->GetEntityDef( $name);

   # Do something with the EntityDef object

   # ...

} 

피드백