Subversion Repositories SmartDukaan

Rev

Rev 62 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 62 Rev 63
Line 565... Line 565...
565
	@SuppressWarnings("unchecked")
565
	@SuppressWarnings("unchecked")
566
	public Map<Long, FacetDefinition> getFacetDefinitions() throws Exception {
566
	public Map<Long, FacetDefinition> getFacetDefinitions() throws Exception {
567
		
567
		
568
		// De-serialize
568
		// De-serialize
569
		if(this.facetDefinitions == null) {
569
		if(this.facetDefinitions == null) {
570
			String dbFile = MM.DEFINITIONS_DB_PATH + "facetdefintions" + ".ser";
570
			String dbFile = MM.DEFINITIONS_DB_PATH + "facetdefinitions" + 
-
 
571
				".ser";
571
			
572
			
572
			this.facetDefinitions = 
573
			this.facetDefinitions = 
573
				(Map<Long, FacetDefinition>) DBUtils.read(dbFile);
574
				(Map<Long, FacetDefinition>) DBUtils.read(dbFile);
574
		}
575
		}
575
		
576
		
Line 624... Line 625...
624
	public Map<Long, CategoryFacetDefinition> getCategoryFacetDefinitions() 
625
	public Map<Long, CategoryFacetDefinition> getCategoryFacetDefinitions() 
625
		throws Exception {
626
		throws Exception {
626
		
627
		
627
		// De-serialize
628
		// De-serialize
628
		if(this.categoryFacetDefinitions == null) {
629
		if(this.categoryFacetDefinitions == null) {
629
			String dbFile = MM.DEFINITIONS_DB_PATH + "categoryfacetdefintions" + 
630
			String dbFile = MM.DEFINITIONS_DB_PATH + "categoryfacetdefinitions" + 
630
				".ser";
631
				".ser";
631
			
632
			
632
			this.categoryFacetDefinitions = 
633
			this.categoryFacetDefinitions = 
633
				(Map<Long, CategoryFacetDefinition>) DBUtils.read(dbFile);
634
				(Map<Long, CategoryFacetDefinition>) DBUtils.read(dbFile);
634
		}
635
		}