|
|||||||||||
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 IAddress
public void setAddrid(long id)
setAddrid
in interface IAddress
id
- the id.public java.lang.String getStreet()
getStreet
in interface IAddress
public void setStreet(java.lang.String street)
setStreet
in interface IAddress
street
- The street component.public java.lang.String getCity()
getCity
in interface IAddress
public void setCity(java.lang.String city)
setCity
in interface IAddress
city
- The city.public java.lang.String getState()
getState
in interface IAddress
public void setState(java.lang.String state)
setState
in interface IAddress
state
- The state.public java.lang.String getZipcode()
getZipcode
in interface IAddress
public void setZipcode(java.lang.String zipcode)
setZipcode
in interface IAddress
zipcode
- The zipcode.public java.lang.String getCountry()
getCountry
in interface IAddress
public void setCountry(java.lang.String country)
setCountry
in interface IAddress
country
- 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 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(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.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 |