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    

Terms of Use | Feedback

Last updated: Feb 19, 2011 5:25:36 AM CST
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=v610web&product=was-nd-mp&topic=rcmd_defineinstclass
File name: rcmd_defineinstclass.html