Interface PersonDataConnectorImp

    • Method Detail

      • findPersonById

        Person findPersonById​(java.lang.String personId)
        Finds the person by id
        Parameters:
        personId - identifier
        Returns:
        person or null
      • findAddressById

        Address findAddressById​(java.lang.String addressId)
        Returns the address for the given id
        Parameters:
        addressId - address identifier
        Returns:
        address id or null
      • findAddressOfPersonById

        Address findAddressOfPersonById​(java.lang.String personId)
        Returns the address of the specified person
        Parameters:
        personId - identifier
        Returns:
        address or null
      • createNewPerson

        java.lang.String createNewPerson​(Person person)
        Creates a new person and returns the new id.
        Parameters:
        person - to be created
        Returns:
        person Id
      • createNewAddress

        java.lang.String createNewAddress​(Address address)
        Creates a new address and returns the new id.
        Parameters:
        address - to be created
        Returns:
        address id
      • updatePerson

        void updatePerson​(Person person)
        Updates the person.
        Parameters:
        person - to be updated
      • updateAddress

        void updateAddress​(Address address)
        Updates the address.
        Parameters:
        address - to be updated