Chapter 4. Adding Business Logic
So far, we have only been using the declarative power of JDeveloper and the ADF framework. The application you saw running in the last chapter did not contain a single line of hand-written code. Of course, declarative features can only get you so far –– once you need to add the real-life business rules that are specific to your application, you will have to start writing Java code.
This chapter will give you some examples of this — many other examples are available on the Internet. At the end of the chapter, we will see how to implement the business logic necessary for the DVD rental application.
Tip
If you are using Google to search for code snippets, always start by searching only for results from within the past year (navigate to Search Tools and change the Any time default setting to Past year). A search without a date range is likely to show up old solutions, and a lot of things have got easier in the later versions of JDeveloper.