GetAuxEntityDefNames

설명

문자열 배열을 리턴합니다. 이 경우 각 문자열은 스키마 Stateless 레코드 유형 중 하나의 이름에 해당합니다.

배열은 비어 있을 수 없습니다. 최소한 시스템 정의된 Stateless 레코드 유형에 해당하는 이름 "users", "groups", "attachments" 및 "history"가 포함됩니다.

Stateless 레코드 유형의 이름을 알면 GetEntityDef 메소드를 호출하여 해당 레코드 유형에 대한 EntityDef Object를 검색할 수 있습니다.

구문

VBScript

session.GetAuxEntityDefNames 

Perl

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

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

예제

VBScript

set sessionObj = GetSession 

' Get the list of names for the stateless record types. 
entityDefNames = sessionObj.GetAuxEntityDefNames 

' Iterate over the non-system stateless record types 
for each name in entityDefNames 
   if name <> "users" And name <> "groups" _ 
      And name <> "attachments" And name <> "history" Then 
         set entityDefObj = sessionObj.GetEntityDef(name) 

      ' Do something with the EntityDef object 
   End If 
Next

Perl

$sessionObj = $entity->GetSession();

#Get an array containing the names of the stateless record

#types in the current database's schema.

$AuxEntityDefNames = $sessionObj->GetAuxEntityDefNames();

   

#Iterate over the state-based record types

foreach $name ( @$AuxEntityDefNames){

   print $name, "\n";

   $EntityDefObj = $sessionObj->GetEntityDef( $name);

# Do something with the EntityDef object

   # ...

   } 

피드백