/** * INTERNAL: * This method is used to store the FK fields that can be cached that correspond to noncacheable mappings * the FK field values will be used to re-issue the query when cloning the shared cache entity */ @Override public void collectQueryParameters(Set<DatabaseField> record){ for (DatabaseMapping mapping : getReferenceDescriptor().getMappings()){ if ((mapping.isForeignReferenceMapping() && !mapping.isCacheable()) || (mapping.isAggregateObjectMapping() && mapping.getReferenceDescriptor().hasNoncacheableMappings())){ ((ForeignReferenceMapping) mapping).collectQueryParameters(record); } } }
/** * INTERNAL: * This method is used to store the FK fields that can be cached that correspond to noncacheable mappings * the FK field values will be used to re-issue the query when cloning the shared cache entity */ @Override public void collectQueryParameters(Set<DatabaseField> record){ for (DatabaseMapping mapping : getReferenceDescriptor().getMappings()){ if ((mapping.isForeignReferenceMapping() && !mapping.isCacheable()) || (mapping.isAggregateObjectMapping() && mapping.getReferenceDescriptor().hasNoncacheableMappings())){ ((ForeignReferenceMapping) mapping).collectQueryParameters(record); } } }
if (!mapping.isCacheable()) { if (isSharedIsolation()) { setCacheIsolation(CacheIsolationType.PROTECTED);
if (!mapping.isCacheable()) { if (isSharedIsolation()) { setCacheIsolation(CacheIsolationType.PROTECTED);
((mapping.isForeignReferenceMapping() && !mapping.isCacheable()) || (mapping.isAggregateObjectMapping() && mapping.getReferenceDescriptor().hasNoncacheableMappings()))) { mapping.collectQueryParameters(this.foreignKeyValuesForCaching);
((mapping.isForeignReferenceMapping() && !mapping.isCacheable()) || (mapping.isAggregateObjectMapping() && mapping.getReferenceDescriptor().hasNoncacheableMappings()))) { mapping.collectQueryParameters(this.foreignKeyValuesForCaching);
validateMappingType(mapping); mapping.initialize(session); if (!mapping.isCacheable()){ this.hasNoncacheableMappings = true;
validateMappingType(mapping); mapping.initialize(session); if (!mapping.isCacheable()){ this.hasNoncacheableMappings = true;