GetEntityDef

説明

依頼された EntityDef オブジェクトを戻します。

このメソッドを使用すると、状態ありまたは状態なしレコード タイプのいずれかの EntityDef オブジェクトを取得できます。スキーマ内のすべての EntityDef 名のリストを取得するには、GetEntityDefNames メソッドを呼び出します。Session の他のメソッドを呼び出すと、特定の EntityDef サブセットの名前を戻すことができます。ファミリーに属する EntityDef を取得して、特にファミリー用のメソッドを使用します (下記の参照に示してあります)。

構文

VBScript

session.GetEntityDef(entitydef_name) 

Perl

$session->GetEntityDef(entitydef_name); 
識別子
説明
session
現在のデータベース アクセス セッションを表す Session オブジェクト。
entitydef_name
EntityDef オブジェクトの名前を含む String。
戻り値
依頼された EntityDef オブジェクト。

VBScript

set sessionObj = GetSession 

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

' 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

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");

} 

フィードバック