]> git.mxchange.org Git - jcustomer-lib.git/blobdiff - src/org/mxchange/jcustomercore/model/customer/AdminCustomerSessionBeanRemote.java
Added busines methods:
[jcustomer-lib.git] / src / org / mxchange / jcustomercore / model / customer / AdminCustomerSessionBeanRemote.java
index 4bb050dc905f9efb8886ed973022a2ae1573148b..ea4f416da454afd27a74116b1a64f8bf711390bf 100644 (file)
@@ -36,4 +36,21 @@ public interface AdminCustomerSessionBeanRemote extends Serializable {
         */
        List<Customer> allCustomers ();
 
+       /**
+        * Adds the given customer instance to database and returns an updated
+        * instance.
+        * <p>
+        * @param customer Customer instance
+        *
+        * @return Updated customer
+        */
+       Customer addCustomer (final Customer customer);
+
+       /**
+        * Creates a new (free) customer number.
+        * <p>
+        * @return Free customer number (no free number should not happen)
+        */
+       String createCustomerNumber ();
+
 }