Namespace: Consultingwerk.OERA.DynamicBusinessEntity
Class 
DynamicBusinessEntity Copy to Clipboard
Parent classes:
Inherits: Consultingwerk.SmartFramework.SmartBusinessEntity
Implements: Ccs.BusinessLogic.IBusinessEntity, Ccs.BusinessLogic.IUpdatableBusinessEntity, Consultingwerk.OERA.IBusinessEntity, Consultingwerk.OERA.IBusinessService, Consultingwerk.OERA.IFetchDataByReference, Consultingwerk.OERA.IHasContextID, IProvidesBusinessEntityDescriptor, Consultingwerk.OERA.IProvidesDatasetModel, Consultingwerk.OERA.ISupportsResetState

File:DynamicBusinessEntity
Purpose:Dynamic Business Entity implementation
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sun Mar 15 18:51:45 AEDT 2020



Top Method Summary
Options Name Purpose
FetchData (IFetchDataRequest) Fetch data from the Data Access object
F FetchDataByReference (IFetchDataRequest, dataset-handle) Fetch data from the Data Access object
FetchDataset (dataset-handle) Creates and returns an empty dataset to the caller
HANDLE GenerateDataset (character) Generates the Dynamic ProDataset
Consultingwerk.OERA.IDataAccess GetDataAccessObject () Returns the reference to the DataAccess Object
InitializeDataAccessObject () Initializes the DataAccess Object
ReceiveData () Provides a hook to modify data in the ProDataset after Read and Update operations (i.e. population of aggregated values)
ValidateData () Provides a hook for high level data validation before Update operations

Top Constructor Summary
Options Name Purpose
DynamicBusinessEntity (character) Constructor for the DynamicBusinessEntity class


Method Detail
Top

FetchData (IFetchDataRequest)

Purpose: Fetch data from the Data Access object
Notes:

Parameters:
poFetchDataRequest Consultingwerk.OERA.IFetchDataRequest
The IFetchDataRequest object with the parameters for this call
Top

FetchDataByReference (IFetchDataRequest, dataset-handle)

Purpose: Fetch data from the Data Access object
Notes:

Parameters:
poFetchDataRequest Consultingwerk.OERA.IFetchDataRequest
The IFetchDataRequest object with the parameters for this call
phDataset DATASET-HANDLE
The dataset, intended to by passed BY-REFERENCE
Top

FetchDataset (dataset-handle)

Purpose: Creates and returns an empty dataset to the caller
Notes: Useful for dynamic callers that need access to the dataset schema prior to calling FetchData

Parameters:
phDataset DATASET-HANDLE
OUTPUT Dataset with the resulting data
Top

HANDLE GenerateDataset (character)

Purpose: Generates the Dynamic ProDataset
Notes: Facade method to IDynamicDatasetFactory:GenerateDataset

Parameters:
pcEntityIdentifier CHARACTER
The identifier of the dynamic business entity
Returns HANDLE
The handle of the Dynamic ProDataset
Top

Consultingwerk.OERA.IDataAccess GetDataAccessObject ()

Purpose: Returns the reference to the DataAccess Object
Notes: If THIS-OBJECT:DataAccessObject is not valid, this
method will invoke InitializeDataAccessObject before
returning the reference

Returns Consultingwerk.OERA.IDataAccess
The reference to the Data Access object
Top

InitializeDataAccessObject ()

Purpose: Initializes the DataAccess Object
Notes: Uses the DataAccessName property

Top

ReceiveData ()

Purpose: Provides a hook to modify data in the ProDataset after Read and
Update operations (i.e. population of aggregated values)
Notes: Invoked during FetchData () and SaveChanges ()

Top

ValidateData ()

Purpose: Provides a hook for high level data validation before Update
operations
Notes: Invoked during SaveChanges (). When the ERROR flag of the ProDataset
is set, the Update operation will be cancelled before writing back
the data to the database using the DataAccess object



Constructor Detail
Top

DynamicBusinessEntity (character)

Purpose: Constructor for the DynamicBusinessEntity class
Notes:

Parameters:
pcEntityIdentifier CHARACTER
The identifier of the dynamic business entity


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       30.03.2026 11:04:58