com.redhat.rhn.domain.user
Class AddressImpl

java.lang.Object
  extended by com.redhat.rhn.domain.BaseDomainHelper
      extended by com.redhat.rhn.domain.user.AddressImpl
All Implemented Interfaces:
Address

public class AddressImpl
extends BaseDomainHelper
implements Address

Class AddressImpl that implements Address


Field Summary
 
Fields inherited from interface com.redhat.rhn.domain.user.Address
TYPE_MARKETING
 
Constructor Summary
protected AddressImpl()
          Protect the constructor
 
Method Summary
 java.lang.String getAddress1()
          Getter for address1
 java.lang.String getAddress2()
          Getter for address2
 java.lang.String getCity()
          Getter for city
 java.lang.String getCountry()
          Getter for country
 java.lang.String getFax()
          Getter for fax
 java.lang.Long getId()
          Getter for id
 java.lang.String getIsPoBox()
          Getter for isPoBox
 java.lang.String getPhone()
          Getter for phone
 java.lang.String getPrivType()
          Get the private type.
 java.lang.String getState()
          Getter for state
 java.lang.String getType()
          Getter for type
 java.lang.String getZip()
          Getter for zip
 void setAddress1(java.lang.String address1In)
          Setter for address1
 void setAddress2(java.lang.String address2In)
          Setter for address2
 void setCity(java.lang.String cityIn)
          Setter for city
 void setCountry(java.lang.String countryIn)
          Setter for country
 void setFax(java.lang.String faxIn)
          Setter for fax
 void setId(java.lang.Long idIn)
          Sets the database id for this address.
 void setIsPoBox(java.lang.String isPoBoxIn)
          Setter for isPoBox
 void setPhone(java.lang.String phoneIn)
          Setter for phone
 void setPrivType(java.lang.String pt)
          Set the private type of this address
 void setState(java.lang.String stateIn)
          Setter for state
 void setZip(java.lang.String zipIn)
          Setter for zip
 java.lang.String toString()
          Output this object to a string
 
Methods inherited from class com.redhat.rhn.domain.BaseDomainHelper
getCreated, getModified, setCreated, setModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.redhat.rhn.domain.user.Address
getCreated, getModified, setCreated, setModified
 

Constructor Detail

AddressImpl

protected AddressImpl()
Protect the constructor

Method Detail

getId

public java.lang.Long getId()
Getter for id

Specified by:
getId in interface Address
Returns:
Id

setId

public void setId(java.lang.Long idIn)
Sets the database id for this address. This is the unique id for this address.

Parameters:
idIn - the in id

getAddress1

public java.lang.String getAddress1()
Getter for address1

Specified by:
getAddress1 in interface Address
Returns:
Address1

setAddress1

public void setAddress1(java.lang.String address1In)
Setter for address1

Specified by:
setAddress1 in interface Address
Parameters:
address1In - New value for address1

getAddress2

public java.lang.String getAddress2()
Getter for address2

Specified by:
getAddress2 in interface Address
Returns:
Address2

setAddress2

public void setAddress2(java.lang.String address2In)
Setter for address2

Specified by:
setAddress2 in interface Address
Parameters:
address2In - New value for address2

getCity

public java.lang.String getCity()
Getter for city

Specified by:
getCity in interface Address
Returns:
City

setCity

public void setCity(java.lang.String cityIn)
Setter for city

Specified by:
setCity in interface Address
Parameters:
cityIn - New value for city

getState

public java.lang.String getState()
Getter for state

Specified by:
getState in interface Address
Returns:
State

setState

public void setState(java.lang.String stateIn)
Setter for state

Specified by:
setState in interface Address
Parameters:
stateIn - New value for state

getZip

public java.lang.String getZip()
Getter for zip

Specified by:
getZip in interface Address
Returns:
Zip

setZip

public void setZip(java.lang.String zipIn)
Setter for zip

Specified by:
setZip in interface Address
Parameters:
zipIn - New value for zip

getCountry

public java.lang.String getCountry()
Getter for country

Specified by:
getCountry in interface Address
Returns:
Country

setCountry

public void setCountry(java.lang.String countryIn)
Setter for country

Specified by:
setCountry in interface Address
Parameters:
countryIn - New value for country

getPhone

public java.lang.String getPhone()
Getter for phone

Specified by:
getPhone in interface Address
Returns:
Phone

setPhone

public void setPhone(java.lang.String phoneIn)
Setter for phone

Specified by:
setPhone in interface Address
Parameters:
phoneIn - New value for phone

getFax

public java.lang.String getFax()
Getter for fax

Specified by:
getFax in interface Address
Returns:
Fax

setFax

public void setFax(java.lang.String faxIn)
Setter for fax

Specified by:
setFax in interface Address
Parameters:
faxIn - New value for fax

getIsPoBox

public java.lang.String getIsPoBox()
Getter for isPoBox

Specified by:
getIsPoBox in interface Address
Returns:
isPoBox

setIsPoBox

public void setIsPoBox(java.lang.String isPoBoxIn)
Setter for isPoBox

Specified by:
setIsPoBox in interface Address
Parameters:
isPoBoxIn - New value for isPoBox

getType

public java.lang.String getType()
Getter for type

Specified by:
getType in interface Address
Returns:
Type

toString

public java.lang.String toString()
Output this object to a string

Overrides:
toString in class java.lang.Object
Returns:
String value of AddressImpl object

setPrivType

public void setPrivType(java.lang.String pt)
Set the private type of this address

Parameters:
pt - string to set

getPrivType

public java.lang.String getPrivType()
Get the private type.

Returns:
string type