background image
<< MethodBodyTemplate Variable | ParameterValuesAsSumofString Variable >>
<< MethodBodyTemplate Variable | ParameterValuesAsSumofString Variable >>

Exceptions Variable

Replacement Variables for Stub Generation Templates
137
<<!Exceptions!>>
Comma-separated list of exceptions
that the method throws to be
included as part of the method
declaration. Includes the word
"throws".
Example:
throws
java.rmi.RemoteException,javax.nam
ing.NamingException,javax.ejb.EJBE
xception
MethodBody
MethodBodyWithoutLook
Up
MethodBodyWithoutRetu
rnValue
<<!ParameterCount!>>
Number of parameter for the method
Example:
3
MethodBody
MethodBodyWithoutExce
ptions
MethodBodyWithoutRetu
rnValue
<<!ParameterNamesAsStringArray
!>>
Code to turn parameter names into
array of strings.
Example:
ParamNames[0] = "accountID";
ParamNames[1] = "amount";
MethodBody
MethodBodyWithoutExce
ptions
MethodBodyWithoutRetu
rnValue
<<!Return!>>
The word "Return" + a space
Example:
Return
MethodBody
MethodBodyWithoutExce
ptions
MethodBodyWithoutLook
Up
<<!ParameterNames!>>
Comma-separated list of parameter
names, for example accountID,
amount
MethodBody
MethodBodyWithoutExce
ptions
MethodBodyWithoutRetu
rnValue
<<!InitialReturnValue!>>
Initial value assigned to the return
value­for example null.
Zero for numeric types
false for boolean
null for String and Objects
MethodBody
MethodBodyWithoutExce
ptions
MethodBodyWithoutLook
Up
<<!LookUpTableName!>>
Name of the lookup table to be used
for the method--for example
ManageAccountsBean_depositToChe
cking_L
MethodBody
MethodBodyWithoutExce
ptions
MethodBodyWithoutRetu
rnValue
<<!ParameterValuesAsStringArray!
>>
Code to turn parameter values into
array of strings.
For example:
values[0] = Long.toString(accountID);
values[1] = amount.toString();
MethodBody
MethodBodyWithoutExce
ptions
MethodBodyWithoutRetu
rnValue
Variable
Description
Template