|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.tck.pc.company.Address
This class represents a postal address.
Nested Class Summary | |
static class |
Address.Oid
This class is used to represent the application identifier for the Address class. |
Constructor Summary | |
protected |
Address()
This is the JDO-required no-args constructor |
|
Address(long addrid,
java.lang.String street,
java.lang.String city,
java.lang.String state,
java.lang.String zipcode,
java.lang.String country)
This constructor initializes the Address components. |
Method Summary | |
int |
compareTo(Address other)
Compares this object with the specified Address 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. |
long |
getAddrid()
Get the addrid associated with this object. |
java.lang.String |
getCity(java.lang.String city)
Get the city. |
java.lang.String |
getCountry()
Get the country component of the address. |
java.lang.String |
getState()
Get the state component of the address. |
java.lang.String |
getStreet()
Get the street component of the address. |
java.lang.String |
getZipcode()
Get the zipcode component of the address. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setCity(java.lang.String city)
Set the city component of the address. |
void |
setCountry(java.lang.String country)
Set the country component of the address. |
void |
setState(java.lang.String state)
Set the state component of the address. |
void |
setStreet(java.lang.String street)
Set the street component of the address. |
void |
setZipcode(java.lang.String zipcode)
Set the zip code component of the address. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Address()
public Address(long addrid, java.lang.String street, java.lang.String city, java.lang.String state, java.lang.String zipcode, java.lang.String country)
Address
components.
addrid
- The address ID.street
- The street address.city
- The city.state
- The state.zipcode
- The zip code.country
- The zip country.Method Detail |
public long getAddrid()
public java.lang.String getStreet()
public void setStreet(java.lang.String street)
street
- The street component.public java.lang.String getCity(java.lang.String city)
public void setCity(java.lang.String city)
city
- The city.public java.lang.String getState()
public void setState(java.lang.String state)
state
- The state.public java.lang.String getZipcode()
public void setZipcode(java.lang.String zipcode)
zipcode
- The zipcode.public java.lang.String getCountry()
public void setCountry(java.lang.String country)
country
- The country.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(Address other)
other
- The Address 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 |