EntityExistsByDbId

Description

Returns an indication of whether the entity exists or not.

Remarque : This method is deprecated for v 7.1.0 and later. Use EntityVisibleByDbId.
Remarque : In version 7.0 the limit on the number of records that can be stored increased so the range of DBIDs also increased. However, Rational ClearQuest clients earlier than version 7.0 cannot display records with database identifiers (DBIDs) higher than the former limit. For more information on DBIDs, see Utilisation d'enregistrements

Syntaxe

VBScript

session.EntityExistsByDbId entity_def_name, db_id 

Perl

$session->EntityExistsByDbId(entity_def_name, db_id); 
Identificateur
Description
session
Objet Session représentant la session en cours d'accès à la base de données.
entity_def_name
A String containing the record type (EntityDef) name.
db_id
A Long containing the record's unique ID number.
Return value
Returns a Boolean True if the Entity exists, False otherwise.

Exemples

VBScript

set sessionObj = GetSession

set entityObj = session.GetEntity("defect", "test00000001")

dbid = entity.GetDbId

ResultFromEntityExistDbid = sessionObj.EntityExistsByDbId("defect", dbid) 

Perl

$sessionObj = $entityObj->GetSession();

$entityObj = $sessionObj->GetEntity("defect", "test00000001");

$dbid = $entityObj->GetDbId();

$ResultFromEntityExistDbid = $sessionObj->EntityExistsByDbId("defect", dbid); 

Commentaires en retour