O'Reilly logo

Apache OFBiz Cookbook by Ruth Hoffman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

EntityUtil

The org.ofbiz.entity.util.EntityUtil has several methods useful for manipulating data returned from an Entity Engine call. This data, referred to as the "result set", is either a single GenericValue object, a Java list containing one or more GenericValue objects, or a null.

Tip

Using the EntityUtil works with result sets already in memory. This means that you should use caution when manipulating data in this way as you may run out of memory and/or degrade performance in short order. If you have a choice, it is almost always better to let the Entity Engine and database perform data filtering, ordering, and sorting (by way of conditional GenericDelegator find parameters) before bringing a result set into memory.

In this section, we take ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required