Save This Page
Home » jdo2-tck-2.3-ea-src » org.apache.jdo.tck.pc.companyAnnotatedJPA » [javadoc | source]
org.apache.jdo.tck.pc.companyAnnotatedJPA
public class: JPAAppAddress [javadoc | source]
java.lang.Object
   org.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAppAddress

All Implemented Interfaces:
    IAddress, DeepEquality, Comparator, Serializable, Comparable

This class represents a postal address.
Nested Class Summary:
public static class  JPAAppAddress.Oid  This class is used to represent the application identifier for the Address class. 
Constructor:
 public JPAAppAddress() 
 public JPAAppAddress(long addrid,
    String street,
    String city,
    String state,
    String zipcode,
    String country) 
    This constructor initializes the JPAAppAddress components.
    Parameters:
    addrid - The address ID.
    street - The street address.
    city - The city.
    state - The state.
    zipcode - The zip code.
    country - The zip country.
Method from org.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAppAddress Summary:
compare,   compare,   compareTo,   compareTo,   deepCompareFields,   equals,   getAddrid,   getCity,   getCountry,   getFieldRepr,   getState,   getStreet,   getZipcode,   hashCode,   setAddrid,   setCity,   setCountry,   setState,   setStreet,   setZipcode,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAppAddress Detail:
 public int compare(Object o1,
    Object o2) 
    Compare two instances. This is a method in Comparator.
 public static int compare(JPAAppAddress o1,
    JPAAppAddress o2) 
    Compares its two JPAAppAddress arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
 public int compareTo(Object o) 
    Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
 public int compareTo(JPAAppAddress other) 
    Compares this object with the specified Address object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
 public boolean deepCompareFields(Object other,
    EqualityHelper helper) 
    Returns true if all the fields of this instance are deep equal to the coresponding fields of the specified Person.
 public boolean equals(Object obj) 
    Indicates whether some other object is "equal to" this one.
 public long getAddrid() 
    Get the addrid associated with this object.
 public String getCity() 
    Get the city.
 public String getCountry() 
    Get the country component of the address.
 protected String getFieldRepr() 
    Returns a String representation of the non-relationship fields.
 public String getState() 
    Get the state component of the address.
 public String getStreet() 
    Get the street component of the address.
 public String getZipcode() 
    Get the zipcode component of the address.
 public int hashCode() 
    Returns a hash code value for the object.
 public  void setAddrid(long id) 
    Set the id associated with this object.
 public  void setCity(String city) 
    Set the city component of the address.
 public  void setCountry(String country) 
    Set the country component of the address.
 public  void setState(String state) 
    Set the state component of the address.
 public  void setStreet(String street) 
    Set the street component of the address.
 public  void setZipcode(String zipcode) 
    Set the zip code component of the address.
 public String toString() 
    Returns a String representation of a Address object.