]> git.mxchange.org Git - jcustomer-lib.git/commitdiff
both methods have to return the instance again
authorRoland Haeder <roland@mxchange.org>
Thu, 17 Sep 2015 13:37:30 +0000 (15:37 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 17 Sep 2015 13:37:30 +0000 (15:37 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java

index d46d905f4d23712fdc970997c32a7c57fb304e3c..0ee29d2f835645741667420f14f5a8c1a9d6cff9 100644 (file)
@@ -32,9 +32,10 @@ public interface CustomerSessionBeanRemote extends Serializable {
        /**
         * Fills given customer instance with all available data
         *
-        * @param customer Customer instance
+        * @param customer Initial Customer instance
+        * @return Prepared Customer instance
         */
-       public void fillCustomerData (final Customer customer);
+       public Customer fillCustomerData (final Customer customer);
 
        /**
         * Checks if the the given customer instance is already registered
@@ -49,8 +50,9 @@ public interface CustomerSessionBeanRemote extends Serializable {
         * Registers the customer and creates a customer number after succesful
         * persisting.
         * 
-        * @param customer Customer instance
+        * @param customer Initial customer instance
+        * @return Prepared Customer instance
         * @throws org.mxchange.jshopcore.exceptions.CustomerAlreadyRegisteredException If the customer is already registered.
         */
-       public void registerCustomer (final Customer customer) throws CustomerAlreadyRegisteredException;
+       public Customer registerCustomer (final Customer customer) throws CustomerAlreadyRegisteredException;
 }