|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.tck.pc.company.Person
org.apache.jdo.tck.pc.company.Employee
org.apache.jdo.tck.pc.company.PartTimeEmployee
This class represents a part-time employee.
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 | |
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,
java.util.Date hired,
double wage)
Construct a part-time employee. |
|
PartTimeEmployee(long personid,
java.lang.String first,
java.lang.String last,
java.lang.String middle,
java.util.Date born,
IAddress addr,
java.util.Date hired,
double wage)
Construct a part-time employee. |
Method Summary | |
boolean |
deepCompareFields(java.lang.Object other,
EqualityHelper helper)
Returns true if all the fields of this instance are
deep equal to the coresponding fields of the specified
PartTimeEmployee. |
java.lang.String |
getFieldRepr()
Returns a String representation of the non-relationship fields. |
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()
Returns a String representation of a PartTimeEmployee object. |
Methods inherited from class org.apache.jdo.tck.pc.company.Employee |
addAdvisee, addProject, addReviewedProjects, addToTeam, getDentalInsurance, getDepartment, getFundingDept, getHiredate, getHradvisees, getHradvisor, getManager, getMedicalInsurance, getMentor, getProjects, getProtege, getReviewedProjects, getTeam, getWeeklyhours, removeAdvisee, removeFromTeam, removeProject, removeReviewedProject, setDentalInsurance, setDepartment, setFundingDept, setHiredate, setHradvisees, setHradvisor, setManager, setMedicalInsurance, setMentor, setProjects, setProtege, setReviewedProjects, setTeam, setWeeklyhours |
Methods inherited from class org.apache.jdo.tck.pc.company.Person |
compare, compare, compareTo, compareTo, equals, getAddress, getBirthdate, getFirstname, getLastname, getMiddlename, getPersonid, getPhoneNumber, getPhoneNumbers, hashCode, putPhoneNumber, removePhoneNumber, setAddress, setBirthdate, setFirstname, setLastname, setLastname, setMiddlename, setPersonid, setPhoneNumbers |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jdo.tck.pc.company.IEmployee |
getDentalInsurance, getDepartment, getFundingDept, getHiredate, getHradvisees, getHradvisor, getManager, getMedicalInsurance, getMentor, getProjects, getProtege, getReviewedProjects, getTeam, getWeeklyhours, setDentalInsurance, setDepartment, setFundingDept, setHiredate, setHradvisees, setHradvisor, setManager, setMedicalInsurance, setMentor, setProjects, setProtege, setReviewedProjects, setTeam, setWeeklyhours |
Methods inherited from interface org.apache.jdo.tck.pc.company.IPerson |
getAddress, getBirthdate, getFirstname, getLastname, getMiddlename, getPersonid, getPhoneNumbers, setAddress, setBirthdate, setFirstname, setLastname, setMiddlename, setPersonid, setPhoneNumbers |
Constructor Detail |
public PartTimeEmployee()
public PartTimeEmployee(long personid, java.lang.String first, java.lang.String last, java.lang.String middle, java.util.Date born, java.util.Date hired, double wage)
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.hired
- The date the person was hired.wage
- The person's wage.public PartTimeEmployee(long personid, java.lang.String first, java.lang.String last, java.lang.String middle, java.util.Date born, IAddress addr, java.util.Date hired, double wage)
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 |
public double getWage()
getWage
in interface IPartTimeEmployee
public void setWage(double wage)
setWage
in interface IPartTimeEmployee
wage
- The wage of the part-time employee.public java.lang.String toString()
PartTimeEmployee
object.
toString
in class Employee
PartTimeEmployee
object.public java.lang.String getFieldRepr()
getFieldRepr
in class Employee
public boolean deepCompareFields(java.lang.Object other, EqualityHelper helper)
true
if all the fields of this instance are
deep equal to the coresponding fields of the specified
PartTimeEmployee.
deepCompareFields
in interface DeepEquality
deepCompareFields
in class Employee
other
- the object with which to compare.helper
- EqualityHelper to keep track of instances that have
already been processed.
true
if all the fields are deep equal;
false
otherwise.
java.lang.ClassCastException
- if the specified instances' type prevents
it from being compared to this instance.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |