background image
<< Variables Used in EJB Templates | Replacement Variables >>
<< Variables Used in EJB Templates | Replacement Variables >>

home_interface_name Variable

126
Appendix A - Template Replacement Variables
<home_interface_name>
Name of the EJB Home Interface
Rose Item Fully Qualified Name :=
Logical View::RationalBankAcct::CheckingHome::create
Before: <home_interface_name>
home = (<home_interface_name>) PortableRemoteObject.narrow(o,
<home_interface_name>.class);
After: CheckingHome home = (CheckingHome)
PortableRemoteObject.narrow(o, CheckingHome.class);
<primary_key_class_name>
Name of the EJB Primary Key class
Rose Item Fully Qualified Name :=
Logical View::RationalBankAcct::CheckingKey
Before: <primary_key_class_name>
key = new <primary_key_class_name>(<key_params>);
After: CheckingKey key = new CheckingKey(<key_params>)
<createparam_declaration>
String that declares all of the parameters for the EJB Home Interface
Create method that is associated with the operation's class selected for
generation.
Example:
Before:
// Declare arguments to the create method
<createparam_declaration>
After:
// Declare arguments to the create method
long accountID = 0;
String customerID = null;
long lastTrans = 0;
java.math.BigDecimal openBalance = null;
<createparam_init>
String that will initialize all of the create parameters for the EJB Home
Interface Create method using a datapool initialization.
Before:
// Declare arguments to the create method
<createparam_declaration>
After:
Initialize arguments for the create method
AccountID = dp.value("accountID").longValue();
customerID = dp.value("customerID").toString();
lastTrans = dp.value("lastTrans").longValue();
openBalance = dp.value("openBalance").getBigDecimal();
Variable
Description and Example