]> git.mxchange.org Git - jcustomer-lib.git/blobdiff - src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java
auto-formatted project + updated jars
[jcustomer-lib.git] / src / org / mxchange / jshopcore / model / category / CategorySessionBeanRemote.java
index 2b6eb1c08b8489fb92b801c166ebec78d14b30a2..312e00da51e3660121b4114e56031d2e35b543da 100644 (file)
 package org.mxchange.jshopcore.model.category;
 
 import java.io.Serializable;
-import java.rmi.RemoteException;
-import java.sql.SQLException;
-import java.util.Deque;
+import java.util.List;
 import javax.ejb.Remote;
-import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException;
 
 /**
  * A remote-call interface for the shop
- *
- * @author Roland Haeder
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
  */
 @Remote
 public interface CategorySessionBeanRemote extends Serializable {
 
-       /**
-        * Adds given category to database. This method is intended to be used in
-        * admin area.
-        *
-        * @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;
-
        /**
         * Some "getter" for a linked list of all categories
-        *
+        * <p>
         * @return All categories
-        * @throws java.sql.SQLException If an SQL error occurs
         */
-       public Deque<Category> getAllCategories () throws SQLException;
+       public List<Category> getAllCategories ();
 }