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

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

public class DentalInsurance
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 DentalInsurance()
          This is the JDO-required no-args constructor
  DentalInsurance(long insid, java.lang.String carrier, java.math.BigDecimal lifetimeOrthoBenefit)
          Initialize a DentalInsurance instance.
  DentalInsurance(long insid, java.lang.String carrier, Employee employee, java.math.BigDecimal lifetimeOrthoBenefit)
          Initialize a DentalInsurance 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.
 java.math.BigDecimal getLifetimeOrthoBenefit()
          Get the insurance lifetimeOrthoBenefit.
 void setLifetimeOrthoBenefit(java.math.BigDecimal lifetimeOrthoBenefit)
          Set the insurance lifetimeOrthoBenefit.
 
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

DentalInsurance

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


DentalInsurance

public DentalInsurance(long insid,
                       java.lang.String carrier,
                       java.math.BigDecimal lifetimeOrthoBenefit)
Initialize a DentalInsurance instance.

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

DentalInsurance

public DentalInsurance(long insid,
                       java.lang.String carrier,
                       Employee employee,
                       java.math.BigDecimal lifetimeOrthoBenefit)
Initialize a DentalInsurance instance.

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

getLifetimeOrthoBenefit

public java.math.BigDecimal getLifetimeOrthoBenefit()
Get the insurance lifetimeOrthoBenefit.

Returns:
The insurance lifetimeOrthoBenefit.

setLifetimeOrthoBenefit

public void setLifetimeOrthoBenefit(java.math.BigDecimal lifetimeOrthoBenefit)
Set the insurance lifetimeOrthoBenefit.

Parameters:
lifetimeOrthoBenefit - The insurance lifetimeOrthoBenefit.

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 Apache Software Foundation. All Rights Reserved.