|
|||||||||||
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.FullTimeEmployee
This class represents a full-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 | |
protected |
FullTimeEmployee()
This is the JDO-required no-args constructor |
|
FullTimeEmployee(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 sal)
Initialize a full-time employee. |
Method Summary | |
boolean |
deepCompareFields(DeepEquality other,
EqualityHelper helper)
Returns true if all the fields of this instance are
deep equal to the coresponding fields of the specified
FullTimeEmployee. |
double |
getSalary()
Get the salary of the full time employee. |
void |
setSalary(double salary)
Set the salary for the full-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, 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 |
protected FullTimeEmployee()
public FullTimeEmployee(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 sal)
personid
- The person identifier.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 that the person was hired.sal
- The salary of the full-time employee.Method Detail |
public double getSalary()
public void setSalary(double salary)
salary
- The salary to set for the full-time employee.public java.lang.String toString()
Person
Person
object.
toString
in class Person
public boolean deepCompareFields(DeepEquality other, EqualityHelper helper)
true
if all the fields of this instance are
deep equal to the coresponding fields of the specified
FullTimeEmployee.
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 |