]> git.mxchange.org Git - jshop-lib.git/commitdiff
Updated author (email address) + jars + implemented very basic basket
authorRoland Haeder <roland@mxchange.org>
Thu, 10 Sep 2015 13:39:55 +0000 (15:39 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 10 Sep 2015 13:39:55 +0000 (15:39 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jcoreee.jar
lib/jshop-core.jar
src/org/mxchange/jcore/model/contact/gender/GenderSessionBeanRemote.java
src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java
src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java
src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java
src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java
src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java
src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java

index 963ff769842e10dc653a66a7c0a12233947fe660..935a2c95c4a2c3876bdb5fbc0aa3c28141edb024 100644 (file)
Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ
index 8bd977aceaa10e6d584bd3c58fd6d2533a5dbf5f..4b07e19ee3c21d6130ea27bfdeeeb563eda320bc 100644 (file)
Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ
index 3cdbb49d6e4fbc3d81ec29fd78ff866d33a444e7..e26728793b9b8f4d50b75de1c53c6020416bbf50 100644 (file)
@@ -23,7 +23,7 @@ import javax.ejb.Remote;
 /**
  * A remote interface for static shop data
  *
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
  */
 @Remote
 public interface GenderSessionBeanRemote extends Serializable {
index de3f3a1ea19cc1ce4a927083f5dbaef4fae1b8c9..721790a934b635b03f08d870b8ec3601d61fd77a 100644 (file)
@@ -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<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
@@ -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<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 ();
index 9958060d100ea9ec7a3afda62efd3ce9b4bcc9c7..cf1ef1923df53cb0afcbbe6c1e5d5da72a52f94a 100644 (file)
@@ -24,7 +24,7 @@ import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException;
 /**
  * An interface for categories for "ADMIN" role
  *.
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
  */
 @Remote
 public interface AdminCategorySessionBeanRemote extends Serializable {
index 2b6eb1c08b8489fb92b801c166ebec78d14b30a2..f4b654389ad9e801b9eceee7ed9b9bf5ac2f428d 100644 (file)
@@ -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<roland@mxchange.org>
  */
 @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<Category> getAllCategories () throws SQLException;
+       public Deque<Category> getAllCategories ();
 }
index 57cd728009c17dad72b042e85049c53f4e9a279b..f07443e20ec11200cf42b4bcc7ca54c54f53ec7c 100644 (file)
@@ -22,7 +22,7 @@ import javax.ejb.Remote;
 /**
  * An interface for customer beans
  *
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
  */
 @Remote
 public interface CustomerSessionBeanRemote extends Serializable {
index b07c3c5b94830ea52859d87972bfdefdf8fa19a0..a96280e15966da193c41a2f0e9ebb132d97fbfac 100644 (file)
@@ -25,7 +25,7 @@ import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException;
 /**
  * Product interface for "ADMIN" role
  *
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
  */
 @Remote
 public interface AdminProductSessionBeanRemote extends Serializable {
index d29c45230d54175a7a229d739b2a2b16d8251960..ea62d54547c0a519c6287642a1566db694ee21b7 100644 (file)
@@ -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<roland@mxchange.org>
  */
 @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<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 ();
 }