Fields Summary |
---|
public static final oreilly.hcj.datamodeling.constraints.ObjectConstraint | CARD_COLOR_CONSTRAINTConstraint for the property cardColor. |
public static final oreilly.hcj.datamodeling.constraints.NumericConstraint | CUSTOMER_ID_CONSTRAINTConstraint for the property customerID. |
public static final oreilly.hcj.datamodeling.constraints.StringConstraint | EMAIL_CONSTRAINTConstraint for the property email. |
public static final oreilly.hcj.datamodeling.constraints.CollectionConstraint | ACCOUNTS_CONSTRAINTConstraint for the property accounts. |
public static final oreilly.hcj.datamodeling.constraints.CollectionConstraint | APPLICATIONS_CONSTRAINTConstraint for the property applications. |
public static final oreilly.hcj.datamodeling.constraints.CollectionConstraint | PAYMENTS_CONSTRAINTConstraint for the property payments. |
public static final oreilly.hcj.datamodeling.constraints.StringConstraint | PASS_PHRASE_CONSTRAINTConstraint for the property email. |
public static final oreilly.hcj.datamodeling.constraints.ObjectConstraint | PERSON_CONSTRAINTConstraint for the property person. |
private Color | cardColorHolds value of property cardColor. |
private Integer | customerIDThe ID of the customer. A 9 digit number. |
private Person | personThe unique id for this employee |
private Set | accountsThe accounts held by the customer. |
private Set | applicationsApplications for loans filed by the customer. |
private Set | paymentsThe monthly automatic payments beign paid by the customer. |
private String | emailThe email address of the customer |
private String | passPhraseThe pass phrase of the customer |
Methods Summary |
---|
public boolean | equals(java.lang.Object obj)
if (!(obj instanceof Customer)) {
return false;
} else {
return (((Customer)obj).getCustomerID().equals(this.customerID));
}
|
public java.util.Set | getAccounts()Getter for property accounts.
return Collections.unmodifiableSet(accounts);
|
public java.util.Set | getApplications()Getter for property applications.
return Collections.unmodifiableSet(applications);
|
public java.awt.Color | getCardColor()Getter for property favoriteColor.
return this.cardColor;
|
public java.lang.Integer | getCustomerID()Getter for property customerID.
return customerID;
|
public java.lang.String | getEmail()Getter for property email.
return email;
|
public java.lang.String | getPassPhrase()Getter for property passPhrase.
return passPhrase;
|
public java.util.Set | getPayments()Getter for property payments.
return Collections.unmodifiableSet(payments);
|
public Person | getPerson()Getter for property person.
return person;
|
public int | hashCode()
return this.customerID.hashCode();
|
public void | setAccounts(java.util.Set accounts)Setter for property accounts.
ACCOUNTS_CONSTRAINT.validate(accounts);
final Set oldAccounts = Collections.unmodifiableSet(this.accounts);
this.accounts = new HashSet(accounts);
propertyChangeSupport.firePropertyChange("accounts", oldAccounts, getAccounts());
|
public void | setApplications(java.util.Set applications)Setter for property applications.
APPLICATIONS_CONSTRAINT.validate(applications);
final Set oldApplications = Collections.unmodifiableSet(this.applications);
this.applications = new HashSet(applications);
propertyChangeSupport.firePropertyChange("applications", oldApplications,
getApplications());
|
public void | setCardColor(java.awt.Color cardColor)Setter for property favoriteColor.
CARD_COLOR_CONSTRAINT.validate(cardColor);
final Color oldCardColor = this.cardColor;
this.cardColor = cardColor;
propertyChangeSupport.firePropertyChange("cardColor", oldCardColor, cardColor);
|
public void | setCustomerID(java.lang.Integer customerID)Setter for property customerID.
CUSTOMER_ID_CONSTRAINT.validate(customerID);
final Integer oldCustomerID = this.customerID;
this.customerID = customerID;
propertyChangeSupport.firePropertyChange("customerID", oldCustomerID,
this.customerID);
|
public void | setEmail(java.lang.String email)Setter for property email.
EMAIL_CONSTRAINT.validate(email);
final String oldEmail = this.email;
this.email = email;
propertyChangeSupport.firePropertyChange("email", oldEmail, this.email);
|
public void | setPassPhrase(java.lang.String passPhrase)Setter for property passPhrase.
EMAIL_CONSTRAINT.validate(passPhrase);
final String oldPassPhrase = this.passPhrase;
this.passPhrase = passPhrase;
propertyChangeSupport.firePropertyChange("passPhrase", oldPassPhrase,
this.passPhrase);
|
public void | setPayments(java.util.Set payments)Setter for property payments.
PAYMENTS_CONSTRAINT.validate(payments);
final Set oldPayments = Collections.unmodifiableSet(this.payments);
this.payments = new HashSet(payments);
propertyChangeSupport.firePropertyChange("payments", oldPayments, getPayments());
|
public void | setPerson(Person person)Setter for property person.
PERSON_CONSTRAINT.validate(person);
final Person oldPerson = this.person;
this.person = person;
propertyChangeSupport.firePropertyChange("person", oldPerson, this.person);
|