FileDocCategorySizeDatePackage
SavingsAccount.javaAPI DocExample1852Sun Dec 14 22:47:40 GMT 2003oreilly.hcj.bankdata

SavingsAccount

public class SavingsAccount extends AssetAccount
An account that earns interest but cannot be used in transactions without assistance from a bank emplyee.
author
Robert Simmons jr. (kraythe)
version
$Revision: 1.3 $

Fields Summary
public static final oreilly.hcj.datamodeling.constraints.NumericConstraint
INTEREST_RATE_CONSTRAINT
Constraint for the property interestRate.
private Float
interestRate
The interest rate paid monthly on balances in this account.
Constructors Summary
Methods Summary
public java.lang.FloatgetInterestRate()
Getter for property interestRate.

return
Value of property interestRate.

		return interestRate;
	
public voidsetInterestRate(java.lang.Float interestRate)
Setter for property interestRate.

param
interestRate New value of property interestRate.


	            	 
	     
		INTEREST_RATE_CONSTRAINT.validate(interestRate);
		final Float oldInterestRate = this.interestRate;
		this.interestRate = interestRate;
		propertyChangeSupport.firePropertyChange("interestRate", oldInterestRate,
		                                         this.interestRate);