*/
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;
/**
* 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
}
@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.");
@Override
@SuppressWarnings("unchecked")
- public Map<Long, T> getAll () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
+ public Map<Long, T> getAll () {
// Trace message
this.getLogger().logTrace("CALLED!"); //NOI18N
}
@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.");
}
@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
*/
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;
/**
/**
* 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
*
* @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<Long, T> getAll () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException;
+ public Map<Long, T> 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