Java Programming  «Prev  Next»
Lesson 9Method signatures and parameter modes
ObjectiveDescribe Java mapping of type in method signature.

Method Signatures and Parameter Modes in Corba

As you have seen, the mapping of a parameter type is dependent on the IDL type of that parameter as well as the parameter passing mode of that parameter. To know what to expect from the IDL compiler, you should have a good handle on the possible combinations.
View the table below to see an illustration of the mapping from IDL to Java for each primitive type and parameter passing mode.
The columns for in and return are the same as are the columns for out and inout.


IDL in out Inout return
short short ShortHolder ShortHolder short
long int IntHolder IntHolder int
long long long LongHolder LongHolder long
unsigned short short ShortHolder ShortHolder short
unsigned long int IntHolder IntHolder int
unsigned long long long LongHolder LongHolder long
float float FloatHolder FloatHolder float
double double DoubleHolder DoubleHolder double
char char CharHolder CharHolder char
wchar char CharHolder CharHolder char
string java.lang.String StringHolder StringHolder java.lang.String
wstring java.lang.String StringHolder StringHolder java.lang.String
boolean boolean BooleanHolder BooleanHolder boolean
octet byte ByteHolder ByteHolder byte

In the next lesson, you will learn the mapping for attributes in IDL interfaces.