Namespace: Consultingwerk.BusinessEntityDesigner.Services
Class 
DataRelationInitializer Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.BusinessEntityDesigner.Services.IDataRelationInitializer

File:DataRelationInitializer
Purpose:Service that supports initialization of new Data Relations
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Thu Sep 23 06:35:57 CEST 2021



Top Method Summary
Options Name Purpose
# CHARACTER BuildUniqueDataRelationName (character) Returns a unique name for a data-relation
+ LOGICAL HasActiveParentRelation (dataset, character) Returns TRUE if the given temp-table has an active parent data relation
+ LOGICAL HasParentRelation (dataset, character) Returns TRUE if the given temp-table has a parent data relation
+ ROWID InitializeDataRelation (IServiceContainer, dataset, rowid, rowid, logical) Creates and initializes a new eDataRelationRecord


Method Detail
Top

PROTECTED CHARACTER BuildUniqueDataRelationName (character)

Purpose: Returns a unique name for a data-relation
Notes:

Parameters:
pcDataRelationName CHARACTER
The build name of the data relation
Returns CHARACTER
The unique data relation name
Top

PUBLIC LOGICAL HasActiveParentRelation (dataset, character)

Purpose: Returns TRUE if the given temp-table has an active parent data relation
Notes: Used for validation when adding a new parent relation to a temp-table
(timer1_Tick in BusinessEntityDesignerForm)

Parameters:
dsBusinessEntity DATASET dsBusinessEntity
Dataset, passed by-reference
pcTempTable CHARACTER
The Name of the Temp-Table to check for parent relations
Returns LOGICAL
Logical value indicating if the temp-table has an active parent relation
Top

PUBLIC LOGICAL HasParentRelation (dataset, character)

Purpose: Returns TRUE if the given temp-table has a parent data relation
Notes: Used for validation when adding a new parent relation to a temp-table
(timer1_Tick in BusinessEntityDesignerForm)

Parameters:
dsBusinessEntity DATASET dsBusinessEntity
Dataset, passed by-reference
pcTempTable CHARACTER
The Name of the Temp-Table to check for parent relations
Returns LOGICAL
Logical value indicating if the temp-table has a parent relation
Top

PUBLIC ROWID InitializeDataRelation (IServiceContainer, dataset, rowid, rowid, logical)

Purpose: Creates and initializes a new eDataRelationRecord
Notes:

Parameters:
poServiceContainer Consultingwerk.Framework.IServiceContainer
The instance of the Service Container used by the Business Entity Designer
dsBusinessEntity DATASET dsBusinessEntity
Dataset, passed by-reference
poParentTableRowid ROWID
The ROWID of the parent table
poChildTableRowid ROWID
The ROWID of the child table
plActive LOGICAL
ACTIVE Flag of the new data-relation
Returns ROWID
The ROWID of the eDataRelation record


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-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       22.12.2024 21:24:08