From: Roland Haeder Date: Wed, 9 Sep 2015 08:36:10 +0000 (+0200) Subject: Removed all no longer thrown exceptions + updated jcore.jar X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=04a25ef47852d70dca752f97c4ebc0998888109b;p=jproduct-core.git Removed all no longer thrown exceptions + updated jcore.jar Signed-off-by:Roland Häder --- diff --git a/lib/jcore.jar b/lib/jcore.jar index e246eaa..3a13967 100644 Binary files a/lib/jcore.jar and b/lib/jcore.jar differ diff --git a/src/org/mxchange/jshopcore/model/basket/BaseBasket.java b/src/org/mxchange/jshopcore/model/basket/BaseBasket.java index cc4d280..f3afbf7 100644 --- a/src/org/mxchange/jshopcore/model/basket/BaseBasket.java +++ b/src/org/mxchange/jshopcore/model/basket/BaseBasket.java @@ -16,9 +16,6 @@ */ package org.mxchange.jshopcore.model.basket; -import java.io.IOException; -import java.lang.reflect.InvocationTargetException; -import java.sql.SQLException; import java.text.MessageFormat; import java.util.Map; import org.mxchange.jcoreee.BaseEeSystem; @@ -37,23 +34,21 @@ public abstract class BaseBasket extends BaseEeSyst /** * Protected constructor with session instance - * - * @throws java.sql.SQLException If an SQL error occurs */ - protected BaseBasket () throws SQLException { + protected BaseBasket () { // Trace message this.getLogger().logTrace("CALLED!"); //NOI18N } @Override - public void init () throws SQLException { + public void init () { // Trace message this.getLogger().logTrace("CALLED!"); //NOI18N } @Override @SuppressWarnings ("unchecked") - public void addItem (final T item) throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { + public void addItem (final T item) { // Trace call this.getLogger().logTrace(MessageFormat.format("item={0} - CALLED!", item)); //NOI18N @@ -74,7 +69,7 @@ public abstract class BaseBasket extends BaseEeSyst } @Override - public boolean isEmpty () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { + public boolean isEmpty () { // Deligate call to frontend // TODO: return ((BasketFrontend) this.getFrontend()).isEmpty(); throw new UnsupportedOperationException("Not yet implmeneted."); @@ -82,7 +77,7 @@ public abstract class BaseBasket extends BaseEeSyst @Override @SuppressWarnings("unchecked") - public Map getAll () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { + public Map getAll () { // Trace message this.getLogger().logTrace("CALLED!"); //NOI18N @@ -98,7 +93,7 @@ public abstract class BaseBasket extends BaseEeSyst } @Override - public AddableBasketItem getLast () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { + public AddableBasketItem getLast () { // Deligate to frontend // TODO: return ((BasketFrontend) this.getFrontend()).getLast(); throw new UnsupportedOperationException("Not yet implmeneted."); @@ -112,7 +107,7 @@ public abstract class BaseBasket extends BaseEeSyst } @Override - public boolean isAdded (final T item) throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { + public boolean isAdded (final T item) { // Trace call this.getLogger().logTrace(MessageFormat.format("item={0} - CALLED!", item)); //NOI18N diff --git a/src/org/mxchange/jshopcore/model/basket/Basket.java b/src/org/mxchange/jshopcore/model/basket/Basket.java index 24502ec..e6f9b65 100644 --- a/src/org/mxchange/jshopcore/model/basket/Basket.java +++ b/src/org/mxchange/jshopcore/model/basket/Basket.java @@ -16,10 +16,7 @@ */ package org.mxchange.jshopcore.model.basket; -import java.io.IOException; import java.io.Serializable; -import java.lang.reflect.InvocationTargetException; -import java.sql.SQLException; import java.util.Map; /** @@ -33,13 +30,8 @@ public interface Basket extends Serializable { /** * Adds given item instance to this basket * @param item Item instance to add - * @throws java.io.IOException If an IO error occurs - * @throws java.sql.SQLException If an SQL error occurs - * @throws java.lang.NoSuchMethodException If a method was not found - * @throws java.lang.IllegalAccessException If the invoked method is not public - * @throws java.lang.reflect.InvocationTargetException If anything else happened? */ - public void addItem (final T item) throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException; + public void addItem (final T item); /** * Checks whether the given item as already been added. If the product's @@ -47,57 +39,34 @@ public interface Basket extends Serializable { * * @param item Item instance to check * @return Whether the given item has been found - * @throws java.io.IOException If an IO error occurs - * @throws java.sql.SQLException If an SQL error occurs - * @throws java.lang.NoSuchMethodException If a method was not found - * @throws java.lang.IllegalAccessException If the invoked method is not public - * @throws java.lang.reflect.InvocationTargetException If anything else happened? */ - public boolean isAdded (final T item) throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException; + public boolean isAdded (final T item); /** * Checks if the basket is empty * * @return Whether the basket is empty - * @throws java.io.IOException If an IO error occurs - * @throws java.sql.SQLException If an SQL error occurs - * @throws java.lang.NoSuchMethodException If a method was not found - * @throws java.lang.IllegalAccessException If the invoked method is not public - * @throws java.lang.reflect.InvocationTargetException If anything else happened? */ - public boolean isEmpty () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException; + public boolean isEmpty (); /** * Initializes this instance with given ServletContext - * - * @throws java.sql.SQLException If an SQL error occurs - * @throws java.io.IOException If an IO error occurs */ - public void init () throws SQLException, IOException; + public void init (); /** * Some "getter" for all entries in this basket * * @return Map on all basket items - * @throws java.io.IOException If an IO error occurs - * @throws java.sql.SQLException If an SQL error occurs - * @throws java.lang.NoSuchMethodException If a method was not found - * @throws java.lang.IllegalAccessException If the invoked method is not public - * @throws java.lang.reflect.InvocationTargetException If anything else happened? */ - public Map getAll () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException; + public Map getAll (); /** * Getter for last entry * * @return Last added item in basket - * @throws java.io.IOException If an IO error occurs - * @throws java.sql.SQLException If an SQL error occurs - * @throws java.lang.NoSuchMethodException If a method was not found - * @throws java.lang.IllegalAccessException If the invoked method is not public - * @throws java.lang.reflect.InvocationTargetException If anything else happened? */ - public AddableBasketItem getLast () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException; + public AddableBasketItem getLast (); /** * Getter for last num rows diff --git a/src/org/mxchange/jshopcore/model/basket/ShopBasket.java b/src/org/mxchange/jshopcore/model/basket/ShopBasket.java index 7cd016c..fa5213b 100644 --- a/src/org/mxchange/jshopcore/model/basket/ShopBasket.java +++ b/src/org/mxchange/jshopcore/model/basket/ShopBasket.java @@ -17,9 +17,6 @@ package org.mxchange.jshopcore.model.basket; import java.sql.SQLException; -import org.mxchange.jshopcore.model.basket.BaseBasket; -import org.mxchange.jshopcore.model.basket.Basket; -import org.mxchange.jshopcore.model.basket.AddableBasketItem; /** * A basket for orderable items