You use this procedure to create persistent classes in the Class Builder.
You need to use the prefix CL_ (or a corresponding naming convention in the customer namespace) for persistent classes. The auxiliary classes use the same convention.
The Create Class dialog box appears.
Option | Description |
---|---|
Superclass |
|
Instantiation |
|
Final |
Specifies the development status of the object. Only objects and components with status final can have executable code. This class completes the inheritance hierarchy since a final class may not create any further subclasses. |
The new class implements all the methods of the interface IF_OS_STATE. These service methods are common to all persistent classes and are used when the object status is changed. You can only redefine the implementation of the two methods INIT and HANDLE_EXCEPTION. The other methods are reserved for internal use.
The Class Builder automatically creates two additional auxiliary classes together with the new persistent class. They are assigned to a separate class pool. These classes are needed for managing persistent objects by means of Object Services.
See also: