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: JPAAppCompany [javadoc | source]
java.lang.Object
   org.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAppCompany

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

This class represents information about a company.
Nested Class Summary:
public static class  JPAAppCompany.Oid  The class to be used as the application identifier for the Company class. It consists of both the company name and the date that the company was founded. 
Field Summary
protected static  SimpleDateFormat formatter     
Constructor:
 public JPAAppCompany() 
 public JPAAppCompany(long companyid,
    String name,
    Date founded) 
    Initialize the JPAAppCompany instance.
    Parameters:
    companyid - The company id.
    name - The company name.
    founded - The date the company was founded.
 public JPAAppCompany(long companyid,
    String name,
    Date founded,
    IAddress addr) 
    Initialize the Company instance.
    Parameters:
    companyid - The company id.
    name - The company name.
    founded - The date the company was founded.
    addr - The company's address.
Method from org.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAppCompany Summary:
addDepartment,   compare,   compare,   compareTo,   compareTo,   deepCompareFields,   equals,   getAddress,   getCompanyid,   getDepartments,   getFieldRepr,   getFounded,   getName,   hashCode,   removeDepartment,   setAddress,   setCompanyid,   setDepartments,   setFounded,   setName,   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.JPAAppCompany Detail:
 public  void addDepartment(JPAAppDepartment dept) 
    Add a JPAAppDepartment instance to the company.
 public int compare(Object o1,
    Object o2) 
    Compare two instances. This is a method in Comparator.
 public static int compare(JPAAppCompany o1,
    JPAAppCompany o2) 
    Compares its two ICompany 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(JPAAppCompany other) 
    Compares this object with the specified Company 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 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 Person.
 public boolean equals(Object obj) 
    Indicates whether some other object is "equal to" this one.
 public IAddress getAddress() 
    Get the address of the company.
 public long getCompanyid() 
    Get the company id.
 public Set getDepartments() 
    Get the departments contained in the company.
 protected String getFieldRepr() 
    Returns a String representation of the non-relationship fields.
 public Date getFounded() 
    Get the date that the company was founded.
 public String getName() 
    Get the name of the company.
 public int hashCode() 
    Returns a hash code value for the object.
 public  void removeDepartment(JPAAppDepartment dept) 
    Remove a JPAAppDepartment instance from the company.
 public  void setAddress(IAddress address) 
    Set the primary address for the company.
 public  void setCompanyid(long id) 
    Set the id associated with this object.
 public  void setDepartments(Set departments) 
    Initialize the set of JPAAppDepartments in the company to the parameter.
 public  void setFounded(Date founded) 
    Set the date that the company was founded.
 public  void setName(String name) 
    Set the name of the company.
 public String toString() 
    Returns a String representation of a Company object.