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

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

Direct Known Subclasses:
    JPAAppEmployee, JPAAppPartTimeEmployee, JPAAppFullTimeEmployee

This class represents a person.
Nested Class Summary:
public static class  JPAAppPerson.Oid  This class is used to represent the application identifier for the Person class. 
Field Summary
protected static  SimpleDateFormat formatter     
Constructor:
 protected JPAAppPerson() 
 public JPAAppPerson(long personid,
    String firstname,
    String lastname,
    String middlename,
    Date birthdate) 
    Construct a JPAAppPerson instance.
    Parameters:
    personid - The person identifier.
    firstname - The person's first name.
    lastname - The person's last name.
    middlename - The person's middle name.
    birthdate - The person's birthdate.
 public JPAAppPerson(long personid,
    String firstname,
    String lastname,
    String middlename,
    Date birthdate,
    IAddress address) 
    Construct a JPAAppPerson instance.
    Parameters:
    personid - The person identifier.
    firstname - The person's first name.
    lastname - The person's last name.
    middlename - The person's middle name.
    birthdate - The person's birthdate.
    address - The person's address.
Method from org.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAppPerson Summary:
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.JPAAppPerson Detail:
 public int compare(Object o1,
    Object o2) 
    Compare two instances. This is a method in Comparator.
 public static int compare(JPAAppPerson o1,
    JPAAppPerson o2) 
    Compares its two IPerson arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
 public int compareTo(Object o) 
    Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
 public int compareTo(JPAAppPerson other) 
    Compares this object with the specified JPAAppPerson object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
 protected HashMap convertPhone2String(Map pnums) 
    Converts HashMap to HashMap
 protected HashMap convertString2Phone(Map pnums) 
    Converts HashMap to HashMap
 public boolean deepCompareFields(Object other,
    EqualityHelper helper) 
    Returns true if all the fields of this instance are deep equal to the coresponding fields of the specified JPAAppPerson.
 public boolean equals(Object obj) 
    Indicates whether some other object is "equal to" this one.
 public IAddress getAddress() 
    Get the address.
 public Date getBirthdate() 
    Get the person's birthdate.
 protected String getFieldRepr() 
    Returns a String representation of the non-relationship fields.
 public String getFirstname() 
    Get the person's first name.
 public String getLastname() 
    Get the person's last name.
 public String getMiddlename() 
    Get the person's middle name.
 public long getPersonid() 
    Get the person's id.
 public String getPhoneNumber(String type) 
    Get the phone number for the specified phone number type.
 public Map getPhoneNumbers() 
    Get the map of phone numbers as an unmodifiable map.
 public int hashCode() 
    Returns a hash code value for the object.
 public String putPhoneNumber(String type,
    String phoneNumber) 
    Associates the specified phone number with the specified type in the map of phone numbers of this person.
 public String removePhoneNumber(String type) 
    Remove a phoneNumber from the map of phone numbers.
 public  void setAddress(IAddress address) 
    Set the address.
 public  void setBirthdate(Date birthdate) 
    Set the person's birthdate.
 public  void setFirstname(String firstname) 
    Set the person's first name.
 public  void setLastname(String lastname) 
    Set the person's last name.
 public  void setMiddlename(String middlename) 
    Set the person's middle name.
 public  void setPersonid(long id) 
    Set the id associated with this object.
 public  void setPhoneNumbers(Map phoneNumbers) 
    Set the phoneNumber map to be in this person.
 public String toString() 
    Returns a String representation of a JPAAppPerson object.