Namespace: Consultingwerk.Studio.LegacyGuiMigration
Class 
CalcExpressionProcessor Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:CalcExpressionProcessor
Purpose:Allows manipulation of calculated field expressions
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Mon Nov 02 08:48:53 GMT+01:00 2015



Top Method Summary
Options Name Purpose
# INTEGER NextFieldOrder (character) Returns the next available field order value for the given temp-table
+ CHARACTER ProcessCalculatedFieldExpression (character, character, handle) Processes a calculated field expression
+ CHARACTER ProcessCalculatedFieldExpression (character, handle) Processes a calculated field expression
# CHARACTER TempTableForSourceTable (character) Returns the name of the temp-table which is mapping the given source (DB) table
# WalkAst (JPNode, RefactorSession) Recursively walks the AST


Method Detail
Top

PROTECTED INTEGER NextFieldOrder (character)

Purpose: Returns the next available field order value for the given temp-table
Notes:

Parameters:
pcTempTableName CHARACTER
The temp-table name of return the field order for
Returns INTEGER
The next available field order value for the given temp-table
Top

PUBLIC CHARACTER ProcessCalculatedFieldExpression (character, character, handle)

Purpose: Processes a calculated field expression
Notes: Replaces database field references in the expression with the mapped
temp-tables

Parameters:
pcExpression CHARACTER
The original calculated field expression
pcFileName CHARACTER
The name of the original ABL program
phBusinessEntityDataset HANDLE
The dataset with the Business Entity design
Returns CHARACTER
The modified calculated field expression
Top

PUBLIC CHARACTER ProcessCalculatedFieldExpression (character, handle)

Purpose: Processes a calculated field expression
Notes: Replaces database field references in the expression with the mapped
temp-tables

Parameters:
pcExpression CHARACTER
The original calculated field expression
phBusinessEntityDataset HANDLE
The dataset with the Business Entity design
Returns CHARACTER
The modified calculated field expression
Top

PROTECTED CHARACTER TempTableForSourceTable (character)

Purpose: Returns the name of the temp-table which is mapping the given source
(DB) table
Notes:

Parameters:
pcDbTableName CHARACTER
The database tale name
Returns CHARACTER
The temp-table name that maps the
Top

PROTECTED WalkAst (JPNode, RefactorSession)

Purpose: Recursively walks the AST
Notes: Registers rewrites of field names in the RefactorSession

Parameters:
poNode org.prorefactor.core.JPNode
The current JPNode
poRefactor Consultingwerk.Studio.SmartRefactor.RefactorSession
The refactor session to register rewrites in


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       09.11.2024 19:02:03