|
|||||||||||
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)
Construct an Insurance instance. |
protected |
Insurance(long insid,
java.lang.String carrier,
IEmployee employee)
Construct an Insurance instance. |
Method Summary | |
static int |
compare(IInsurance o1,
IInsurance o2)
Compares its two IInsurance arguments for order. |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compare two instances. |
int |
compareTo(IInsurance 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(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. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
java.lang.String |
getCarrier()
Get the insurance carrier. |
IEmployee |
getEmployee()
Get the associated employee. |
protected java.lang.String |
getFieldRepr()
Returns a String representation of the non-relationship fields. |
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(IEmployee employee)
Set the associated employee. |
void |
setInsid(long id)
Set the insurance ID. |
java.lang.String |
toString()
Returns a String representation of a Insurance object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, 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, IEmployee employee)
Insurance
instance.
insid
- The insurance instance identifier.carrier
- The insurance carrier.employee
- The employee associated with this insurance.Method Detail |
public long getInsid()
getInsid
in interface IInsurance
public void setInsid(long id)
setInsid
in interface IInsurance
id
- The insurance ID value.public java.lang.String getCarrier()
getCarrier
in interface IInsurance
public void setCarrier(java.lang.String carrier)
setCarrier
in interface IInsurance
carrier
- The insurance carrier.public IEmployee getEmployee()
getEmployee
in interface IInsurance
public void setEmployee(IEmployee employee)
setEmployee
in interface IInsurance
employee
- The associated employee.public java.lang.String toString()
Insurance
object.
Insurance
object.protected java.lang.String getFieldRepr()
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
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 compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
public int compareTo(IInsurance other)
other
- The Insurance object to be compared.
public static int compare(IInsurance o1, IInsurance o2)
o1
- the first IInsurance object to be compared.o2
- the second IInsurance object to be compared.
public boolean equals(java.lang.Object obj)
equals
in interface java.util.Comparator
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 |