FileDocCategorySizeDatePackage
Employee.javaAPI DocExample2819Sun Dec 14 22:47:38 GMT 2003oreilly.hcj.bankdata

Employee

public class Employee extends oreilly.hcj.datamodeling.MutableObject
An employee of the bank.
author
Robert Simmons jr. (kraythe)
version
$Revision: 1.6 $

Fields Summary
public static final oreilly.hcj.datamodeling.constraints.StringConstraint
EMPLOYEE_ID_CONSTRAINT
Constraint for the property employeeID.
public static final oreilly.hcj.datamodeling.constraints.ObjectConstraint
PERSON_CONSTRAINT
Constraint for the property person.
private Person
person
The unique id for this employee
private String
employeeID
The unique id for this employee
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object obj)

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

		if (!(obj instanceof Employee)) {
			return false;
		} else {
			return (((Employee)obj).getEmployeeID().equals(this.employeeID));
		}
	
public java.lang.StringgetEmployeeID()
Getter for property employeeID.

return
Value of property employeeID.

		return employeeID;
	
public PersongetPerson()
Getter for property person.

return
Value of property person.

		return person;
	
public inthashCode()

see
java.lang.Object#hashCode()

		return this.employeeID.hashCode();
	
public voidsetEmployeeID(java.lang.String employeeID)
Setter for property employeeID.

param
employeeID New value of property employeeID.


	            	 
	     
		EMPLOYEE_ID_CONSTRAINT.validate(employeeID);
		final String oldEmployeeId = this.employeeID;
		this.employeeID = employeeID;
		propertyChangeSupport.firePropertyChange("employeeID", oldEmployeeId,
		                                         this.employeeID);
	
public voidsetPerson(Person person)
Setter for property person.

param
person New value of property person.

		PERSON_CONSTRAINT.validate(person);
		final Person oldPerson = this.person;
		this.person = person;
		propertyChangeSupport.firePropertyChange("person", oldPerson, this.person);