Fields Summary |
---|
public static final oreilly.hcj.datamodeling.constraints.StringConstraint | CODE_CONSTRAINTConstraint for the property code. |
public static final oreilly.hcj.datamodeling.constraints.ObjectConstraint | CONTROLLER_CONSTRAINTConstraint for the property controller. |
public static final oreilly.hcj.datamodeling.constraints.ObjectConstraint | CUSTOMER_CONSTRAINTConstraint for the property customer. |
public static final oreilly.hcj.datamodeling.constraints.DateConstraint | APPROVAL_DATE_CONSTRAINTConstraint for the property approvalDate. |
public static final oreilly.hcj.datamodeling.constraints.NumericConstraint | PRINCIPAL_CONSTRAINTConstraint for the property principal. |
public static final oreilly.hcj.datamodeling.constraints.ObjectConstraint | STATUS_CONSTRAINTConstraint for the property status. |
public static final oreilly.hcj.datamodeling.constraints.StringConstraint | COLLATERAL_CONSTRAINTConstraint for the property collateral. |
public static final oreilly.hcj.datamodeling.constraints.StringConstraint | PURPOSE_CONSTRAINTConstraint for the property purpose. |
private BankOfficer | controllerThe bank officer controllign the loan. |
private Customer | customerThe customer makign the application. |
private Date | approvalDateThe date the loan was approved or null if it has yet to be approved or has been
denied. |
private Float | principalThe requested principal of the loan. |
private LoanApplicationStatus | statusThe current status of this application. |
private String | codeHolds value of property code. |
private String | collateralA description of the collateral offered for the loan. |
private String | purposeThe purpose of the loan. |
Methods Summary |
---|
public boolean | equals(java.lang.Object obj)
if (!(obj instanceof LoanApplication)) {
return false;
} else {
return (((LoanApplication)obj).getCode().equals(this.code));
}
|
public java.util.Date | getApprovalDate()Getter for property approvalDate.
return approvalDate;
|
public java.lang.String | getCode()Getter for property code.
return this.code;
|
public java.lang.String | getCollateral()Getter for property collateral.
return collateral;
|
public BankOfficer | getController()Getter for property controller.
return controller;
|
public oreilly.hcj.bankdata.Customer | getCustomer()Getter for property customer.
return customer;
|
public java.lang.Float | getPrincipal()Getter for property principal.
return principal;
|
public java.lang.String | getPurpose()Getter for property purpose.
return purpose;
|
public LoanApplicationStatus | getStatus()Getter for property status.
return status;
|
public int | hashCode()
return this.code.hashCode();
|
public void | setApprovalDate(java.util.Date approvalDate)Setter for property approvalDate.
APPROVAL_DATE_CONSTRAINT.validate(approvalDate);
final Date oldApprovalDate = this.approvalDate;
this.approvalDate = approvalDate;
propertyChangeSupport.firePropertyChange("approvalDate", oldApprovalDate,
this.approvalDate);
|
public void | setCode(java.lang.String code)Setter for property code.
CODE_CONSTRAINT.validate(code);
final String oldCode = this.code;
this.code = code;
propertyChangeSupport.firePropertyChange("code", oldCode, code);
|
public void | setCollateral(java.lang.String collateral)Setter for property collateral.
COLLATERAL_CONSTRAINT.validate(collateral);
final String oldCollateral = this.collateral;
this.collateral = collateral;
propertyChangeSupport.firePropertyChange("collateral", oldCollateral,
this.collateral);
|
public void | setController(BankOfficer controller)Setter for property controller.
CONTROLLER_CONSTRAINT.validate(controller);
final BankOfficer oldController = this.controller;
this.controller = controller;
propertyChangeSupport.firePropertyChange("controller", oldController,
this.controller);
|
public void | setCustomer(Customer customer)Setter for property customer.
CUSTOMER_CONSTRAINT.validate(customer);
final Customer oldCustomer = this.customer;
this.customer = customer;
propertyChangeSupport.firePropertyChange("customer", oldCustomer, this.customer);
|
public void | setPrincipal(java.lang.Float principal)Setter for property principal.
PRINCIPAL_CONSTRAINT.validate(principal);
final Float oldPrincipal = this.principal;
this.principal = principal;
propertyChangeSupport.firePropertyChange("principal", oldPrincipal, this.principal);
|
public void | setPurpose(java.lang.String purpose)Setter for property purpose.
PURPOSE_CONSTRAINT.validate(purpose);
final String oldPurpose = this.purpose;
this.purpose = purpose;
propertyChangeSupport.firePropertyChange("purpose", oldPurpose, this.purpose);
|
public void | setStatus(LoanApplicationStatus status)Setter for property status.
STATUS_CONSTRAINT.validate(status);
final LoanApplicationStatus oldStatus = this.status;
this.status = status;
propertyChangeSupport.firePropertyChange("status", oldStatus, this.status);
|