Namespace: Consultingwerk.SmartFramework.System
Class 
SmartFieldsServiceGenerator Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:SmartFieldsServiceGenerator
Author(s):Sebastian Wandel / Consultingwerk Ltd.
Created:Wed Jun 23 10:26:41 CEST 2021
Purpose: Generates an ISmartFieldService implementation for a given database
Notes:



Top Method Summary
Options Name Purpose
+ Generate (character, character, character) Generates an ISmartFieldService implementation for a given database
# CHARACTER GenerateRecordDescription (character) Generates the content for the RecordDescription method
# CHARACTER GenerateRecordKeyFields (character) Generates the content for the RecordKeyFields method
- CHARACTER GetBufferValueString (character) Helper method that returns a string to a the buffer-fields value
- CHARACTER GetBufferValueString (character, character) Helper method that returns a string to a the buffer-fields value
- CHARACTER GetIndentation (integer) Helper method that returns spaces for indentation
- CHARACTER GetNewLines (integer) Helper method that returns a given amount of new lines


Method Detail
Top

PUBLIC Generate (character, character, character)

Purpose: Generates an ISmartFieldService implementation for a given database
Notes:

Parameters:
pcDatabaseName CHARACTER
The database
pcPackageName CHARACTER
Package of the generated class
pcClassName CHARACTER
Name of the class
Top

PROTECTED CHARACTER GenerateRecordDescription (character)

Purpose: Generates the content for the RecordDescription method
Notes:

Parameters:
pcDatabaseName CHARACTER
The name of the database
Returns CHARACTER
the content of the RecordDescription method
Top

PROTECTED CHARACTER GenerateRecordKeyFields (character)

Purpose: Generates the content for the RecordKeyFields method
Notes:

Parameters:
pcDatabaseName CHARACTER
The name of the database
Returns CHARACTER
the content of the RecordKeyFields method
Top

PRIVATE CHARACTER GetBufferValueString (character)

Purpose: Helper method that returns a string to a the buffer-fields value
Notes:

Parameters:
pcFieldName CHARACTER
The name of the field
Returns CHARACTER
String to get the fields value
Top

PRIVATE CHARACTER GetBufferValueString (character, character)

Purpose: Helper method that returns a string to a the buffer-fields value
Notes:

Parameters:
pcFieldName CHARACTER
The name of the field
pcFormat CHARACTER
The format string for the field
Returns CHARACTER
String to get the fields value
Top

PRIVATE CHARACTER GetIndentation (integer)

Purpose: Helper method that returns spaces for indentation
Notes:

Parameters:
piIndent INTEGER
Amount of tabs (4 spaces) to indent
Returns CHARACTER
The spaces
Top

PRIVATE CHARACTER GetNewLines (integer)

Purpose: Helper method that returns a given amount of new lines
Notes:

Parameters:
piLines INTEGER
The amount of new lines
Returns CHARACTER
The new lines


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 13:18:31