Class AddressDto

java.lang.Object
de.calamanari.pk.transferobjectassembler.AddressDto
All Implemented Interfaces:
java.io.Serializable

public class AddressDto
extends java.lang.Object
implements java.io.Serializable
Address DTO - one of the data transfer objects in this example.
Author:
Karl Eilebrecht
See Also:
Serialized Form
  • Constructor Summary

    Constructors
    Constructor Description
    AddressDto()
    Creates new address DATA TRANSFER OBJECT
    AddressDto​(java.lang.String addressId, java.lang.String customerId, java.lang.String street, java.lang.String zipCode, java.lang.String city, java.lang.String country, java.lang.String salutation)
    Creates new address DATA TRANSFER OBJECT from the given data
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getAddressId()
    Returns the address ID
    java.lang.String getCity()
    Returns the city name
    java.lang.String getCountry()
    Returns the country name
    java.lang.String getCustomerId()
    Returns the customer ID
    java.lang.String getSalutation()
    Returns salutation for letters
    java.lang.String getStreet()
    Returns street address
    java.lang.String getZipCode()
    Returns the zipcode
    void setAddressId​(java.lang.String addressId)
    Sets the address ID
    void setCity​(java.lang.String city)
    Sets the city name
    void setCountry​(java.lang.String country)
    Sets the country
    void setCustomerId​(java.lang.String customerId)
    Sets the customer ID
    void setSalutation​(java.lang.String salutation)
    Sets the salutation for letters
    void setStreet​(java.lang.String street)
    Sets street address
    void setZipCode​(java.lang.String zipCode)
    Sets the zipCode
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AddressDto

      public AddressDto()
      Creates new address DATA TRANSFER OBJECT
    • AddressDto

      public AddressDto​(java.lang.String addressId, java.lang.String customerId, java.lang.String street, java.lang.String zipCode, java.lang.String city, java.lang.String country, java.lang.String salutation)
      Creates new address DATA TRANSFER OBJECT from the given data
      Parameters:
      addressId - identifier
      customerId - related customer's identifier
      street - address field
      zipCode - address field
      city - address field
      country - address field
      salutation - address field
  • Method Details

    • getAddressId

      public java.lang.String getAddressId()
      Returns the address ID
      Returns:
      addressId
    • setAddressId

      public void setAddressId​(java.lang.String addressId)
      Sets the address ID
      Parameters:
      addressId - identifier
    • getCustomerId

      public java.lang.String getCustomerId()
      Returns the customer ID
      Returns:
      customerId
    • setCustomerId

      public void setCustomerId​(java.lang.String customerId)
      Sets the customer ID
      Parameters:
      customerId - related customer's identifier
    • getStreet

      public java.lang.String getStreet()
      Returns street address
      Returns:
      street
    • setStreet

      public void setStreet​(java.lang.String street)
      Sets street address
      Parameters:
      street - address field
    • getZipCode

      public java.lang.String getZipCode()
      Returns the zipcode
      Returns:
      zipCode
    • setZipCode

      public void setZipCode​(java.lang.String zipCode)
      Sets the zipCode
      Parameters:
      zipCode - address field
    • getCity

      public java.lang.String getCity()
      Returns the city name
      Returns:
      city
    • setCity

      public void setCity​(java.lang.String city)
      Sets the city name
      Parameters:
      city - address field
    • getCountry

      public java.lang.String getCountry()
      Returns the country name
      Returns:
      country
    • setCountry

      public void setCountry​(java.lang.String country)
      Sets the country
      Parameters:
      country - address field
    • getSalutation

      public java.lang.String getSalutation()
      Returns salutation for letters
      Returns:
      salutation
    • setSalutation

      public void setSalutation​(java.lang.String salutation)
      Sets the salutation for letters
      Parameters:
      salutation - address field
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object