FileDocCategorySizeDatePackage
LoanApplication.javaAPI DocExample7989Sun Dec 14 22:47:38 GMT 2003oreilly.hcj.bankdata

LoanApplication

public class LoanApplication extends oreilly.hcj.datamodeling.MutableObject
An application for a LoanAccount.
author
Robert Simmons jr. (kraythe)
version
$Revision: 1.5 $

Fields Summary
public static final oreilly.hcj.datamodeling.constraints.StringConstraint
CODE_CONSTRAINT
Constraint for the property code.
public static final oreilly.hcj.datamodeling.constraints.ObjectConstraint
CONTROLLER_CONSTRAINT
Constraint for the property controller.
public static final oreilly.hcj.datamodeling.constraints.ObjectConstraint
CUSTOMER_CONSTRAINT
Constraint for the property customer.
public static final oreilly.hcj.datamodeling.constraints.DateConstraint
APPROVAL_DATE_CONSTRAINT
Constraint for the property approvalDate.
public static final oreilly.hcj.datamodeling.constraints.NumericConstraint
PRINCIPAL_CONSTRAINT
Constraint for the property principal.
public static final oreilly.hcj.datamodeling.constraints.ObjectConstraint
STATUS_CONSTRAINT
Constraint for the property status.
public static final oreilly.hcj.datamodeling.constraints.StringConstraint
COLLATERAL_CONSTRAINT
Constraint for the property collateral.
public static final oreilly.hcj.datamodeling.constraints.StringConstraint
PURPOSE_CONSTRAINT
Constraint for the property purpose.
private BankOfficer
controller
The bank officer controllign the loan.
private Customer
customer
The customer makign the application.
private Date
approvalDate
The date the loan was approved or null if it has yet to be approved or has been denied.
private Float
principal
The requested principal of the loan.
private LoanApplicationStatus
status
The current status of this application.
private String
code
Holds value of property code.
private String
collateral
A description of the collateral offered for the loan.
private String
purpose
The purpose of the loan.
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object obj)

see
java.lang.Object#equals(java.lang.Object)

		if (!(obj instanceof LoanApplication)) {
			return false;
		} else {
			return (((LoanApplication)obj).getCode().equals(this.code));
		}
	
public java.util.DategetApprovalDate()
Getter for property approvalDate.

return
Value of property approvalDate.

		return approvalDate;
	
public java.lang.StringgetCode()
Getter for property code.

return
Value of property code.

		return this.code;
	
public java.lang.StringgetCollateral()
Getter for property collateral.

return
Value of property collateral.

		return collateral;
	
public BankOfficergetController()
Getter for property controller.

return
Value of property controller.

		return controller;
	
public oreilly.hcj.bankdata.CustomergetCustomer()
Getter for property customer.

return
Value of property customer.

		return customer;
	
public java.lang.FloatgetPrincipal()
Getter for property principal.

return
Value of property principal.

		return principal;
	
public java.lang.StringgetPurpose()
Getter for property purpose.

return
Value of property purpose.

		return purpose;
	
public LoanApplicationStatusgetStatus()
Getter for property status.

return
Value of property status.

		return status;
	
public inthashCode()

see
java.lang.Object#hashCode()

		return this.code.hashCode();
	
public voidsetApprovalDate(java.util.Date approvalDate)
Setter for property approvalDate.

param
approvalDate New value of property approvalDate.


	            	 
	    
		APPROVAL_DATE_CONSTRAINT.validate(approvalDate);
		final Date oldApprovalDate = this.approvalDate;
		this.approvalDate = approvalDate;
		propertyChangeSupport.firePropertyChange("approvalDate", oldApprovalDate,
		                                         this.approvalDate);
	
public voidsetCode(java.lang.String code)
Setter for property code.

param
code New value of property code.

		CODE_CONSTRAINT.validate(code);
		final String oldCode = this.code;
		this.code = code;
		propertyChangeSupport.firePropertyChange("code", oldCode, code);
	
public voidsetCollateral(java.lang.String collateral)
Setter for property collateral.

param
collateral New value of property collateral.

		COLLATERAL_CONSTRAINT.validate(collateral);
		final String oldCollateral = this.collateral;
		this.collateral = collateral;
		propertyChangeSupport.firePropertyChange("collateral", oldCollateral,
		                                         this.collateral);
	
public voidsetController(BankOfficer controller)
Setter for property controller.

param
controller New value of property controller.

		CONTROLLER_CONSTRAINT.validate(controller);
		final BankOfficer oldController = this.controller;
		this.controller = controller;
		propertyChangeSupport.firePropertyChange("controller", oldController,
		                                         this.controller);
	
public voidsetCustomer(Customer customer)
Setter for property customer.

param
customer New value of property customer.

		CUSTOMER_CONSTRAINT.validate(customer);
		final Customer oldCustomer = this.customer;
		this.customer = customer;
		propertyChangeSupport.firePropertyChange("customer", oldCustomer, this.customer);
	
public voidsetPrincipal(java.lang.Float principal)
Setter for property principal.

param
principal New value of property principal.

		PRINCIPAL_CONSTRAINT.validate(principal);
		final Float oldPrincipal = this.principal;
		this.principal = principal;
		propertyChangeSupport.firePropertyChange("principal", oldPrincipal, this.principal);
	
public voidsetPurpose(java.lang.String purpose)
Setter for property purpose.

param
purpose New value of property purpose.

		PURPOSE_CONSTRAINT.validate(purpose);
		final String oldPurpose = this.purpose;
		this.purpose = purpose;
		propertyChangeSupport.firePropertyChange("purpose", oldPurpose, this.purpose);
	
public voidsetStatus(LoanApplicationStatus status)
Setter for property status.

param
status New value of property status.

		STATUS_CONSTRAINT.validate(status);
		final LoanApplicationStatus oldStatus = this.status;
		this.status = status;
		propertyChangeSupport.firePropertyChange("status", oldStatus, this.status);