Hello, in this video I will start talking about how you can write a Java program in your Oracle ADF application you can write your own business or you can make any customization using a Java program. So, I will start talking from the model layer where exactly you can write your Java program. As I said before, Moodle layer has an entity object view object on the application module, I will show you how you can write a Java program into object and how you can write your programming view object and application module. And actually where you should write this and when you should write your Java code. I will start talking about the entity object. Let us for example obon wants to say entity object departments.
Here you will find here from st TT there are a Java, Java tab here, okay, it's Miss knit. Java here is you can write your Java plus if you go to here in Java and you are not finding any Java classes, it means is there is no override for departments entity, it uses its own default. So here if you want to write your own code you're Brasil Okay. What exactly you can do into entity object. You can write your Java code in entity object if you want to write any code after the creation heaven. For as you as I told you, the department entity object is mapped to the table.
So table it means if you need to create a new row, in this entity object or in this table, so after you want to To create a user base create you want to do something. So here you should override the Create method. Okay I will show you all of this method anyway accessors is for setter and getter for each attribute or each column for example, departments have department ID department name manager. So, if you want to deal with the setter and getter of this attribute, you should select with accessor Renu remote method is once the user delete row from the entity or from the table, you can write after the row is deleted if you want to do something or before the row is deleted you to do something that a manipulation misses and this is one of the most important usage you can use is do DML which is DML data manipulation methods which is insert or update or delete.
So before insert if You want to set some attribute or do some your business or before update or before delete or after Abreu after delete or after insert or after update okay so I would select all now okay and I usually generate departments in bulk loss maybe in some documentation if you see entity embed you know is the autoweek about this Java class of St. Okay. So to Urban's class you bris on this Okay Here you will find your entity champion or department Emperor. As I said, you we highlighted for singers accessory it means you will find a sitter and the guitar for each attributes either on the guitar because we mark accessors for create, you can see here create this is a create method which we highlighted here Create misheard, it will display this because we must create before sober it means before the row is created you can write your own yo your own code here before user Paris before rule is created here after new rule is carried, right your coochie Simon remove before solver, it means before the row is removed you need to do something here after the row is removed you want to do something as I said the most important thing is do the male or the male operation.
Before this over here you can write your code after insert or before insert. And this server here is after insert or after update after delete here before it's 34 update for delete, this is just places you can use to work with entity object. Let us try to give you an example for how you can use accessor for setter and the getter each attribute how you can use the Create and when however you use remove and when you want to do do it and do the will, of course. So next video, I will show you how you can use this. So see you next tivity