udbEntityLibrary

Description

Return the library that an entity belongs to.

Applies only to Understand for Ada and Understand for Java databases. For Ada, there will always be a library named “standard” which is the only Ada library supported at this time. For Java, the Java JDK entities are in a library named “standard”.

Syntax

#include “udb/udb.h” 
UdbLibrary   udbEntityLibrary(UdbEntity entity); 

Arguments

Argument
Description
UdbEntity entity
Specify the entity

Return Values

Return Values
Description
UdbLibrary
The library to which this entity belongs or NULL if the entity does not belong to any library.

Example Usage

library = udbEntityLibrary(entity);
if (library) {
    printf (“%s is in library %s\n”, 
                  udbEntityNameLong(entity),
                  udbLibraryName(library) );
} 

See Also

udbLibraryCheckEntity

udbLibraryCompare

udbLibraryFilterEntity

udbLibraryList

udbLibraryListFree

udbLibraryName


Scientific Toolworks, Inc.
http://www.scitools.com