FileDocCategorySizeDatePackage
ProcessTransaction.javaAPI DocJBoss 4.2.11586Fri Jul 13 21:02:22 BST 2007test.patterns.readwritelock

ProcessTransaction

public class ProcessTransaction extends Object implements Runnable
version
$Revision: 57186 $
author
{Claude Hussenet Independent Consultant}.

Fields Summary
private Account
account
private float
amount
Constructors Summary
public ProcessTransaction(Account account, float amount)

	    this.account=account;
	    this.amount=amount;
	   
Methods Summary
public voidrun()

          if (amount>0) account.credit(amount);
          else account.debit(amount*-1);