Class Builder Tutorial: Presented By-Amit Singh & Sylendra Prasad
Class Builder Tutorial: Presented By-Amit Singh & Sylendra Prasad
Presented By-
Amit Singh & Sylendra Prasad
How to work with Class Builder (SE24)
• If you don’t want to create any subclass of this class , then check
the checkbox named “Final”.
• Now you will get the class builder screen.
• After activating the interface, you can link the methods in the class
by giving the interface name in the Interfaces tab.
• On saving, automatically all the methods in the interface will be added to the
Methods tab in the class. Provide the coding for the methods as explained
previously.
Defining Events
• In the events tab, give the event description like name , level
(Instance or Static), Visibility (public, protected, private) and short
description.
• Check the “Event handler for “ checkbox and fill the class and the
required event.
• Now a link icon appears in “Method type” column like this.
• Now you can provide the implementation of the method showing the
way in which the private attribute is accessed.
How to create sub classes (Inheritance)
• Now you can map the database to the created class by clicking on
the ‘Persistence’ button in the toolbar.
• A pop up appears asking for database table/structure
• Now you will get all the table fields in the bottom-most section.
• Now you can double click on any of the table fields. You can edit the
field properties and now when you click on ‘up arrow’ close to the
description to update it in the persistent class.
• When you click Save and click on ‘Back’ button, new
GET_<field_name> ( for read-only fields ) and SET_<field_name>
( for other fields ) are generated in the Methods tab.