import java.io.Serializable;
import javax.ejb.Remote;
import org.mxchange.jshopcore.exceptions.CustomerAlreadyRegisteredException;
-import org.mxchange.jshopcore.exceptions.QueryNotExecutedException;
/**
* An interface for customer beans
*
* @param customer Initial Customer instance
* @return Prepared Customer instance
- * @throws org.mxchange.jshopcore.exceptions.QueryNotExecutedException If the SQL query did not execute
*/
- public Customer fillCustomerData (final Customer customer) throws QueryNotExecutedException;
+ public Customer fillCustomerData (final Customer customer);
/**
* Checks if the the given customer instance is already registered
*
* @param customer Customer instance
* @return Whether the customer is already registered
- * @throws org.mxchange.jshopcore.exceptions.QueryNotExecutedException If the SQL query did not execute
*/
- public boolean isReqistered (final Customer customer) throws QueryNotExecutedException;
+ public boolean isReqistered (final Customer customer);
/**
* Registers the customer and creates a customer number after succesful
package org.mxchange.jshopcore.model.product;
import java.io.Serializable;
-import java.util.Deque;
+import java.util.List;
import javax.ejb.Remote;
import org.mxchange.jshopcore.exceptions.CannotAddProductException;
import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException;
*
* @return All products
*/
- public Deque<Product> getAllProducts ();
+ public List<Product> getAllProducts ();
/**
* Adds given product data from request to database
package org.mxchange.jshopcore.model.product;
import java.io.Serializable;
-import java.util.Deque;
+import java.util.List;
import javax.ejb.Remote;
/**
*
* @return Only available products
*/
- public Deque<Product> getAvailableProducts ();
+ public List<Product> getAvailableProducts ();
}