GetDefaultEntityDef

Description

Returns the schema's default EntityDef object.

This method returns the default EntityDef object as defined in the schema. For methods that require a named EntityDef object, HCL Compass uses the default EntityDef object when the name is the empty string ("").

Syntax

VBScript


session.GetDefaultEntityDef 

Perl


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

Examples

VBScript


set sessionObj = GetSession 

set defEntityDef = sessionObj.GetDefaultEntityDef 

Perl


#Create a HCL Compass session

$sessionObj = $entity->GetSession();



#Get the default record type of the schema

$defEntityDef = $sessionObj->GetDefaultEntityDef();