Repository::lookup_id

Overview The lookup_id operation is used to look up an object in a Repository given its RepositoryId.
Original interface Repository Interface
Exceptions CORBA::SystemException


Intended Usage

The lookup_id operation is used to retrieve an object from the Interface Repository based upon its unique CORBA::RepositoryId. If the Repository does not contain a definition for the search CORBA::RepositoryId, a nil object reference is returned.

Syntax

  Contained lookup_id (in RepositoryId search_id);

Input parameters

search_id
The search_id parameter is the unique CORBA::RepositoryId value of the Interface Repository object that is sought.

Return values

Contained *
The returned value is a pointer to a CORBA::Contained object that was retrieved from the Interface Repository. A nil object reference is returned if no object in the Interface Repository has the specified CORBA::RepositoryId.

Example

  // C++
     // assume that 'interface_1' and 'repository_ptr' have already
        been initialized;
     CORBA::InterfaceDef * interface_1;
     CORBA::Repository * repository_ptr;
 
     // obtain the CORBA::RepositoryId for 'interface_1'
     CORBA::RepositoryId rep_id;
     rep_id = interface_1-> id();   
     //  . . . .                    
     // retrieve the object from the Interface Repository database
     // using the CORBA::RepositoryId as the search key
     CORBA::Contained * contained_ptr;
     contained_ptr = repository_ptr-> lookup_id (rep_id);
 
     

Related reference
CORBA module



Searchable topic ID:   rcor_modre6
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/corba/ref/rcor_modre6.html

Library | Support | Terms of Use | Feedback