-
Book Overview & Buying
-
Table Of Contents
Apache OfBiz Cookbook
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.
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 a look at some handy utilities provided by OFBiz to manipulate result sets.
There is a data modeling pattern often used within OFBiz where an entity will have three (or more) primary keys. One of the primary keys will uniquely...
Change the font size
Change margin width
Change background colour