Show TOC Start of Content Area

Background documentation Generated Classes  Locate the document in its SAP Library structure

The following classes are generated when you create a persistent class:

Class

Description

Modifiability

CL_<CLASS NAME>

The explicitly created persistent application class. It implements some generated service methods and all application methods.

Modifications affect the corresponding auxiliary classes.

CA_<CLASS NAME>

Instantiates the class agent for the CL class.

The CA class inherits from the CB class and is final. You can redefine certain methods of object services, for example, loading and saving object data on the database.

The CA class does not inherit its own methods from the CB class, but redefines and extends the CB class.

The CA class provides a single instance, that is the class agent for class CL_<CLASS NAME>.

The class can be extended to include further components.

CB_<CLASS NAME>

Superclass for the class agent class (CA_<CLASS NAME>).

The CB class is abstract and you cannot construct instances from the class.

The CB class acts as a template for the modifiable CA class and implements the class-specific parts of object services like loading and saving object instances of CL classes.

Cannot be modified.

The following diagram illustrates the relationships between the generated classes:

This graphic is explained in the accompanying text

Creating a Persistent Class: Generated Classes

See also:

Creating a Persistent Class

 

End of Content Area