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             * ID for serialization.
013             */
014            private static final long serialVersionUID = -3262675421447559635L;
015    
016            /**
017         * @param s the name of this Catalog.
018         */
019        public CCompleteStats(String s) {
020            super(s);
021        }
022    
023        /**
024         * Get method that handles the necessary contains the necessary try-catch block of the original
025         * get-method.
026         *
027         * @param id the ID of the monthly statistics item to be returned.
028         * @return a statistics item.
029         */
030        public CSalesStats get(String id) {
031            try {
032                return (CSalesStats)super.get(id, null, false);
033            }
034            catch (Exception e) {
035                return null;
036            }
037        }
038    }