Java Programming  «Prev 

Simple Mapped Operations

1) All elements defined in a module are the same package
All elements defined in a module are the same package

2) The interface definition results in a class for the interface containing all the elements defined in the IDL interface.
MyIdl.idl:
  module MyMod{
The interface definition results in a class for the interface containing all the elements defined in the IDL interface. The Java interface extends from the common object reference interface org.omg.CORBA.Object.

3) Each operation maps to a single mehod in the Java interface generated for the IDL interface
MyInterface.java:
Each operation maps to a single method in the Java interface generated for the IDL interface. The method name and operation name are the same.


4) The return type of the operation maps to the return type of the method following the rules for primitive type mapping.
public interface MyInterface extends
The return type of the operation maps to the return type of the method following the rules for primitive type mapping.

5) The in parameters of the operation map, in order, to parameters of the same names in the Java method signature.
public interface MyInterface extends
The in parameters of the operation map, in order, to parameters of the same names in the Java method signature.
The parameter types follow the mapping rules for primitive types.

6) The type object in IDL is an object reference, and so maps to the object reference base type org.omg.CORBA.Object
MyIdl.idl;
The type object in IDL is an object reference, and so maps to the object reference base type org.omg.CORBA.Object. The type MyInterface in IDL refers to the IDL interface, so parameters and return values map to the Java interface generated for the IDL interface. The Java interface derives from org.omg.CORBA.Object.