From 04a25ef47852d70dca752f97c4ebc0998888109b Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 9 Sep 2015 10:36:10 +0200 Subject: [PATCH] =?utf8?q?Removed=20all=20no=20longer=20thrown=20exception?= =?utf8?q?s=20+=20updated=20jcore.jar=20Signed-off-by:Roland=20H=C3=A4der?= =?utf8?q?=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/jcore.jar | Bin 28193 -> 28138 bytes .../jshopcore/model/basket/BaseBasket.java | 19 +++----- .../jshopcore/model/basket/Basket.java | 43 +++--------------- .../jshopcore/model/basket/ShopBasket.java | 3 -- 4 files changed, 13 insertions(+), 52 deletions(-) diff --git a/lib/jcore.jar b/lib/jcore.jar index e246eaa0d1af80e3ce482d23a0baf1e07ccab082..3a13967cee31b5361df8bfc251a76b4fb07fe83e 100644 GIT binary patch delta 584 zcmZ2@hw;^IMxFp~W)?061`Y;>ypV}JnoPMN6V0bH0ofN6K;$P)AURoMG&LFCm$rMCwVX_5LpP5{M)MiWOWML3JPpp9nL@P*6V&upR z(R9DWcJdjb$LlF3=ANwH+i9|*yI8;(a9&h`MC_)8T8m0^w}8< zCdZk3Z`SoGWtx1^uZB@^v!6c)qZk7tgAM}&0~3QTa@cGx2{^?KvdAGumjg&o&QGxf z2G->NIx{btEkqL`kN*f~bUa zUl6rEJp@FtW<-Ff_>6E6wId@29$1rQGNV9Z6`5fm>Oy7^h*HTa08!JjazGSIHduFD zHdy!e>};@-oIDUUB`1y-C2%JH&+!LI1mwyv83s%ah%uNvFIPwbq~@1;lg>4E1_lte W1O^BUENT23J^4beH=9-pNC*Jw0JuN^ delta 589 zcmaELn{nYCMxFp~W)?061`Y-WUZ;sXnoK-S6V0bH0ofN6K;$P)AURoMG&LFCm$rMCwVX_5LpP5{M)MiWOWML3JPpp9nL@P*6V&vd; z(sb7@lzFmwm(+GfM*hjJnra}qSu$H#Ky-j&6j<#VUJ zlru(`14vJ{NU;P4+~ndE2M}*-iUEjv4ip4ZN~!iBDmm2~L~TfQ15rOxy+D*pnmdT< zO$!E5kJ4O0lxDgwh^j~r0a54DBS4f!MmUIS%!q*p+~lVjQ6MqL%rFo&GcyQ8z0E8D zQSn(hAnI%uShspMSa(BqHdsk^9*By~iQ`2HsL3aC{6P|uxiU-{0h1e3MJEUNNKa1B c6#|J?14T_@;G+Jqtdq~>im@f80K 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 -- 2.39.5