|
|||||||||||
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
This class represents an insurance carrier selection for a particular
Employee
.
Nested Class Summary | |
static class |
Insurance.Oid
This class is used to represent the application identifier for the Insurance class. |
Constructor Summary | |
protected |
Insurance()
This is the JDO-required no-args constructor. |
protected |
Insurance(long insid,
java.lang.String carrier)
Initialize an Insurance instance. |
protected |
Insurance(long insid,
java.lang.String carrier,
Employee employee)
Initialize an Insurance instance. |
Method Summary | |
int |
compareTo(Insurance other)
Compares this object with the specified Insurance object for order. |
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order. |
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 |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
java.lang.String |
getCarrier()
Get the insurance carrier. |
Employee |
getEmployee()
Get the associated employee. |
long |
getInsid()
Get the insurance ID. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setCarrier(java.lang.String carrier)
Set the insurance carrier. |
void |
setEmployee(Employee employee)
Set the associated employee. |
void |
setInsid(long insid)
Set the insurance ID. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Insurance()
protected Insurance(long insid, java.lang.String carrier)
Insurance
instance.
insid
- The insurance instance identifier.carrier
- The insurance carrier.protected Insurance(long insid, java.lang.String carrier, Employee employee)
Insurance
instance.
insid
- The insurance instance identifier.carrier
- The insurance carrier.employee
- The employee associated with this insurance.Method Detail |
public long getInsid()
public void setInsid(long insid)
insid
- The insurance ID value.public java.lang.String getCarrier()
public void setCarrier(java.lang.String carrier)
carrier
- The insurance carrier.public Employee getEmployee()
public void setEmployee(Employee employee)
employee
- The associated employee.public boolean deepCompareFields(DeepEquality other, EqualityHelper helper)
true
if all the fields of this instance are
deep equal to the coresponding fields of the specified Person.
deepCompareFields
in interface DeepEquality
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.public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- The Object to be compared.
java.lang.ClassCastException
- - if the specified object's type prevents
it from being compared to this Object.public int compareTo(Insurance other)
other
- The Insurance object to be compared.
public boolean equals(java.lang.Object obj)
obj
- the object with which to compare.
true
if this object is the same as the obj
argument; false
otherwise.public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |