Description
Returns
an indication of whether the entity exists or not.
Note: 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
Syntax
VBScript
session.EntityExistsByDbId entity_def_name, db_id
Perl
$session->EntityExistsByDbId(entity_def_name, db_id);
- Identifier
- Description
- session
- The Session object that represents the current
database-access session.
- 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.
Examples
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);