Hello, I will continue talking about view object level for writing Java code. As I said last video, there are two type of view objects in our view in behavioural ml it will be like entity object it will talk about row by row, it should have a cetera indicator for each row and you can deal with a view was a create and remove. But view ml is a four of you level it is not related to the row level, it is in the view in bill level. Like for example, here as if you are in the view object itself, and you want to make some change like change the whole query. For example, for the for the view object result, or if the view object has some binding variable and you want to set it so, you can do it in this level. So, I will give just an example if you want to change So with clause wants this view object is running so we can have in the override method as well.
You can write, execute, query for collection, okay here and before execute here you can write this this it means I am a view object. So this is a view object that sit anywhere close. For example, here maybe divorcement id equal. Let's see, have a look into department values, you can take maybe 50 pieces shimming. So let's say department ID equals 50. Okay.
So, this is I am talking about the whole view object not row by row, this is a view object level. So, let us try now to run okay. So as you can see now, once the view object is running now it is stop in the 50 and there is no nicus and the previous because this condition is returned only one row. For example, if I say if it department ID, greeters and department ID greater than or equal 50. Okay, in this case, we can start getting some multiple rows not only one row was because of the condition is equal, it was only one there is no next and previous only one row. So this is insert view level, if you want to override anywhere close, or you can set it here, or if you want to see some binding variables and so on, you can do it in the view embedded.
So let's try just to have a look and if you add another condition which is returned multiple rules, not only one row, you should be able to see next previous losses become active again. And authoritarian or department which is greater than 50. Of course I just give you this is like an example. But depending on your application, your business you can write your own condition I just want to show you where exactly you can write the code and when you can do it. So here start Nick hasn't become active and it will return all the work. Mental which is greater than or equal 50.
This is simple and easy for programmatic you can have override method and you can draw it over any method you can override it. This is a view object. So last thing I will talk about it in the application what you associate when you consider it you