Instance and class variables

The ModifyCheckingAccountCmdImpl class declares the variables used by the methods in the class, including the remote interface of the CheckingAccount entity bean, the variables used to capture operations on the checking account (balances and amounts), and a compensating command.

Variables that are used by the ModifyCheckingAccountCmd command

The following code example shows the variables in the ModifyCheckingAccountCmdImpl class:

public class ModifyCheckingAccountCmdImpl extends TargetableCommandImpl
implements ModifyCheckingAccountCmd
{
// Variables
public float balance;
public float amount;
public float oldBalance;
public CheckingAccount checkingAccount;
public ModifyCheckingAccountCompensatorCmd
modifyCheckingAccountCompensatorCmd;
...
}



Related tasks
Implementing command interfaces
Reference topic Reference topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Aug 30, 2013 8:21:57 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-express-iseries&topic=rcmd_defineinstclass
File name: rcmd_defineinstclass.html