From 664fafccb6e7b7c274dade1fbcd4c703f5ebc5b3 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 11 Sep 2015 15:37:11 +0200 Subject: [PATCH] =?utf8?q?Introduced=20new=20exceptions=20Signed-off-by:Ro?= =?utf8?q?land=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/jcoreee.jar | Bin 13934 -> 18417 bytes lib/jshop-core.jar | Bin 25508 -> 26951 bytes ...ote.java => GenderStatefulBeanRemote.java} | 2 +- .../model/basket/BasketSessionBeanRemote.java | 48 ------------------ .../AdminCategorySessionBeanRemote.java | 4 +- .../category/CategorySessionBeanRemote.java | 4 +- .../product/ProductSessionBeanRemote.java | 4 +- 7 files changed, 10 insertions(+), 52 deletions(-) rename src/org/mxchange/jcore/model/contact/gender/{GenderSessionBeanRemote.java => GenderStatefulBeanRemote.java} (94%) diff --git a/lib/jcoreee.jar b/lib/jcoreee.jar index b2760ebae295cbad0437e4e512da91af8eca0b2c..893d1f9aad9b8ec2bf4607d123795b6547d7a940 100644 GIT binary patch delta 4659 zcma)Adr(}}8UNjV-QBx)fh;VrKnURt%Nr8HCMJ-C5CnlhUPKf($p%qekU+Jzbxnp0VPI&G)wOzX4u_uX9#L?`2td(Y#Z z?>pZ)=llJ>@8n-&A0E=ozAn4N0NlWv(}&Fp+Z)q|n;){V{(6DDKdRtcE!OI#=+l~| zIH0YR;uWn`3b(CCitV=g^w{(bJEN1e^HuV5{gPz==v4HE;m8f+)3K?AW47DYii$^U z8yCGf9qM@e=!1)&wFB~$smJoOmCv4AQ)9r3d^eUDD8Nz=3=|rC73nB;qr`v zMQX<)v60%I>9MiC@zK~+bh7>CUD1iD(eapul%3PD-DA;$(Y*yR4lt2|DihVnR6QxB z>YSrS-R-Vdg~9B&XCyi`Ff} z!2TQ@&#=daMbgjlKp|y{DP00TTV_H6>BwNqfdDd-+J-sWhB%NzbFB)l$nsHkAi0DQyuybF-4O)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KufTP+pJ6>{Nm#3|meNCSoIPt;t$^4FO)Ck? zJ7W~_xMOX0gf-MVZ~ze!*!Yg?jZ6eW|z6W#>ew$v`ub8d3&Y zkT&2#s|>XY2I}6`rZst<{Mtblp|Uwo}W7I_x)V1tq5* zp}YS|dT9Q~cOU-U0*DQBr<#^M?f=~*I&HMj8PA_PeR{sS_%D4LkUr5Jca++^H~%lK za_w!^`igH!6_K?CPPqi%jz4Y@bR|6|M$;R1S#NfIst8`r{$|EsJgk}P_j|g{^)LAq zhf73y>gzWhUKXg=O6Q0Ab2**m!b)_YK|`Y*aUB*U9B4wbkV!j2f+-nVG^91OYG~s> zk)nHs|FZJBomNL;7FH3R8_x!PILMTN3_1*SqRYS`95j$cklOG6jJA5~C|oEe5#xFW zE5ykb+}3JEU!q=7rGgsrbOh1?=F94h!-@ne6=p72f1)!v0Y0uG@tcJsN`T@IG-f2K ztnpMO3atDP!W>u6K0Y0HI8D`XKtlwe)f0Z{VCbkWhkU*H_&KZKhbNwr4pK|0hwl=a zE14I=rBX)7Z{EFqbBN^8g z`Chm=7oi(+fn>ammJ^bRgPbz@ep*@>B^e_iT zXsq8!t0%o?@a`D_Yk2orTihJ11l#F@VQqP#9KV07YUbm8fLLxfocmlDHsi02`e=5+ t-1V~yVfFYilfB`$Q(w_VpO-y9u;=H8DjqkbA9K0tS*d(NQJj#fe*>}FY777X diff --git a/src/org/mxchange/jcore/model/contact/gender/GenderSessionBeanRemote.java b/src/org/mxchange/jcore/model/contact/gender/GenderStatefulBeanRemote.java similarity index 94% rename from src/org/mxchange/jcore/model/contact/gender/GenderSessionBeanRemote.java rename to src/org/mxchange/jcore/model/contact/gender/GenderStatefulBeanRemote.java index e267287..a4ace43 100644 --- a/src/org/mxchange/jcore/model/contact/gender/GenderSessionBeanRemote.java +++ b/src/org/mxchange/jcore/model/contact/gender/GenderStatefulBeanRemote.java @@ -26,7 +26,7 @@ import javax.ejb.Remote; * @author Roland Haeder */ @Remote -public interface GenderSessionBeanRemote extends Serializable { +public interface GenderStatefulBeanRemote extends Serializable { /** * Getter for all genders as array diff --git a/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java index 94661c4..cc83e88 100644 --- a/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java @@ -17,9 +17,7 @@ package org.mxchange.jshopcore.model.basket; import java.io.Serializable; -import java.util.Map; import javax.ejb.Remote; -import org.mxchange.jshopcore.exceptions.BasketItemAlreadyAddedException; /** * An interface for a basket bean @@ -28,50 +26,4 @@ import org.mxchange.jshopcore.exceptions.BasketItemAlreadyAddedException; */ @Remote public interface BasketSessionBeanRemote extends Serializable { - - /** - * Adds given item instance to this basket - * - * @param item Item instance to add - * @throws org.mxchange.jshopcore.exceptions.BasketItemAlreadyAddedException If the item as already been added - */ - public void addItem (final AddableBasketItem item) throws BasketItemAlreadyAddedException; - - /** - * Checks if the basket is empty - * - * @return Whether the basket is empty - */ - public boolean isEmpty (); - - /** - * 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 - * - * @param item Item instance to check - * @return Whether the given item has been found - */ - public boolean isAdded (final AddableBasketItem item); - - /** - * Some "getter" for all entries in this basket - * - * @return Map on all basket items - */ - public Map getAll (); - - /** - * Getter for last entry - * - * @return Last added item in basket - */ - 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 cf1ef19..6217ca0 100644 --- a/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java @@ -19,6 +19,7 @@ package org.mxchange.jshopcore.model.category; import java.io.Serializable; import java.rmi.RemoteException; import javax.ejb.Remote; +import org.mxchange.jshopcore.exceptions.CannotAddCategoryException; import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException; /** @@ -35,6 +36,7 @@ public interface AdminCategorySessionBeanRemote extends Serializable { * @param category Category instance * @throws java.rmi.RemoteException If something unexpected happened * @throws org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException If the given title is already used + * @throws org.mxchange.jshopcore.exceptions.CannotAddCategoryException If the category cannot be added */ - public void doAdminAddCategory (final Category category) throws RemoteException, CategoryTitleAlreadyUsedException; + public void doAdminAddCategory (final Category category) throws RemoteException, CategoryTitleAlreadyUsedException, CannotAddCategoryException; } diff --git a/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java b/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java index f4b6543..875a094 100644 --- a/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java @@ -19,6 +19,7 @@ package org.mxchange.jshopcore.model.category; import java.io.Serializable; import java.util.Deque; import javax.ejb.Remote; +import org.mxchange.jshopcore.exceptions.CannotAddCategoryException; import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException; /** @@ -35,8 +36,9 @@ public interface CategorySessionBeanRemote extends Serializable { * * @param category Category instance * @throws org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException If the given category title is already used + * @throws org.mxchange.jshopcore.exceptions.CannotAddCategoryException If the category cannot be added */ - public void doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException; + public void doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException, CannotAddCategoryException; /** * Some "getter" for a linked list of all categories diff --git a/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java index ea62d54..da1aea3 100644 --- a/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java @@ -19,6 +19,7 @@ package org.mxchange.jshopcore.model.product; import java.io.Serializable; import java.util.Deque; import javax.ejb.Remote; +import org.mxchange.jshopcore.exceptions.CannotAddProductException; import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException; /** @@ -35,8 +36,9 @@ public interface ProductSessionBeanRemote extends Serializable { * * @param product Product instance to add * @throws org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException If the given product title is already used + * @throws org.mxchange.jshopcore.exceptions.CannotAddProductException If the product cannot be added */ - public void doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException; + public void doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException, CannotAddProductException; /** * Some "getter" for all products. This method is typically used in admin -- 2.39.5