Package Models

Class Customer

java.lang.Object
Models.Customer

public class Customer extends Object
A class representing the Customer object
  • Constructor Details

    • Customer

      public Customer(int customerId, String customerName, String address, String postalCode, String phone, LocalDateTime createDate, String createdBy, LocalDateTime lastUpdate, String lastUpdatedBy, int divisionId)
      Constructor method for the Customer object
      Parameters:
      customerId - the customerId integer value to be set on the Customer object
      customerName - the customerName string value to be set on the Customer object
      address - the address string value to be set on the Customer object
      postalCode - the postalCode string value to be set on the Customer object
      phone - the phone string value to be set on the Customer object
      createDate - the createDate LocalDateTime value to be set on the Customer object
      createdBy - the createdBy string value to be set on the Customer object
      lastUpdate - the lastUpdate LocalDateTime value to be set on the Customer object
      lastUpdatedBy - the lastUpdatedBy string value to be set on the Customer object
      divisionId - the divisionId integer value to be set on the Customer object
  • Method Details

    • getCustomerId

      public int getCustomerId()
      Returns:
      the customerId integer value on the Customer object
    • getCustomerName

      public String getCustomerName()
      Returns:
      the customerName string value on the Customer object
    • getAddress

      public String getAddress()
      Returns:
      the address string value on the Customer object
    • getPostalCode

      public String getPostalCode()
      Returns:
      the postalCode string value on the Customer object
    • getPhone

      public String getPhone()
      Returns:
      the phone string value on the Customer object
    • getCreateDate

      public LocalDateTime getCreateDate()
      Returns:
      the createDate LocalDateTime value on the Customer object
    • getCreatedBy

      public String getCreatedBy()
      Returns:
      the createdBy string value on the Customer object
    • getLastUpdate

      public LocalDateTime getLastUpdate()
      Returns:
      the lastUpdate LocalDateTime value on the Customer object
    • getLastUpdatedBy

      public String getLastUpdatedBy()
      Returns:
      the lastUpdatedBy string value on the Customer object
    • getDivisionId

      public int getDivisionId()
      Returns:
      the divisionId integer value on the Customer object
    • setCustomerId

      public void setCustomerId(int customerId)
      Parameters:
      customerId - the customerId integer value to be set on the Customer object
    • setCustomerName

      public void setCustomerName(String customerName)
      Parameters:
      customerName - the customerName string value to be set on the Customer object
    • setAddress

      public void setAddress(String address)
      Parameters:
      address - the address string value to be set on the Customer object
    • setPostalCode

      public void setPostalCode(String postalCode)
      Parameters:
      postalCode - the postalCode string value to be set on the Customer object
    • setPhone

      public void setPhone(String phone)
      Parameters:
      phone - the phone string value to be set on the Customer object
    • setCreateDate

      public void setCreateDate(LocalDateTime createDate)
      Parameters:
      createDate - the createDate LocalDateTime value to be set on the Customer object
    • setCreatedBy

      public void setCreatedBy(String createdBy)
      Parameters:
      createdBy - the createdBy string value to be set on the Customer object
    • setLastUpdate

      public void setLastUpdate(LocalDateTime lastUpdate)
      Parameters:
      lastUpdate - the lastUpdate LocalDateTime value to be set on the Customer object
    • setLastUpdatedBy

      public void setLastUpdatedBy(String lastUpdatedBy)
      Parameters:
      lastUpdatedBy - the lastUpdatedBy string value to be set on the Customer object
    • setDivisionId

      public void setDivisionId(int divisionId)
      Parameters:
      divisionId - the divisionId integer value to be set on the Customer object
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      Stringified customer details