Signed-off-by:Roland Häder <roland@mxchange.org>
/**
* A remote interface for static shop data
*
/**
* A remote interface for static shop data
*
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
*/
@Remote
public interface GenderSessionBeanRemote extends Serializable {
*/
@Remote
public interface GenderSessionBeanRemote extends Serializable {
import java.rmi.RemoteException;
import java.util.Map;
import javax.ejb.Remote;
import java.rmi.RemoteException;
import java.util.Map;
import javax.ejb.Remote;
+import org.mxchange.jshopcore.exceptions.BasketItemAlreadyAddedException;
/**
* An interface for a basket bean
*
/**
* An interface for a basket bean
*
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
*/
@Remote
public interface BasketSessionBeanRemote extends Serializable {
*/
@Remote
public interface BasketSessionBeanRemote extends Serializable {
- /**
- * Adds given item instance to this basket
- * @param item Item instance to add
- * @throws java.rmi.RemoteException If something bad happens
- */
- public void addItem (final AddableBasketItem item) throws RemoteException;
- * Adds given item instance to basket. Remember that the product instance
- * itself is not added. Instead a AddableBasketItem is created which holds
- * information about amoutn and item type.
+ * Adds given item instance to this basket
- * @param item Item instance
- * @throws java.rmi.RemoteException If something bad happens
+ * @param item Item instance to add
+ * @throws org.mxchange.jshopcore.exceptions.BasketItemAlreadyAddedException If the item as already been added
- public void addToBasket (final AddableBasketItem item) throws RemoteException;
+ public void addItem (final AddableBasketItem item) throws BasketItemAlreadyAddedException;
/**
* Checks if the basket is empty
/**
* Checks if the basket is empty
/**
* Checks whether the given product as already been added. If the product's
/**
* Checks whether the given product as already been added. If the product's
- * item id number was found in basket, the corresponding item instance will be set
+ * item id number was found in basket, the corresponding item instance will
+ * be set
*
* @param item Item instance to check
* @return Whether the given item has been found
*
* @param item Item instance to check
* @return Whether the given item has been found
- * @throws java.rmi.RemoteException If something bad happens
- public boolean isAdded (final AddableBasketItem item) throws RemoteException;
+ public boolean isAdded (final AddableBasketItem item);
/**
* Some "getter" for all entries in this basket
*
* @return Map on all basket items
/**
* Some "getter" for all entries in this basket
*
* @return Map on all basket items
- * @throws java.rmi.RemoteException If something bad happens
- public Map<Long, AddableBasketItem> getAll () throws RemoteException;
+ public Map<Long, AddableBasketItem> getAll ();
/**
* Getter for last entry
*
* @return Last added item in basket
/**
* Getter for last entry
*
* @return Last added item in basket
- * @throws java.rmi.RemoteException If something bad happens
- public AddableBasketItem getLast () throws RemoteException;
+ public AddableBasketItem getLast ();
/**
* Getter for last num rows
/**
* Getter for last num rows
* @return Last num rows
*/
public int getLastNumRows ();
* @return Last num rows
*/
public int getLastNumRows ();
/**
* An interface for categories for "ADMIN" role
*.
/**
* An interface for categories for "ADMIN" role
*.
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
*/
@Remote
public interface AdminCategorySessionBeanRemote extends Serializable {
*/
@Remote
public interface AdminCategorySessionBeanRemote extends Serializable {
package org.mxchange.jshopcore.model.category;
import java.io.Serializable;
package org.mxchange.jshopcore.model.category;
import java.io.Serializable;
-import java.rmi.RemoteException;
-import java.sql.SQLException;
import java.util.Deque;
import javax.ejb.Remote;
import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException;
import java.util.Deque;
import javax.ejb.Remote;
import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException;
/**
* A remote-call interface for the shop
*
/**
* A remote-call interface for the shop
*
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
*/
@Remote
public interface CategorySessionBeanRemote extends Serializable {
*/
@Remote
public interface CategorySessionBeanRemote extends Serializable {
*
* @param category Category instance
* @throws org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException If the given category title is already used
*
* @param category Category instance
* @throws org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException If the given category title is already used
- * @throws java.rmi.RemoteException If anything went wrong
- public void doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException, RemoteException;
+ public void doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException;
/**
* Some "getter" for a linked list of all categories
*
* @return All categories
/**
* Some "getter" for a linked list of all categories
*
* @return All categories
- * @throws java.sql.SQLException If an SQL error occurs
- public Deque<Category> getAllCategories () throws SQLException;
+ public Deque<Category> getAllCategories ();
/**
* An interface for customer beans
*
/**
* An interface for customer beans
*
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
*/
@Remote
public interface CustomerSessionBeanRemote extends Serializable {
*/
@Remote
public interface CustomerSessionBeanRemote extends Serializable {
/**
* Product interface for "ADMIN" role
*
/**
* Product interface for "ADMIN" role
*
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
*/
@Remote
public interface AdminProductSessionBeanRemote extends Serializable {
*/
@Remote
public interface AdminProductSessionBeanRemote extends Serializable {
package org.mxchange.jshopcore.model.product;
import java.io.Serializable;
package org.mxchange.jshopcore.model.product;
import java.io.Serializable;
-import java.rmi.RemoteException;
import java.util.Deque;
import javax.ejb.Remote;
import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException;
import java.util.Deque;
import javax.ejb.Remote;
import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException;
/**
* An interface for non-admin purposes
*
/**
* An interface for non-admin purposes
*
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
*/
@Remote
public interface ProductSessionBeanRemote extends Serializable {
*/
@Remote
public interface ProductSessionBeanRemote extends Serializable {
/**
* Some "getter" for all products. This method is typically used in admin
* area.
/**
* Some "getter" for all products. This method is typically used in admin
* area.
* @return A Deque of all products
* @return A Deque of all products
- * @throws java.rmi.RemoteException If anything went wrong
- public Deque<Product> getAllProducts () throws RemoteException;
+ public Deque<Product> getAllProducts ();
/**
* Some "getter" for a linked list of only available products
*
* @return Only available products
/**
* Some "getter" for a linked list of only available products
*
* @return Only available products
- * @throws java.rmi.RemoteException If anything went wrong
- public Deque<Product> getAvailableProducts () throws RemoteException;
+ public Deque<Product> getAvailableProducts ();