|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.tck.pc.company.Insurance
org.apache.jdo.tck.pc.company.MedicalInsurance
This class represents a dental insurance carrier selection for a
particular Employee
.
Nested Class Summary |
Nested classes inherited from class org.apache.jdo.tck.pc.company.Insurance |
Insurance.Oid |
Constructor Summary | |
MedicalInsurance()
This is the JDO-required no-args constructor. |
|
MedicalInsurance(long insid,
java.lang.String carrier,
IEmployee employee,
java.lang.String planType)
Construct a MedicalInsurance instance. |
|
MedicalInsurance(long insid,
java.lang.String carrier,
java.lang.String planType)
Construct a MedicalInsurance instance. |
Method Summary | |
boolean |
deepCompareFields(java.lang.Object other,
EqualityHelper helper)
Returns true if all the fields of this instance are
deep equal to the coresponding fields of the other Object. |
protected java.lang.String |
getFieldRepr()
Returns a String representation of the non-relationship fields. |
java.lang.String |
getPlanType()
Get the insurance planType. |
void |
setPlanType(java.lang.String planType)
Set the insurance planType. |
java.lang.String |
toString()
Returns a String representation of a MedicalInsurance
object. |
Methods inherited from class org.apache.jdo.tck.pc.company.Insurance |
compare, compare, compareTo, compareTo, equals, getCarrier, getEmployee, getInsid, hashCode, setCarrier, setEmployee, setInsid |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jdo.tck.pc.company.IInsurance |
getCarrier, getEmployee, getInsid, setCarrier, setEmployee, setInsid |
Constructor Detail |
public MedicalInsurance()
public MedicalInsurance(long insid, java.lang.String carrier, java.lang.String planType)
MedicalInsurance
instance.
insid
- The insurance instance identifier.carrier
- The insurance carrier.planType
- The planType.public MedicalInsurance(long insid, java.lang.String carrier, IEmployee employee, java.lang.String planType)
MedicalInsurance
instance.
insid
- The insurance instance identifier.carrier
- The insurance carrier.employee
- The employee associated with this insurance.planType
- The planType.Method Detail |
public java.lang.String getPlanType()
getPlanType
in interface IMedicalInsurance
public void setPlanType(java.lang.String planType)
setPlanType
in interface IMedicalInsurance
planType
- The insurance planType.public java.lang.String toString()
MedicalInsurance
object.
toString
in class Insurance
MedicalInsurance
object.protected java.lang.String getFieldRepr()
getFieldRepr
in class Insurance
public boolean deepCompareFields(java.lang.Object other, EqualityHelper helper)
true
if all the fields of this instance are
deep equal to the coresponding fields of the other Object.
deepCompareFields
in interface DeepEquality
deepCompareFields
in class Insurance
other
- the object with which to compare.helper
- EqualityHelper to keep track of instances that have
already been processed.
true
if all the fields are deep equal;
false
otherwise.
java.lang.ClassCastException
- if the specified instances' type prevents
it from being compared to this instance.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |