import java.rmi.RemoteException;
import java.util.Map;
import javax.ejb.Remote;
+import org.mxchange.jshopcore.exceptions.BasketItemAlreadyAddedException;
/**
* An interface for a basket bean
*
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
*/
@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 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
- * @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
- * @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
- * @throws java.rmi.RemoteException If something bad happens
*/
- public AddableBasketItem getLast () throws RemoteException;
+ public AddableBasketItem getLast ();
/**
* Getter for last num rows
- *
+ *
* @return Last num rows
*/
public int getLastNumRows ();
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;
/**
* A remote-call interface for the shop
*
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
*/
@Remote
public interface CategorySessionBeanRemote extends Serializable {
*
* @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
- * @throws java.sql.SQLException If an SQL error occurs
*/
- public Deque<Category> getAllCategories () throws SQLException;
+ public Deque<Category> getAllCategories ();
}
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;
/**
* An interface for non-admin purposes
*
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
*/
@Remote
public interface ProductSessionBeanRemote extends Serializable {
/**
* Some "getter" for all products. This method is typically used in admin
* area.
+ *
* @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
- * @throws java.rmi.RemoteException If anything went wrong
*/
- public Deque<Product> getAvailableProducts () throws RemoteException;
+ public Deque<Product> getAvailableProducts ();
}