Chapter 8. Accessing the Entities and View Entities
In the previous chapter, we largely used the "webtools" component in OFBiz to manipulate the data of entities and entity views. In this chapter, we will now look at how to deal with those programmatically. That means we will be firing database queries to the Entity Engine in OFBiz. There are four types of queries: create, update, retrieve, and delete (CRUD).
For the sake of the examples in this chapter we will use the Java language in the BeanShell framework, exploring examples with
.bsh files. Although this technique is not necessarily recommended by the OFBiz community, we are able to see what the Java code should look like, without having to stop, recompile, and restart between every example. ...