org.apache.jdo.tck.pc.company
Class MedicalInsurance

java.lang.Object
  extended byorg.apache.jdo.tck.pc.company.Insurance
      extended byorg.apache.jdo.tck.pc.company.MedicalInsurance
All Implemented Interfaces:
java.lang.Comparable, DeepEquality, java.io.Serializable

public class MedicalInsurance
extends Insurance

This class represents a dental insurance carrier selection for a particular Employee.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.apache.jdo.tck.pc.company.Insurance
Insurance.Oid
 
Constructor Summary
protected MedicalInsurance()
          This is the JDO-required no-args constructor
  MedicalInsurance(long insid, java.lang.String carrier, Employee employee, java.lang.String planType)
          Initialize a MedicalInsurance instance.
  MedicalInsurance(long insid, java.lang.String carrier, java.lang.String planType)
          Initialize a MedicalInsurance instance.
 
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 Person.
 boolean deepEquals(DeepEquality other, EqualityHelper helper)
          Indicates whether some other object is "deep equal to" this one.
 java.lang.String getPlanType()
          Get the insurance planType.
 void setPlanType(java.lang.String planType)
          Set the insurance planType.
 
Methods inherited from class org.apache.jdo.tck.pc.company.Insurance
compareTo, compareTo, equals, getCarrier, getEmployee, getInsid, hashCode, setCarrier, setEmployee, setInsid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MedicalInsurance

protected MedicalInsurance()
This is the JDO-required no-args constructor


MedicalInsurance

public MedicalInsurance(long insid,
                        java.lang.String carrier,
                        java.lang.String planType)
Initialize a MedicalInsurance instance.

Parameters:
insid - The insurance instance identifier.
carrier - The insurance carrier.
planType - The planType.

MedicalInsurance

public MedicalInsurance(long insid,
                        java.lang.String carrier,
                        Employee employee,
                        java.lang.String planType)
Initialize a MedicalInsurance instance.

Parameters:
insid - The insurance instance identifier.
carrier - The insurance carrier.
employee - The employee associated with this insurance.
planType - The planType.
Method Detail

getPlanType

public java.lang.String getPlanType()
Get the insurance planType.

Returns:
The insurance planType.

setPlanType

public void setPlanType(java.lang.String planType)
Set the insurance planType.

Parameters:
planType - The insurance planType.

deepEquals

public boolean deepEquals(DeepEquality other,
                          EqualityHelper helper)
Indicates whether some other object is "deep equal to" this one.

Parameters:
other - the object with which to compare.
helper - EqualityHelper to keep track of instances that have already been processed.
Returns:
true if this object is deep equal to the specified object; false otherwise.

deepCompareFields

public 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 Person.

Specified by:
deepCompareFields in interface DeepEquality
Overrides:
deepCompareFields in class Insurance
Parameters:
other - the object with which to compare.
helper - EqualityHelper to keep track of instances that have already been processed.
Returns:
true if all the fields are deep equal; false otherwise.
Throws:
java.lang.ClassCastException - if the specified instances' type prevents it from being compared to this instance.


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.