org.apache.jdo.tck.pc.company
Class PartTimeEmployee

java.lang.Object
  extended byorg.apache.jdo.tck.pc.company.Person
      extended byorg.apache.jdo.tck.pc.company.Employee
          extended byorg.apache.jdo.tck.pc.company.PartTimeEmployee
All Implemented Interfaces:
java.lang.Comparable, DeepEquality, java.io.Serializable

public class PartTimeEmployee
extends Employee

This class represents a part-time employee.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.apache.jdo.tck.pc.company.Person
Person.Oid
 
Field Summary
 
Fields inherited from class org.apache.jdo.tck.pc.company.Person
formatter
 
Constructor Summary
protected PartTimeEmployee()
          This is the JDO-required no-args constructor.
  PartTimeEmployee(long personid, java.lang.String first, java.lang.String last, java.lang.String middle, java.util.Date born, Address addr, java.util.Date hired, double wage)
          Initialize a part-time employee.
 
Method Summary
 boolean deepCompareFields(PartTimeEmployee other, EqualityHelper helper)
          Returns true if all the fields of this instance are deep equal to the coresponding fields of the specified PartTimeEmployee.
 double getWage()
          Get the wage of the part-time employee.
 void setWage(double wage)
          Set the wage of the part-time employee.
 java.lang.String toString()
          Return a String representation of a Person object.
 
Methods inherited from class org.apache.jdo.tck.pc.company.Employee
addAdvisee, addProject, addReviewedProjects, addToTeam, deepCompareFields, getDentalInsurance, getDepartment, getFundingDept, getHiredate, getHradvisees, getHradvisor, getManager, getMedicalInsurance, getMentor, getProjects, getProtege, getReviewedProjects, getTeam, getWeeklyhours, removeAdvisee, removeFromTeam, removeProject, removeReviewedProject, setDentalInsurance, setDepartment, setFundingDept, setHiredate, setHradvisees, setManager, setMedicalInsurance, setMentor, setProjects, setReviewedProjects, setTeam, setWeeklyhours
 
Methods inherited from class org.apache.jdo.tck.pc.company.Person
compareTo, compareTo, equals, getAddress, getBirthdate, getFirstname, getLastname, getMiddlename, getPersonid, getPhoneNumber, getPhoneNumbers, hashCode, putPhoneNumber, removePhoneNumber, setAddress, setBirthdate, setFirstname, setLastname, setLastname, setMiddlename, setPhoneNumbers
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PartTimeEmployee

protected PartTimeEmployee()
This is the JDO-required no-args constructor.


PartTimeEmployee

public PartTimeEmployee(long personid,
                        java.lang.String first,
                        java.lang.String last,
                        java.lang.String middle,
                        java.util.Date born,
                        Address addr,
                        java.util.Date hired,
                        double wage)
Initialize a part-time employee.

Parameters:
personid - The identifier for the person.
first - The person's first name.
last - The person's last name.
middle - The person's middle name.
born - The person's birthdate.
addr - The person's address.
hired - The date the person was hired.
wage - The person's wage.
Method Detail

getWage

public double getWage()
Get the wage of the part-time employee.

Returns:
The wage of the part-time employee.

setWage

public void setWage(double wage)
Set the wage of the part-time employee.

Parameters:
wage - The wage of the part-time employee.

toString

public java.lang.String toString()
Description copied from class: Person
Return a String representation of a Person object.

Overrides:
toString in class Person

deepCompareFields

public boolean deepCompareFields(PartTimeEmployee other,
                                 EqualityHelper helper)
Returns true if all the fields of this instance are deep equal to the coresponding fields of the specified PartTimeEmployee.

Parameters:
other - the object with which to compare.
helper - EqualityHelper to keep track of instances that have already been processed.
Returns:
true if all the fields are deep equal; false otherwise.
Throws:
java.lang.ClassCastException - if the specified instances' type prevents it from being compared to this instance.


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.