@Override
public Deque<Category> getAllCategories () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
- // Deligate to frontend
- return this.categoryFrontend.getAllCategories();
+ // Unfinished
+ throw new UnsupportedOperationException("Unfinished method.");
}
@Override
public Deque<Product> getAllProducts () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
- // Deligate to frontend
- return this.productFrontend.getAllProducts();
+ // Unfinished
+ throw new UnsupportedOperationException("Unfinished method.");
}
@Override
public Deque<Product> getAvailableProducts () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
- // Deligate to frontend
- return this.productFrontend.getAllAvailableProducts();
+ // Unfinished
+ throw new UnsupportedOperationException("Unfinished method.");
}
@Override
// Trace message
this.getLogger().trace("CALLED!"); //NOI18N
- // Ask frontend for a list of products
- return this.productFrontend.getAvailableProductsIterator();
+ // Unfinished
+ throw new UnsupportedOperationException("Unfinished method.");
}
@Override
// Trace message
this.getLogger().trace("CALLED!"); //NOI18N
- // Ask frontend for a list of products
- return this.productFrontend.getAllProductsIterator();
+ // Unfinished
+ throw new UnsupportedOperationException("Unfinished method.");
}
@Override
// Trace message
this.getLogger().trace("CALLED!"); //NOI18N
- // Ask frontend for a list of categories
- return this.categoryFrontend.getAllCategoriesIterator();
+ // Unfinished
+ throw new UnsupportedOperationException("Unfinished method.");
}
/**
// Trace message
this.getLogger().trace("title=" + title + " - CALLED!"); //NOI18N
- // Delegate to frontend
- return this.categoryFrontend.isCategoryTitleUsed(title);
+ // Unfinished
+ throw new UnsupportedOperationException("Unfinished method.");
}
@Override
throw new CategoryTitleAlreadyUsedException(category);
}
- // The category is not found, so add it to database
- this.categoryFrontend.addCategory(title, id);
+ // Unfinished
+ throw new UnsupportedOperationException("Unfinished method.");
// Trace message
- this.getLogger().trace("EXIT!"); //NOI18N
+ //this.getLogger().trace("EXIT!"); //NOI18N
}
@Override
throw new ProductTitleAlreadyUsedException(product);
}
- // The product is not found, so add it to database
- this.productFrontend.addProduct(title, price, categoryId, available);
+ // Unfinished
+ throw new UnsupportedOperationException("Unfinished method.");
// Trace message
- this.getLogger().trace("EXIT!"); //NOI18N
+ //this.getLogger().trace("EXIT!"); //NOI18N
}
/**