Thursday, November 02, 2006

JDeveloper:Override Methods

-------------------------------
Often times we need to override methods in java classes, e.g. for classes like VOImpl, VORowImpl, EOImpl, AMImpl etc etc. So how do you find the methods and their signatures.
I used to do this by typing "this." which popsup the method list popup and then select the method, else by going through Javadoc and typing the method signature.

But this is fairly simple..
1)-Open the required java file in the editor.
2)-Click on "Source" from meny , then "Override Methods".
3)-Select one or multiple methods and it will create the empty body methods with the signatures.

It also provides an annotation called "@Override" just before the method signature.

No comments:

Post a Comment