Modifying the bean 2 Use the inspector to modify the attributes of untitledField, including the name of the field. 3 To complete your field, double-click the bean class in the project pane to display the source code. Find where the field s getter and setter methods are defined and add any additional logic you might want. If you make a mistake and want to remove a field, right-click the field in the bean representation and choose Delete Field. Adding a new method To add a new method to a bean, 1 Right-click the bean representation in the EJB designer and choose Add|Method or click the Add button on the toolbar and choose Method: A new method titled untitledMethod appears in the bean. The method s inspector appears: 2 Use the inspector to modify the attributes of untitledMethod. 3 To complete your method, double-click the bean class in the project pane to display its source code. Find the skeleton method you just added in the source and, in the method s body, write the logic of the method. 28 Developing Applications with Enterprise JavaBeans
Every our account comes with web mail client, free virus scanner, free anti-spam tool, free web templates and much more. For complete list of all our virtual web hosting features check our Virtual Web Hosting section.
This entry was posted
on Wednesday, September 26th, 2007 at 6:11 pm and is filed under JBuilder Blog.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.