FileDocCategorySizeDatePackage
CreditCardAccount.javaAPI DocExample3730Sun Dec 14 22:47:40 GMT 2003oreilly.hcj.bankdata

CreditCardAccount

public class CreditCardAccount extends LiabilityAccount
An account rpresenting a credit card in the posession of the customer.
author
Robert Simmons jr. (kraythe)
version
$Revision: 1.4 $

Fields Summary
public static final oreilly.hcj.datamodeling.constraints.NumericConstraint
CARD_NUMBER_CONSTRAINT
Constraint for the property creditLimit.
public static final oreilly.hcj.datamodeling.constraints.NumericConstraint
CREDIT_LIMIT_CONSTRAINT
Constraint for the property creditLimit.
public static final oreilly.hcj.datamodeling.constraints.NumericConstraint
MIN_PAY_PERCENT_CONSTRAINT
Constraint for the property minPayPercent.
private Float
creditLimit
The limit of credit on this card.
private Float
minPayPercent
The minimum percentage of the balance that the cardholder must pay each month.
private Long
cardNumber
The 16 digit card number on this card.
Constructors Summary
Methods Summary
public java.lang.LonggetCardNumber()
Getter for property cardNumber.

return
Value of property cardNumber.

		return cardNumber;
	
public java.lang.FloatgetCreditLimit()
Getter for property creditLimit.

return
Value of property creditLimit.

		return creditLimit;
	
public java.lang.FloatgetMinPayPercent()
Getter for property minPayPercent.

return
Value of property minPayPercent.

		return minPayPercent;
	
public voidsetCardNumber(java.lang.Long cardNumber)
Setter for property cardNumber.

param
cardNumber New value of property creditLimit.


	            	 
	     
		CARD_NUMBER_CONSTRAINT.validate(cardNumber);
		final Long oldCardNumber = this.cardNumber;
		this.cardNumber = cardNumber;
		propertyChangeSupport.firePropertyChange("cardNumber", oldCardNumber,
		                                         this.cardNumber);
	
public voidsetCreditLimit(java.lang.Float creditLimit)
Setter for property creditLimit.

param
creditLimit New value of property creditLimit.

		CREDIT_LIMIT_CONSTRAINT.validate(creditLimit);
		final Float oldCreditLimit = this.creditLimit;
		this.creditLimit = creditLimit;
		propertyChangeSupport.firePropertyChange("creditLimit", oldCreditLimit,
		                                         this.creditLimit);
	
public voidsetMinPayPercent(java.lang.Float minPayPercent)
Setter for property minPayPercent.

param
minPayPercent New value of property minPayPercent.

		MIN_PAY_PERCENT_CONSTRAINT.validate(minPayPercent);
		final Float oldMinPayPercent = this.minPayPercent;
		this.minPayPercent = minPayPercent;
		propertyChangeSupport.firePropertyChange("minPayPercent", oldMinPayPercent,
		                                         this.minPayPercent);