|
|||||||||||
| 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 | |
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 | |
static int |
compare(IAddress o1,
IAddress o2)
Compares its two IAddress arguments for order. |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compare two instances. |
int |
compareTo(IAddress 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(java.lang.Object 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()
Get the city. |
java.lang.String |
getCountry()
Get the country component of the address. |
protected java.lang.String |
getFieldRepr()
Returns a String representation of the non-relationship fields. |
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 |
setAddrid(long id)
Set the id associated with this 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. |
java.lang.String |
toString()
Returns a String representation of a Adress object. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public 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()
getAddrid in interface IAddresspublic void setAddrid(long id)
setAddrid in interface IAddressid - the id.public java.lang.String getStreet()
getStreet in interface IAddresspublic void setStreet(java.lang.String street)
setStreet in interface IAddressstreet - The street component.public java.lang.String getCity()
getCity in interface IAddresspublic void setCity(java.lang.String city)
setCity in interface IAddresscity - The city.public java.lang.String getState()
getState in interface IAddresspublic void setState(java.lang.String state)
setState in interface IAddressstate - The state.public java.lang.String getZipcode()
getZipcode in interface IAddresspublic void setZipcode(java.lang.String zipcode)
setZipcode in interface IAddresszipcode - The zipcode.public java.lang.String getCountry()
getCountry in interface IAddresspublic void setCountry(java.lang.String country)
setCountry in interface IAddresscountry - The country.public java.lang.String toString()
Adress object.
Adress 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 specified Person.
deepCompareFields in interface DeepEqualityother - 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.Comparableo - 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.Comparatorpublic int compareTo(IAddress other)
other - The Address object to be compared.
public static int compare(IAddress o1,
IAddress o2)
o1 - the first IAddress object to be compared.o2 - the second IAddress object to be compared.
public boolean equals(java.lang.Object obj)
equals in interface java.util.Comparatorobj - 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 | ||||||||||