From: Roland Haeder Date: Thu, 10 Sep 2015 13:39:55 +0000 (+0200) Subject: Updated author (email address) + jars + implemented very basic basket X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fb2b23816e4442872bf0960ddfb019f062b3dac4;p=jcustomer-lib.git Updated author (email address) + jars + implemented very basic basket Signed-off-by:Roland Häder --- diff --git a/lib/jcoreee.jar b/lib/jcoreee.jar index 963ff76..935a2c9 100644 Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ diff --git a/lib/jshop-core.jar b/lib/jshop-core.jar index 8bd977a..4b07e19 100644 Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ diff --git a/src/org/mxchange/jcore/model/contact/gender/GenderSessionBeanRemote.java b/src/org/mxchange/jcore/model/contact/gender/GenderSessionBeanRemote.java index 3cdbb49..e267287 100644 --- a/src/org/mxchange/jcore/model/contact/gender/GenderSessionBeanRemote.java +++ b/src/org/mxchange/jcore/model/contact/gender/GenderSessionBeanRemote.java @@ -23,7 +23,7 @@ import javax.ejb.Remote; /** * A remote interface for static shop data * - * @author Roland Haeder + * @author Roland Haeder */ @Remote public interface GenderSessionBeanRemote extends Serializable { diff --git a/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java index de3f3a1..721790a 100644 --- a/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java @@ -20,30 +20,23 @@ import java.io.Serializable; 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 */ @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 @@ -55,33 +48,31 @@ public interface BasketSessionBeanRemote extends Serializable { /** * 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 getAll () throws RemoteException; + public Map 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 (); diff --git a/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java b/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java index 9958060..cf1ef19 100644 --- a/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java @@ -24,7 +24,7 @@ import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException; /** * An interface for categories for "ADMIN" role *. - * @author Roland Haeder + * @author Roland Haeder */ @Remote public interface AdminCategorySessionBeanRemote extends Serializable { diff --git a/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java b/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java index 2b6eb1c..f4b6543 100644 --- a/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java @@ -17,8 +17,6 @@ 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; @@ -26,7 +24,7 @@ import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException; /** * A remote-call interface for the shop * - * @author Roland Haeder + * @author Roland Haeder */ @Remote public interface CategorySessionBeanRemote extends Serializable { @@ -37,15 +35,13 @@ 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 getAllCategories () throws SQLException; + public Deque getAllCategories (); } diff --git a/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java index 57cd728..f07443e 100644 --- a/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java @@ -22,7 +22,7 @@ import javax.ejb.Remote; /** * An interface for customer beans * - * @author Roland Haeder + * @author Roland Haeder */ @Remote public interface CustomerSessionBeanRemote extends Serializable { diff --git a/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java index b07c3c5..a96280e 100644 --- a/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java @@ -25,7 +25,7 @@ import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException; /** * Product interface for "ADMIN" role * - * @author Roland Haeder + * @author Roland Haeder */ @Remote public interface AdminProductSessionBeanRemote extends Serializable { diff --git a/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java index d29c452..ea62d54 100644 --- a/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java @@ -17,7 +17,6 @@ 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; @@ -25,7 +24,7 @@ import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException; /** * An interface for non-admin purposes * - * @author Roland Haeder + * @author Roland Haeder */ @Remote public interface ProductSessionBeanRemote extends Serializable { @@ -42,16 +41,15 @@ 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 getAllProducts () throws RemoteException; + public Deque 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 getAvailableProducts () throws RemoteException; + public Deque getAvailableProducts (); }