001 package market.statistics;
002
003 import data.ooimpl.CatalogImpl;
004
005 /**
006 * Catalog that contains the article statistics of passed months as its items. Those items are
007 * {@link CSalesStats}.
008 */
009 public class CCompleteStats extends CatalogImpl {
010
011 /**
012 * @param s the name of this Catalog.
013 */
014 public CCompleteStats(String s) {
015 super(s);
016 }
017
018 /**
019 * Get method that handles the necessary contains the necessary try-catch block of the original
020 * get-method.
021 *
022 * @param id the ID of the monthly statistics item to be returned.
023 * @return a statistics item.
024 */
025 public CSalesStats get(String id) {
026 try {
027 return (CSalesStats)super.get(id, null, false);
028 }
029 catch (Exception e) {
030 return null;
031 }
032 }
033 }