Subversion Repositories SmartDukaan

Rev

Rev 1929 | Rev 2275 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1929 Rev 2094
Line 30... Line 30...
30
	private static final String LEARNED_BULLETS = "LEARNED_BULLETS";
30
	private static final String LEARNED_BULLETS = "LEARNED_BULLETS";
31
	private static final String DEFAULT_ENTITY_SCORES = "DEFAULT_ENTITY_SCORES";
31
	private static final String DEFAULT_ENTITY_SCORES = "DEFAULT_ENTITY_SCORES";
32
	private static final String FACET_VALUES = "FACET_VALUES";
32
	private static final String FACET_VALUES = "FACET_VALUES";
33
	private static final String SLIDE_SCORES = "SLIDE_SCORES";
33
	private static final String SLIDE_SCORES = "SLIDE_SCORES";
34
	private static final String CONTENT_GENERATION_TIME = "CONTENT_GENERATION_TIME";
34
	private static final String CONTENT_GENERATION_TIME = "CONTENT_GENERATION_TIME";
-
 
35
	private static final String INCONSISTENT_ENTITIES = "INCONSISTENT_ENTITIES";
35
	
36
	
36
 
37
 
37
	/**
38
	/**
38
	 * 
39
	 * 
39
	 * @param aThrowable
40
	 * @param aThrowable
Line 44... Line 45...
44
	    final PrintWriter printWriter = new PrintWriter(result);
45
	    final PrintWriter printWriter = new PrintWriter(result);
45
	    aThrowable.printStackTrace(printWriter);
46
	    aThrowable.printStackTrace(printWriter);
46
	    return result.toString();
47
	    return result.toString();
47
	}
48
	}
48
	
49
	
49
	/**
50
    /**
-
 
51
     * 
-
 
52
     * @param entity
-
 
53
     * @throws Exception
-
 
54
     */
-
 
55
    public static void storeInconsistentEntities(List<Long> inconsistentEntities) throws Exception {
-
 
56
        StorageManager.getStorageManager().storeDataObject(CreationUtils.INCONSISTENT_ENTITIES, inconsistentEntities);      
-
 
57
    }
-
 
58
    
-
 
59
    /**
-
 
60
     * 
-
 
61
     * @return
-
 
62
     * @throws Exception
-
 
63
     */
-
 
64
    @SuppressWarnings("unchecked")
-
 
65
    public static List<Long> getInconsistentEntities() throws Exception {
-
 
66
        return (List<Long>) StorageManager.getStorageManager().getDataObject(CreationUtils.INCONSISTENT_ENTITIES);       
-
 
67
    }
50
	 * 
68
    
-
 
69
    /**
-
 
70
     * 
51
	 * @param entity
71
     * @param entity
52
	 * @throws Exception
72
     * @throws Exception
53
	 */
73
     */
54
	public static void storeLearnedBullets(Map<Long, List<ExpandedBullet>> learnedBullets) throws Exception {
74
    public static void storeLearnedBullets(Map<Long, List<ExpandedBullet>> learnedBullets) throws Exception {
55
		StorageManager.getStorageManager().storeDataObject(CreationUtils.LEARNED_BULLETS, learnedBullets);		
75
        StorageManager.getStorageManager().storeDataObject(CreationUtils.LEARNED_BULLETS, learnedBullets);      
56
	}
76
    }
57
	
77
    
58
	/**
78
    /**
59
	 * 
79
     * 
60
	 * @return
80
     * @return
61
	 * @throws Exception
81
     * @throws Exception
62
	 */
82
     */
63
	@SuppressWarnings("unchecked")
83
    @SuppressWarnings("unchecked")
64
	public static Map<Long, List<ExpandedBullet>> getLearnedBullets() throws Exception {
84
    public static Map<Long, List<ExpandedBullet>> getLearnedBullets() throws Exception {
65
		return (Map<Long, List<ExpandedBullet>>) StorageManager.getStorageManager().getDataObject(CreationUtils.LEARNED_BULLETS);		
85
        return (Map<Long, List<ExpandedBullet>>) StorageManager.getStorageManager().getDataObject(CreationUtils.LEARNED_BULLETS);       
66
	}
86
    }
67
	
87
    
68
	/**
88
	/**
69
	 * 
89
	 * 
70
	 * @param featureDefinitionID
90
	 * @param featureDefinitionID
71
	 * @return
91
	 * @return
72
	 * @throws Exception
92
	 * @throws Exception