Class Customer

java.lang.Object
de.calamanari.pk.mapper.secondsys.Customer

public class Customer
extends java.lang.Object
Customer - entity in the second subsystem
Author:
Karl Eilebrecht
  • Constructor Summary

    Constructors
    Constructor Description
    Customer​(java.lang.String customerId)
    Creates customer
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getCity()
    Returns the city of the customer
    java.lang.String getCustomerId()
    Returns id of customer
    int getCustomerLifeTimeDays()
    Returns the customer's lifetime in days
    java.lang.String getFirstName()
    Returns the first name of the customer
    java.lang.String getLastName()
    Returns the customer's last name
    java.lang.String getStreet()
    Returns the street address of customer
    java.lang.String getZipCode()
    Returns the zip-code of the customer
    void setCity​(java.lang.String city)
    Sets the city of the customer
    void setCustomerLifeTimeDays​(int customerLifeTimeDays)
    Sets the customer lifetime in days
    void setFirstName​(java.lang.String firstName)
    Sets the first name of the customer
    void setLastName​(java.lang.String lastName)
    Sets the last name of customer
    void setStreet​(java.lang.String street)
    Sets the street of the customer
    void setZipCode​(java.lang.String zipCode)
    Sets the zip-code of the customer
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

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

    • Customer

      public Customer​(java.lang.String customerId)
      Creates customer
      Parameters:
      customerId - identifier
  • Method Details

    • getCustomerId

      public java.lang.String getCustomerId()
      Returns id of customer
      Returns:
      customerId
    • getCustomerLifeTimeDays

      Returns the customer's lifetime in days
      Returns:
      customerLifeTimeDays
    • setCustomerLifeTimeDays

      public void setCustomerLifeTimeDays​(int customerLifeTimeDays)
      Sets the customer lifetime in days
      Parameters:
      customerLifeTimeDays - time in day since date of birth
    • getLastName

      public java.lang.String getLastName()
      Returns the customer's last name
      Returns:
      last name of customer
    • setLastName

      public void setLastName​(java.lang.String lastName)
      Sets the last name of customer
      Parameters:
      lastName - person's last name
    • getFirstName

      public java.lang.String getFirstName()
      Returns the first name of the customer
      Returns:
      firstName
    • setFirstName

      public void setFirstName​(java.lang.String firstName)
      Sets the first name of the customer
      Parameters:
      firstName - person's first name
    • getStreet

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

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

      public java.lang.String getZipCode()
      Returns the zip-code of the customer
      Returns:
      zipCode
    • setZipCode

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

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

      public void setCity​(java.lang.String city)
      Sets the city of the customer
      Parameters:
      city - address field
    • toString

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