Interface Customer

  • All Known Subinterfaces:
    CustomerRemote
    All Known Implementing Classes:
    CustomerDto, CustomerEntity

    public interface Customer
    Customer - interface for customer representations, introduced in this example to allow transparently handling different representations (DATA TRANSFER OBJECT vs. entity remote interface) by the client - for demonstration purposes only.
    Author:
    Karl Eilebrecht
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getCity()
      Returns the city of the customer
      java.lang.String getCustomerId()
      Returns id of customer
      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 setCustomerId​(java.lang.String customerId)
      Sets the id of customer
      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
    • Method Detail

      • getCustomerId

        java.lang.String getCustomerId()
                                throws java.io.IOException
        Returns id of customer
        Returns:
        customerId
        Throws:
        java.io.IOException - on data access error
      • setCustomerId

        void setCustomerId​(java.lang.String customerId)
                    throws java.io.IOException
        Sets the id of customer
        Parameters:
        customerId - identifier
        Throws:
        java.io.IOException - on data access error
      • getLastName

        java.lang.String getLastName()
                              throws java.io.IOException
        Returns the customer's last name
        Returns:
        last name of customer
        Throws:
        java.io.IOException - on data access error
      • setLastName

        void setLastName​(java.lang.String lastName)
                  throws java.io.IOException
        Sets the last name of customer
        Parameters:
        lastName - person's last name
        Throws:
        java.io.IOException - on data access error
      • getFirstName

        java.lang.String getFirstName()
                               throws java.io.IOException
        Returns the first name of the customer
        Returns:
        firstName
        Throws:
        java.io.IOException - on data access error
      • setFirstName

        void setFirstName​(java.lang.String firstName)
                   throws java.io.IOException
        Sets the first name of the customer
        Parameters:
        firstName - person's first name
        Throws:
        java.io.IOException - on data access error
      • getStreet

        java.lang.String getStreet()
                            throws java.io.IOException
        Returns the street address of customer
        Returns:
        street
        Throws:
        java.io.IOException - on data access error
      • setStreet

        void setStreet​(java.lang.String street)
                throws java.io.IOException
        Sets the street of the customer
        Parameters:
        street - address field
        Throws:
        java.io.IOException - on data access error
      • getZipCode

        java.lang.String getZipCode()
                             throws java.io.IOException
        Returns the zip-code of the customer
        Returns:
        zipCode address field
        Throws:
        java.io.IOException - on data access error
      • setZipCode

        void setZipCode​(java.lang.String zipCode)
                 throws java.io.IOException
        Sets the zip-code of the customer
        Parameters:
        zipCode - address field
        Throws:
        java.io.IOException - on data access error
      • getCity

        java.lang.String getCity()
                          throws java.io.IOException
        Returns the city of the customer
        Returns:
        city address field
        Throws:
        java.io.IOException - on data access error
      • setCity

        void setCity​(java.lang.String city)
              throws java.io.IOException
        Sets the city of the customer
        Parameters:
        city - address field
        Throws:
        java.io.IOException - on data access error