Namespace: Consultingwerk.Studio.LegacyGuiMigration.SDO
Class 
SmartDataObjectImporter Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.Studio.LegacyGuiMigration.SDO.ISmartDataObjectImporter

File:SmartDataObjectImporter
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sat Oct 07 18:01:05 CEST 2023



Top Method Summary
Options Name Purpose
CreateUniqueIndex (character, character, BusinessEntityDatasetController) Creates a unique index and ensures that all index fields are part of the Business Entity
CHARACTER GetPreprocessorDefinition (character, longchar) Searches the source code for a preprocessor definition
ImportSDO (character, character, BusinessEntityDatasetController, logical, dataset) Imports an ADM2 SmartDataObject into the model
ParseFieldSpecs (character, character, longchar) Parses the _QUERY-BLOCK for the field details
RemoveSdoSupportFields (character) Removes the SDO support fields and indexes from the design


Method Detail
Top

CreateUniqueIndex (character, character, BusinessEntityDatasetController)

Purpose: Creates a unique index and ensures that all index fields are part
of the Business Entity
Notes:

Parameters:
pcTableName CHARACTER
The name of the temp-table
pcIndexFields CHARACTER
The list of index fields
poController Consultingwerk.BusinessEntityDesigner.Services.BusinessEntityDatasetController
The BusinessEntityDatasetController reference
Top

CHARACTER GetPreprocessorDefinition (character, longchar)

Purpose: Searches the source code for a preprocessor definition
Notes:

Parameters:
pcPreprocessorName CHARACTER
The preprocessor variable to search for
plcSourceCode LONGCHAR
The whole source code
Returns CHARACTER
The value of the preprocessor name
Top

ImportSDO (character, character, BusinessEntityDatasetController, logical, dataset)

Purpose: Imports an ADM2 SmartDataObject into the model
Notes:

Parameters:
pcSDO CHARACTER
The name of the SmartDataObject to import
pcTempTableName CHARACTER
The name of the imported Temp-Table (previously RowObject)
poController Consultingwerk.BusinessEntityDesigner.Services.BusinessEntityDatasetController
The BusinessEntityDatasetController reference
plRemoveSdoSupportFields LOGICAL
Logical value indicating if SDO Support fields should be removed
dsBusinessEntity DATASET dsBusinessEntity
The dsBusinessEntity BY-REFERENCE
Top

ParseFieldSpecs (character, character, longchar)

Purpose: Parses the _QUERY-BLOCK for the field details
Notes:

Parameters:
pcTableName CHARACTER
The name of the temp-table
pcQueryName CHARACTER
The name of the Query
plcSourceCode LONGCHAR
The source code block
Top

RemoveSdoSupportFields (character)

Purpose: Removes the SDO support fields and indexes from the design
Notes:

Parameters:
pcTableName CHARACTER
The name of the imported temp-table


ProDataset Detail

ProDataset dsBusinessEntity

Member tables: eBusinessEntity, eDataRelation, eDataRelationProperties, eTable, eField, eFieldProperties, eIndex, eIndexProperties, eTableProperties, eBusinessEntityProperties


Temp-Table Detail

Temp-Table eBusinessEntity

Defined in:

Temp-Table eBusinessEntityProperties

Defined in:

Temp-Table eDataRelation

Defined in:

Temp-Table eDataRelationProperties

Defined in:

Temp-Table eField

Defined in:

Temp-Table eFieldProperties

Defined in:

Temp-Table eIndex

Defined in:

Temp-Table eIndexProperties

Defined in:

Temp-Table eTable

Defined in:

Temp-Table eTableProperties

Defined in:


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       13.04.2026 10:29:39