Using freeze() in entity conditions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Using freeze() in entity conditions

Imre András Róbert
Hi,

I see that there is a freeze() method introduced for the following
abstract classes:
  EntityCondition, EntityConditionValue, EntityOperator

I suspect that this is somehow related to optimization, but I do
not know its exact effect. I also looked for use cases in ofbiz code,
but did not find anything.

Should I always call
  aCondition().freeze();
before
  delegator.findByCondition("AnEntity", aCondition, null, null);
?

Could someone provide me some details on this, please?


Thanks,
  András