use of org.datanucleus.util.ConcurrentReferenceHashMap in project datanucleus-core by datanucleus.
the class FetchPlan method cacheIsToCallPostLoadFetchPlan.
void cacheIsToCallPostLoadFetchPlan(AbstractClassMetaData cmd, BitSet loadedFields, Boolean itcplfp) {
if (isToCallPostLoadFetchPlanByCmd == null) {
isToCallPostLoadFetchPlanByCmd = new ConcurrentReferenceHashMap<>(1, ReferenceType.STRONG, ReferenceType.SOFT);
}
Map cachedIsToCallPostLoadFetchPlan = isToCallPostLoadFetchPlanByCmd.get(cmd);
if (cachedIsToCallPostLoadFetchPlan == null) {
cachedIsToCallPostLoadFetchPlan = new ConcurrentReferenceHashMap<>(1, ReferenceType.STRONG, ReferenceType.SOFT);
isToCallPostLoadFetchPlanByCmd.put(cmd, cachedIsToCallPostLoadFetchPlan);
}
cachedIsToCallPostLoadFetchPlan.put(loadedFields, itcplfp);
}
Aggregations