Try OpenEdge Now
skip to main content
Online Help
Data Object overview : Tasks : Working with Data Objects : Defining Data Object resources : Creating a Business Entity class
 
Creating a Business Entity class
A Business Entity class file with Data Service Catalog schema properties can be generated through Progress Developer Studio for OpenEdge by either creating an express Data Object project or by using the New Business Entity wizard.
This section explains using the New Business Entity wizard to create a Business Entity class.
The Business Entity class files generated in Progress Developer Studio for OpenEdge inherit from the abstract class OpenEdge.BusinessLogic.BusinessEntity, which contains generic methods performing the CRUD and Submit operations.
Depending on how you create a Business Entity class, Developer Studio either generates default code or generates only stubs for the methods that implement operations for the Data Object resource. In any case, you may need to add or modify any default code to implement certain features. For information on how to add and modify code for a Business Entity class, see the sections on Data Object Services in OpenEdge Development: Web Services guide.
The New Business Entity wizard provides the following ways to create a Business Entity class:
*From a selected database table
*From the schema of a selected source file
However, when generating the Data Service Catalog file, Progress Developer Studio for OpenEdge uses the Abstract Syntax Tree (AST) to read the DataSet and temp-tables in the Business Entity class file, regardless of how it was created (from a database table or using the schema from a source file).
* Creating a Business Entity class from a database table
* Creating a Business Entity class from the schema file