Hello, in this video I will just talk about some of the overriding methods sometimes we use in ADF application the one is the first one which I took during the last couple of videos which is overriding the prepared rule set for query to filter the two sets a bind variable in the view object. So, I will talk about another one here, which can be used if you want to filter the mean view criteria where close you want to be sure this view criteria criteria will be always has specific variables values in the where clause, if you have a complex word close in the query in your query, and you want to be sure that this view object will be always run this way, we're close so you can override here's the overwrite method execute, query for collection to query for collection. Okay, for this execute query for collection, we always use it if we need to set it we're close holds a view object by some variable from some values.
Like for example, you can call here Sit in wear clothes and right here, you would wear clothes sometimes you wear clothes is a bit complicated and we'll set some variables get some variables from the back beefs from the session scope. So, in that case, you can write a sitter or close if you review object need just to be a field filtered by symbol variable. You can find bind variable as I show you and see this bind variable from the session scope. But sometimes you're we're close is a bit complicated we'll get value from some other tables and some variables from the session some combination between variables. In that case, you will not be able to define bind variables, but you can go to the view into class and override execute query for collection and you can sit anywhere close. So, let us say the word close was some specific things like employee salary.
Here close Emily's salary is greater than 10 k. So, it means this view object will be always has data with the salary is greater than 10 k even you obliged some view criteria which will get data not belong to us This condition it will not be habit because this week arteria will run over the result of the main view criteria view object. So, if your view object that is get all in between with salary is greater than 10 K, it means any view criteria you will defined will be filtered zis that So, those of you criteria will run over the result of the mean view object query This is something called execute query for connection. So, this method you know about it and other method which you can sit by and variable was very beard crew set for query this one So, this method now you know about it in the view object me which I usually use both of them you can override missiles in application module itself or in the entity object.
So in the application modules, you can go to Java and you can generate application module Ember. And once you generate application module bill at the obon surplus, you will find the override method here and you will all find cell source menus appear here with override missiles. So, there are some override methods you can override it I usually you can use maybe after commit or before committed means, after commit. Here, it means at any commit operation will be done in whole it if application it will go here. So if you for example, if you want to sit like audit or you want to insert some role in some tables with a number of the commit operation which have been and who will do it. In that case, you can go to the after commit, and you can do whatever you will business here.
Same is there before commit, as well if you want to do something before the user make a new commit in all the application, you can do it here. The window not if you want it depending on your business, if you need to catch before any commit, you need to do something you can do it here. Same insert rollback, the rollback you will find before a rollback before these are me cancel you if you want to do something and after rollback, you can do the same. So this is some of the overriding methods in a application module. In build some time, sometimes use it if you want for example, to display Miss message After increment the operation is done successfully. So, you can display some message message here.
So, this is saying is you can overwrite in the application module you can read more about it or you want to try any method you can throw it but just I need to give you some idea about this overriding missile is a certain place is a model is the entity same as entity, if you generate entity here it overrides some method automatically here like create remove, or data manipulation actually all of this or override method so if you didn't even select this create or remove or data mission method, you can go here and you can override it here. You will find here that create you'll find the career This is seemed like if you check the box That when you generate this Ember and if you override one method you will not find it here anymore. So, if you search for a decorator again, you will not find this because you already override it.
Same do DML you will find the DML. here if you want to overwrite it, if you want to overwrite remove, so, remove or delete throw, if you want to catch it here, you can catch it here. So here if you want to override some methods in the entity embed you can do it is entity image loss is application module in application module class. And in the view object, there are a few object embed and if you have sheet row embed, as well. You can have your straw and build this row by row. If you Want to override some methods, you can open the view invalid class, but actually I'll never overwrite something here.
But you can do so this is what normally I use in the view and I can use the revere rousset for query to set some bind variables or execute query for collection if I need to set the workloads for view object and application module, I always if I need sometimes to override or after commit, to display some message, and of course the entity we always override most of the time due to email and create operation. This is a quick description about the overriding message and how you can override some methods in the module layer. So the last couple of videos where I talk about the bind variables and override methods so Nick is Vu are huge jump for the new features. So see you in the activity.