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

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

Direct Known Subclasses:
    JPAAppDentalInsurance, JPAAppMedicalInsurance

This class represents an insurance carrier selection for a particular JPAAppEmployee.
Nested Class Summary:
public static class  JPAAppInsurance.Oid  This class is used to represent the application identifier for the Insurance class. 
Constructor:
 protected JPAAppInsurance() 
 protected JPAAppInsurance(long insid,
    String carrier) 
    Construct an JPAAppInsurance instance.
    Parameters:
    insid - The insurance instance identifier.
    carrier - The insurance carrier.
 protected JPAAppInsurance(long insid,
    String carrier,
    IEmployee employee) 
    Construct an JPAAppInsurance instance.
    Parameters:
    insid - The insurance instance identifier.
    carrier - The insurance carrier.
    employee - The employee associated with this insurance.
Method from org.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAppInsurance Summary:
compare,   compare,   compareTo,   compareTo,   deepCompareFields,   equals,   getCarrier,   getEmployee,   getFieldRepr,   getInsid,   hashCode,   setCarrier,   setEmployee,   setInsid,   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.JPAAppInsurance Detail:
 public int compare(Object o1,
    Object o2) 
    Compare two instances. This is a method in Comparator.
 public static int compare(JPAAppInsurance o1,
    JPAAppInsurance o2) 
    Compares its two IInsurance 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(JPAAppInsurance other) 
    Compares this object with the specified Insurance 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 other Object.
 public boolean equals(Object obj) 
    Indicates whether some other object is "equal to" this one.
 public String getCarrier() 
    Get the insurance carrier.
 public IEmployee getEmployee() 
    Get the associated employee.
 protected String getFieldRepr() 
    Returns a String representation of the non-relationship fields.
 public long getInsid() 
    Get the insurance ID.
 public int hashCode() 
    Returns a hash code value for the object.
 public  void setCarrier(String carrier) 
    Set the insurance carrier.
 public  void setEmployee(IEmployee employee) 
    Set the associated employee.
 public  void setInsid(long id) 
    Set the insurance ID.
 public String toString() 
    Returns a String representation of a JPAAppInsurance object.