use of org.vcell.util.Cacheable in project vcell by virtualcell.
the class DBCacheTable method getCloned.
public synchronized Cacheable getCloned(KeyValue key) {
TimeWrapper timeWrapper = (TimeWrapper) hashTable.get(key);
if (timeWrapper != null) {
DbObjectWrapper objWrapper = (DbObjectWrapper) timeWrapper.getObject();
Cacheable cacheable = objWrapper.getClonedCopy();
// System.out.println("DBCacheTable.get: "+cacheable.getClass().getName());
return cacheable;
} else {
// System.out.println("DBCacheTable.get: null");
return null;
}
}
use of org.vcell.util.Cacheable in project vcell by virtualcell.
the class DBCacheTable method get.
public synchronized Cacheable get(KeyValue key) {
TimeWrapper timeWrapper = (TimeWrapper) hashTable.get(key);
if (timeWrapper != null) {
DbObjectWrapper objWrapper = (DbObjectWrapper) timeWrapper.getObject();
Cacheable cacheable = objWrapper.getWorkingCopy();
// System.out.println("DBCacheTable.get: "+cacheable.getClass().getName());
return cacheable;
} else {
// System.out.println("DBCacheTable.get: null");
return null;
}
}
Aggregations