Namespace: Consultingwerk.BusinessEntityDesigner.Generator
Class 
BusinessEntityValidationGenerator Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.BusinessEntityDesigner.Plugins.CustomServices.IBusinessEntityValidationGenerator

File:BusinessEntityValidationGenerator
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Tue May 26 20:54:32 CEST 2015



Top Method Summary
Options Name Purpose
+ CHARACTER FieldValidationType (longchar) Returns the Validation Type of a field
# LONGCHAR GenerateFieldValidation (BaseValidationProperties, character, character, character, integer) Generates the validation for the eField record currently in scope
+ LONGCHAR GenerateValidationCode (dataset) Generates the Business Entity Validation Code


Method Detail
Top

PUBLIC CHARACTER FieldValidationType (longchar)

Purpose: Returns the Validation Type of a field
Notes: Deserializes the JSON

Parameters:
plcValidation LONGCHAR
The JSON Serialized field validation instance
Returns CHARACTER
The type name of the field validation instance or ?
Top

PROTECTED LONGCHAR GenerateFieldValidation (BaseValidationProperties, character, character, character, integer)

Purpose: Generates the validation for the eField record currently in scope
Notes:

Parameters:
poValidation Consultingwerk.BusinessEntityDesigner.Validation.BaseValidationProperties
The validation properties instance
pcTableName CHARACTER
The name of the buffer to validate
pcFieldName CHARACTER
The name of the field to validate
pcDataType CHARACTER
The data type of the temp-table field
piExtent INTEGER
The field extent
Returns LONGCHAR
The validation code block for the given field
Top

PUBLIC LONGCHAR GenerateValidationCode (dataset)

Purpose: Generates the Business Entity Validation Code
Notes:

Parameters:
dsBusinessEntity DATASET dsBusinessEntity
The Business Entity Dataset passed by-reference
Returns LONGCHAR
The generated validation code, including the @GeneratedValidationStart. and @GeneratedValidationEnd. Annotations


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       09.11.2024 18:34:25