FileDocCategorySizeDatePackage
MonetaryTransaction.javaAPI DocExample686Mon Apr 25 09:27:40 BST 2005com.springbook

MonetaryTransaction

public class MonetaryTransaction extends Object

Fields Summary
private int
txId
private int
resId
private double
amount
Constructors Summary
public MonetaryTransaction()


   
public MonetaryTransaction(int resId, double amount)

      this.resId = resId;
      this.amount = amount;
      this.txId = -1;
   
Methods Summary
public doublegetAmount()

      return amount;
   
public intgetResId()

      return resId;
   
public intgetTxId()

      return txId;
   
public voidsetAmount(double amount)

      this.amount = amount;
   
public voidsetResId(int resId)

      this.resId = resId;
   
public voidsetTxId(int txId)

      this.txId = txId;