Class Person

java.lang.Object
de.calamanari.pk.mapper.firstsys.Person

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

    Constructors
    Constructor Description
    Person​(java.lang.String personId, java.lang.String firstName, java.lang.String lastName, java.lang.String firstOrderDateISO)
    Creates new person entity
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getFirstName()
    Returns the first name of the person
    java.util.Date getFirstOrderDate()
    Returns the date of the first order placed by this person
    java.lang.String getLastName()
    Returns the person's last name
    java.lang.String getPersonId()
    Returns id of person
    void setFirstName​(java.lang.String firstName)
    Sets the first name of the person
    void setLastName​(java.lang.String lastName)
    Sets the last name of person
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

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

    • Person

      public Person​(java.lang.String personId, java.lang.String firstName, java.lang.String lastName, java.lang.String firstOrderDateISO)
      Creates new person entity
      Parameters:
      personId - identifier
      firstName - person's first name
      lastName - person's last name
      firstOrderDateISO - (yyyy-MM-dd)
  • Method Details

    • getPersonId

      public java.lang.String getPersonId()
      Returns id of person
      Returns:
      personId
    • getLastName

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

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

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

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

      public java.util.Date getFirstOrderDate()
      Returns the date of the first order placed by this person
      Returns:
      firstOrderDate
    • toString

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