Try OpenEdge Now
skip to main content
Online Help
Data Object overview : Reference : New Business Entity wizard : Create a Business entity class page
 
Create a Business entity class page
The Create a Business entity class page of the New Business Entity wizard allows you to define a Business entity class with pre-defined Data Object interface annotations added to it.
This page includes the following options:
Option
Description
Package root
Specifies a currently open project in which you want to the Business entity class code and other project code. Click Browse if you want to select a project other than the current one (the default project).
Package
(Optional) Specifies a package name, corresponding to a sub-folder of the package root, to contain the Business entity class file. Click Browse or type the folder path. A period (.) must separate each subfolder from its parent folder in the path name.
Business entity name
(Required) Specifies the name of the Business entity class. The name must begin with a letter; spaces and most non-alphanumeric characters are not allowed. The .cls extension will be appended automatically.
Note: You cannot specify duplicate class names under the same project root.
Final Modifier
Select this check box to specify that inheritance from this Business entity class is disallowed. A FINAL keyword is included in the generated ABL code.
Note: A final class cannot be abstract.
Abstract Modifier
Specifies that the Business entity class is abstract and cannot be instantiated. An abstract class is designed to serve as a super class from which other classes inherit and implement members. Therefore, an abstract class cannot be final.
Note: If you select the Abstract check box, the Expose as Data Object Service check box on the next page of the wizard will be disabled.
Widget Pool Modifier
If selected, specifies that a USE-WIDGET-POOL keyword is included in the generated ABL code.
Serializable Modifier
If selected, marks the class as serializable by including the SERIALIZABLE modifier in the generated ABL code.
Note: If the class inherits from a super class that is not serializable, then it cannot be marked as serializable.
Inherits
Displays another Business entity class in the current project as a super class from which the new class inherits state and behavior. Click Browse to select a different class path or enter the super class's name. A period (.) must separate each node from its parent folder in the path name.
Note: The super class cannot be generic.
Implements
(Optional) Specifies one or more interfaces in the current project that the class implements. Click Add and select the desired interfaces at the Interface Selection dialog. Use Remove to remove an interface from those added to the list.
Note: The class cannot implement a generic interface.
Default constructor
Specifies that the Business entity class is to include a default constructor method.
Destructor
Specifies that the Business entity class is to include a destructor method.
Super class constructors
Select this check box to specify that the Business entity class is to include all constructor methods declared in the parent class.
Error-handling statement
Adds one of the following error-handling statements to the generated ABL code:
*Block level: Includes the BLOCK-LEVEL ON ERROR UNDO, THROW statement in the generated ABL code
*Routine level: Includes the ROUTINE-LEVEL ON ERROR UNDO, THROW statement in the generated ABL code
Throw a Not Implemented exception
If selected, specifies that "METHOD NOT IMPLEMENTED" error code is added to stubs for members implemented via interface and stubs for inherited abstract members.
Return a default value
If selected, specifies that default return values are added to stubs for members implemented via interface and stubs for inherited abstract members.
Description
(Optional) Specifies a description for the Business entity class. This text will appear in the file header.
Purpose
(Optional) Specifies an explanation of the purpose of the Business entity class. This text will appear in the file header.
Next
Takes you to the next page of New Business Entity wizard.