no message
This commit is contained in:
@@ -26,11 +26,11 @@ public class VisualCaches {
|
||||
return new VisualCache();
|
||||
}
|
||||
public static VisualCache GetCache(DBObject object) {
|
||||
// System.out.println("get visual cache for " + object.getPK()+" "+object.getClass());
|
||||
VisualCache res = null;
|
||||
LinkedHashMap<Object, VisualCache> data = getDataForClass(object.getClass());
|
||||
if (!data.containsKey(object.getPK())) {
|
||||
// System.out.println("cache not found, creating...");
|
||||
// System.out.println("get visual cache for " + object.getPK()+" "+object.getClass());
|
||||
// System.out.println("cache not found, creating...");
|
||||
data.put(object.getPK(), res = createCache(object));
|
||||
} else {
|
||||
// System.out.println("cache found");
|
||||
@@ -42,7 +42,7 @@ public class VisualCaches {
|
||||
DeleteCache(object.getClass(), object.getPK());
|
||||
}
|
||||
public static void DeleteCache(Class class_, Object pk){
|
||||
// System.out.println("Delete for " + pk+" "+class_);
|
||||
// System.out.println("Delete for " + pk+" "+class_);
|
||||
LinkedHashMap<Object, VisualCache> data = getDataForClass(class_);
|
||||
if (data.containsKey(pk))
|
||||
data.remove(pk);
|
||||
|
||||
Reference in New Issue
Block a user