GetAuxEntityDefNames

Description

Returns an array of strings, each of which corresponds to the name of one of the schema stateless record types.

The Array is never empty; at a minimum it will contain the names "users", "groups", "attachments", and "history" which correspond to the system-defined stateless record types.

Once you have the name of a stateless record type, you can retrieve the EntityDef Object for that record type by calling the GetEntityDef method.

Syntax

Perl


$session->GetAuxEntityDefNames(); 
Identifier
Description
session
The Session object that represents the current database-access session.
Return value

A reference to an array of strings is returned.

Example

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

   # ...

   }