GetEntityDef

Description

Returns the requested EntityDef object.

You can use this method to get an EntityDef object for either state-based or stateless record types. To get a list of all EntityDef names in the schema, call the GetEntityDefNames method. You can call other methods of Session to return the names of specific EntityDef subsets. To get an EntityDef that belongs to a family, use the methods specifically for families (given in See also below).

Syntax

Perl


$session->GetEntityDef(entitydef_name); 
Identifier
Description
session
The Session object that represents the current database-access session.
entitydef_name
A String containing the name of an EntityDef object.
Return value
The requested EntityDef object.

Example

Perl


my($session, $nameList, $field, $entityDefObj, $actionName);

  $session = $entity->GetSession();

  $entityDefObj = $session->GetEntityDef(

                    $entity->GetEntityDefName());



  $session->OutputDebugString("##> Action names for " .

                    $entityDefObj->GetName() . "\n");



$nameList = $entityDefObj->GetActionDefNames();



foreach $actionName(@$nameList)

{

  $session->OutputDebugString("\t##> $actionName\n");

}