From ccf4a444c2d927021405dc8af499163d96b3edbf Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 28 Aug 2015 15:14:46 +0200 Subject: [PATCH] =?utf8?q?described=20a=20bit=20more=20+=20removed=20redun?= =?utf8?q?dant=20javadoc=20tags.=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../beans/basket/BasketBean.java | 5 ++- .../pizzaapplication/item/BaseItem.java | 32 ++----------------- 2 files changed, 7 insertions(+), 30 deletions(-) diff --git a/src/java/org/mxchange/pizzaapplication/beans/basket/BasketBean.java b/src/java/org/mxchange/pizzaapplication/beans/basket/BasketBean.java index 490740f7..2365701d 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/basket/BasketBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/basket/BasketBean.java @@ -88,7 +88,10 @@ public interface BasketBean extends Serializable { public boolean isItemAdded (final AddableBasketItem item) throws IOException, SQLException, BadTokenException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, InvocationTargetException; /** - * Returns an item for given product instance or null if not found. + * Returns an item for given product instance or null if the basket doesn't + * contain such item. Every product has an item id which is unique to it. + * The basket stores a session->itemId reference along with + * amount of the ordered item (aka. product). * * @param product Product instance * @return Item instance or null diff --git a/src/java/org/mxchange/pizzaapplication/item/BaseItem.java b/src/java/org/mxchange/pizzaapplication/item/BaseItem.java index ef12ca83..03a7e072 100644 --- a/src/java/org/mxchange/pizzaapplication/item/BaseItem.java +++ b/src/java/org/mxchange/pizzaapplication/item/BaseItem.java @@ -22,7 +22,9 @@ import java.util.Objects; import org.mxchange.jcore.BaseFrameworkSystem; /** - * A general item cl + * An item (addedable to a basket) could respresent a product or a discount + * coupon. This depends on the type of the item. + * * @author Roland Haeder */ public class BaseItem extends BaseFrameworkSystem implements AddableBasketItem { @@ -72,69 +74,41 @@ public class BaseItem extends BaseFrameworkSystem implements AddableBasketItem { return 1; } - /** - * Item amount - * @return the amount - */ @Override public final Long getAmount () { return this.amount; } - /** - * Item amount - * @param amount the amount to set - */ @Override public final void setAmount (final Long amount) { this.amount = amount; } - /** - * Entry id (from database backend) - * @return the id - */ @Override public final Long getId () { return this.id; } - /** - * Entry id (from database backend) - * @param id the id to set - */ @Override public final void setId (final Long id) { this.id = id; } - /** - * @return the id - */ @Override public final Long getItemId () { return this.itemId; } - /** - * @param itemId the id to set - */ @Override public final void setItemId( final Long itemId) { this.itemId = itemId; } - /** - * @return the type - */ @Override public final String getItemType () { return this.itemType; } - /** - * @param itemType the type to set - */ @Override public final void setItemType (final String itemType) { this.itemType = itemType; -- 2.39.5