Container::create_native

Overview The create_native method creates a new native definition in the Interface Repository.
Original interface CORBA module: Container Interface
Exceptions CORBA::SystemException


Intended Usage

The create_native method creates a new native definition in the Interface Repository persistent database, and returns a pointer to a new NativeDef object associated with the native definition. A NativeDef object is typically used by the Interface Repository to represent an OMG IDL 'native'.

Syntax

NativeDef_ptr create_native ( const char* id, const char* name, const char* version );

Input parameters

id
The id represents the CORBA::RepositoryId that will uniquely identify this NativeDef within the Interface Repository.
name
The name that is associated with this NativeDef object in the Interface Repository.
version
The version number that is associated with this NativeDef object in the Interface Repository.

Return values

NativeDef_ptr
A pointer to the newly created NativeDef object. The memory associated with this object can later be released by calling CORBA::release.

Example

// assume the 'repository_ptr' object has//already been established
CORBA::Repository * repository_ptr;
CORBA::StructDef * structure_1;
   
// create the new native definition called "native1".
CORBA::NativeDef_ptr *new_native;
new_native = repository_ptr->create_native
( "unique RepositoryID for this alias", "native1", "1.0" );

Related reference
CORBA module



Searchable topic ID:   rcor_modcr6a
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_modcr6a.html

Library | Support | Terms of Use | Feedback