Save This Page
Home » jdo2-tck-2.3-ea-src » org.apache.jdo.tck.pc.companyAnnotatedJPA » [javadoc | source]
org.apache.jdo.tck.pc.companyAnnotatedJPA
abstract public class: JPAAppEmployee [javadoc | source]
java.lang.Object
   org.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAppPerson
      org.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAppEmployee

All Implemented Interfaces:
    IEmployee, DeepEquality, IPerson, Comparator, Serializable, Comparable

Direct Known Subclasses:
    JPAAppPartTimeEmployee, JPAAppFullTimeEmployee

This class represents an employee.
Fields inherited from org.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAppPerson:
formatter
Constructor:
 protected JPAAppEmployee() 
 public JPAAppEmployee(long personid,
    String firstname,
    String lastname,
    String middlename,
    Date birthdate,
    Date hiredate) 
    Construct an JPAAppEmployee instance.
    Parameters:
    personid - The identifier for the person.
    firstname - The first name of the employee.
    lastname - The last name of the employee.
    middlename - The middle name of the employee.
    birthdate - The birth date of the employee.
    hiredate - The date that the employee was hired.
 public JPAAppEmployee(long personid,
    String firstname,
    String lastname,
    String middlename,
    Date birthdate,
    IAddress address,
    Date hiredate) 
    Construct an JPAAppEmployee instance.
    Parameters:
    personid - The identifier for the person.
    firstname - The first name of the employee.
    lastname - The last name of the employee.
    middlename - The middle name of the employee.
    birthdate - The birth date of the employee.
    address - The address of the employee.
    hiredate - The date that the employee was hired.
Method from org.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAppEmployee Summary:
addAdvisee,   addProject,   addReviewedProjects,   addToTeam,   deepCompareFields,   getDentalInsurance,   getDepartment,   getFieldRepr,   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,   toString
Methods from org.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAppPerson:
compare,   compare,   compareTo,   compareTo,   convertPhone2String,   convertString2Phone,   deepCompareFields,   equals,   getAddress,   getBirthdate,   getFieldRepr,   getFirstname,   getLastname,   getMiddlename,   getPersonid,   getPhoneNumber,   getPhoneNumbers,   hashCode,   putPhoneNumber,   removePhoneNumber,   setAddress,   setBirthdate,   setFirstname,   setLastname,   setMiddlename,   setPersonid,   setPhoneNumbers,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAppEmployee Detail:
 public  void addAdvisee(JPAAppEmployee emp) 
    Add an JPAAppEmployee as an advisee of this HR advisor. This method also sets the emp hradvisor to reference this object. In other words, both sides of the relationship are set.
 public  void addProject(JPAAppProject project) 
    Add a project for the employee.
 public  void addReviewedProjects(JPAAppProject project) 
    Add a reviewed project.
 public  void addToTeam(JPAAppEmployee emp) 
    Add an JPAAppEmployee to this employee's team. This method sets both sides of the relationship, modifying this employees team to include parameter emp and modifying emp to set its manager attribute to this object.
 public boolean deepCompareFields(Object other,
    EqualityHelper helper) 
    Returns true if all the fields of this instance are deep equal to the corresponding fields of the specified JPAAppEmployee.
 public IDentalInsurance getDentalInsurance() 
    Get the dental insurance of the employee.
 public IDepartment getDepartment() 
    Get the employee's department.
 protected String getFieldRepr() 
    Returns a String representation of the non-relationship fields.
 public IDepartment getFundingDept() 
    Get the employee's funding department.
 public Date getHiredate() 
    Get the date that the employee was hired.
 public Set getHradvisees() 
    Get the HR advisees of this HR advisor.
 public IEmployee getHradvisor() 
    Get the HR advisor for the employee.
 public IEmployee getManager() 
    Get the employee's manager.
 public IMedicalInsurance getMedicalInsurance() 
    Get the medical insurance of the employee.
 public IEmployee getMentor() 
    Get the mentor for this employee.
 public Set getProjects() 
    Get the employee's projects.
 public IEmployee getProtege() 
    Get the protege of this employee.
 public Set getReviewedProjects() 
    Get the reviewed projects.
 public Set getTeam() 
    Get the employee's team.
 public double getWeeklyhours() 
    Get the weekly hours of the employee.
 public  void removeAdvisee(JPAAppEmployee emp) 
    Remove an JPAAppEmployee as an advisee of this HR advisor. This method also sets the emp hradvisor to null. In other words, both sides of the relationship are set.
 public  void removeFromTeam(JPAAppEmployee emp) 
    Remove an JPAAppEmployee from this employee's team. This method will also set the emp manager to null.
 public  void removeProject(JPAAppProject project) 
    Remove a project from an employee's set of projects.
 public  void removeReviewedProject(JPAAppProject project) 
    Remove a reviewed project.
 public  void setDentalInsurance(IDentalInsurance dentalInsurance) 
    Set the dental insurance object for the employee.
 public  void setDepartment(IDepartment department) 
    Set the employee's department.
 public  void setFundingDept(IDepartment department) 
    Set the employee's funding department.
 public  void setHiredate(Date hiredate) 
    Set the date that the employee was hired.
 public  void setHradvisees(Set hradvisees) 
    Set the HR advisees of this HR advisor.
 public  void setHradvisor(IEmployee hradvisor) 
    Set the HR advisor for this employee.
 public  void setManager(IEmployee manager) 
    Set the employee's manager.
 public  void setMedicalInsurance(IMedicalInsurance medicalInsurance) 
    Set the medical insurance object for the employee.
 public  void setMentor(IEmployee mentor) 
    Set the mentor for this employee.
 public  void setProjects(Set projects) 
    Set the projects for the employee.
 public  void setProtege(IEmployee protege) 
    Set the protege for this employee.
 public  void setReviewedProjects(Set reviewedProjects) 
    Set the reviewed projects for the employee.
 public  void setTeam(Set team) 
    Set the employee's team.
 public  void setWeeklyhours(double weeklyhours) 
    Set the number of hours per week that the employee works.
 public String toString() 
    Return a String representation of a JPAAppEmployee object.