O'Reilly logo

Apache OFBiz Development by Rupert Howell, Jonathon Wong

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

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. ...

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