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, 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 availalbe field order value for the given temp-table
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-2020 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       04.02.2020 23:32:32