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

File:UpdateEditingParser
Purpose:Provides functionality used for migration of UPDATE EDITING
statements
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Fri Nov 03 21:35:48 CET 2017



Top Method Summary
Options Name Purpose
+ LONGCHAR ConvertNode (JPNode, character, character) Converts a JPNode representing an Update editing statement
# org.prorefactor.core.JPNode FindIfFrameFieldGoPending (JPNode) Finds the IF FRAME-FIELD <> ... OR GO-PENDING statement
+ GetUpdateEditingStatements (ParseUnit, table) Returns the temp-table of UPDATE EDITING Statements
# LONGCHAR ProcessEditingPhrase (JPNode, character, character) Processes the update editing block
# WalkAst (JPNode) Recursively walks the AST


Method Detail
Top

PUBLIC LONGCHAR ConvertNode (JPNode, character, character)

Purpose: Converts a JPNode representing an Update editing statement
Notes:

Parameters:
poNode org.prorefactor.core.JPNode
The JPNode to convert
pcEntityName CHARACTER
The name of the Business Entity which is used to map database fields to temp-table fields
pcTableName CHARACTER
The name of the Entity temp-table
Returns LONGCHAR
The converted source code
Top

PROTECTED org.prorefactor.core.JPNode FindIfFrameFieldGoPending (JPNode)

Purpose: Finds the IF FRAME-FIELD <> ... OR GO-PENDING statement
Notes: Recursive method

Parameters:
poNode org.prorefactor.core.JPNode
The JPNode to iterate
Returns org.prorefactor.core.JPNode
The JPNode representing the IF block or ?
Top

PUBLIC GetUpdateEditingStatements (ParseUnit, table)

Purpose: Returns the temp-table of UPDATE EDITING Statements
Notes:

Parameters:
poParseUnit org.prorefactor.treeparser.ParseUnit
The ParseUnit to process
ttNodeList TEMP-TABLE ttNodeList
OUTPUT Temp-Table from Consultingwerk/Studio/Proparse/NodeList/ttNodeList.i
Top

PROTECTED LONGCHAR ProcessEditingPhrase (JPNode, character, character)

Purpose: Processes the update editing block
Notes:

Parameters:
poNode org.prorefactor.core.JPNode
The update editing node
pcEntityName CHARACTER
The name of the Business Entity which is used to map database fields to temp-table fields
pcTableName CHARACTER
The name of the Entity temp-table
Returns LONGCHAR
The converted source code
Top

PROTECTED WalkAst (JPNode)

Purpose: Recursively walks the AST
Notes:

Parameters:
poASTNode org.prorefactor.core.JPNode
The AST Node to walk and it's children


Temp-Table Detail

Temp-Table ttNodeList

Defined in:


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