Namespace: Consultingwerk.BusinessEntityDesigner.Services
Class 
TempTableImporter Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:TempTableImporter
Purpose:Imports a temp-table into the Business Entity model
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Wed Sep 19 21:16:20 CEST 2012



Top Method Summary
Options Name Purpose
# FindTableTablesHandler (Object, TempTableAstNodeAvailableEventArgs) Event handler for the TempTableAstNodeAvailable event of the TempTableAstWalker during the searching for temp-table names
# Consultingwerk.Framework.Collections.CharacterList FindTempTables (ParseUnit) Searches the ParseUnit for Temp-Table Definitions and returns a List of Temp-Table names
# CHARACTER GetFieldAttributeValue (JPNode, character) Returns the value of a FIELD attribute
+ Consultingwerk.Framework.Collections.CharacterList ImportTablesFromCodeBlock (longchar, BusinessEntityDatasetController) Imports Temp-Tables from an ABL code block into the model of the Business Entity Dataset Controller
+ Consultingwerk.Framework.Collections.CharacterList ImportTablesFromFile (character, BusinessEntityDatasetController) Imports Temp-Tables from an ABL source code file into the model of the Business Entity Dataset Controller
+ Consultingwerk.Framework.Collections.CharacterList ImportTablesFromFile (character, CharacterList, BusinessEntityDatasetController) Imports Temp-Tables from an ABL source code file into the model of the Business Entity Dataset Controller
+ ImportTablesFromParseUnit (ParseUnit, CharacterList, BusinessEntityDatasetController, CharacterList) Imports Temp-Tables from an ABL source code file into the model of the Business Entity Dataset Controller
# ProcessFieldNode (JPNode, character, integer) Processes a Field Node
# ProcessIndexNode (JPNode, character, integer) Processes an Index Node
# ProcessSelectedTables (CharacterList, ParseUnit, BusinessEntityDatasetController) Processes the selected Tables from the AST and creates them in the Business Entity Dataset Controller
# ProcessSelectedTablesHandler (Object, TempTableAstNodeAvailableEventArgs) Event handler for the TempTableAstNodeAvailable event of the TempTableAstWalker during the processing of selected temp-table names
+ RefreshTableFromFile (character, dataset) Refreshes a Temp-Table from the include file
+ RefreshTableFromFile (character, dataset, logical) Refreshes a Temp-Table from the include file


Method Detail
Top

PROTECTED FindTableTablesHandler (Object, TempTableAstNodeAvailableEventArgs)

Purpose: Event handler for the TempTableAstNodeAvailable event of the
TempTableAstWalker during the searching for temp-table names
Notes:

Parameters:
sender Progress.Lang.Object
The object that raised the event
e Consultingwerk.BusinessEntityDesigner.Services.TempTableAstNodeAvailableEventArgs
The TempTabelAstNodeAvailableEventArgs with the data for this event
Top

PROTECTED Consultingwerk.Framework.Collections.CharacterList FindTempTables (ParseUnit)

Purpose: Searches the ParseUnit for Temp-Table Definitions and returns a
List of Temp-Table names
Notes:

Parameters:
poParseUnit org.prorefactor.treeparser.ParseUnit
The proparse ParseUnit containing the source
Returns Consultingwerk.Framework.Collections.CharacterList
The CharacterList with the located file names
Top

PROTECTED CHARACTER GetFieldAttributeValue (JPNode, character)

Purpose: Returns the value of a FIELD attribute
Notes:

Parameters:
poNode org.prorefactor.core.JPNode
The JPNode of the FIELD
pcAttributeName CHARACTER
The Name of the Attribute (Node Type)
Returns CHARACTER
The attribute value (CHARACTER)
Top

PUBLIC Consultingwerk.Framework.Collections.CharacterList ImportTablesFromCodeBlock (longchar, BusinessEntityDatasetController)

Purpose: Imports Temp-Tables from an ABL code block into the model of the
Business Entity Dataset Controller
Notes:

Parameters:
plcCodeBlock LONGCHAR
The code block to inport
poController Consultingwerk.BusinessEntityDesigner.Services.BusinessEntityDatasetController
The BusinessEntityDatasetController instance
Returns Consultingwerk.Framework.Collections.CharacterList
The CharacterList of imported tables
Top

PUBLIC Consultingwerk.Framework.Collections.CharacterList ImportTablesFromFile (character, BusinessEntityDatasetController)

Purpose: Imports Temp-Tables from an ABL source code file into the model of the
Business Entity Dataset Controller
Notes:

Parameters:
pcFile CHARACTER
The filename to import
poController Consultingwerk.BusinessEntityDesigner.Services.BusinessEntityDatasetController
The BusinessEntityDatasetController instance
Returns Consultingwerk.Framework.Collections.CharacterList
The CharacterList of imported tables
Top

PUBLIC Consultingwerk.Framework.Collections.CharacterList ImportTablesFromFile (character, CharacterList, BusinessEntityDatasetController)

Purpose: Imports Temp-Tables from an ABL source code file into the model of the
Business Entity Dataset Controller
Notes:

Parameters:
pcFile CHARACTER
The filename to import
poTempTableList Consultingwerk.Framework.Collections.CharacterList
The optional CharacterList that contains the list of Tables to import
poController Consultingwerk.BusinessEntityDesigner.Services.BusinessEntityDatasetController
The BusinessEntityDatasetController instance
Returns Consultingwerk.Framework.Collections.CharacterList
The CharacterList of imported tables
Top

PUBLIC ImportTablesFromParseUnit (ParseUnit, CharacterList, BusinessEntityDatasetController, CharacterList)

Purpose: Imports Temp-Tables from an ABL source code file into the model of the
Business Entity Dataset Controller
Notes:

Parameters:
poParseUnit org.prorefactor.treeparser.ParseUnit
The reference to the ParseUnit
poTempTableList Consultingwerk.Framework.Collections.CharacterList
The optional CharacterList that contains the list of Tables to import
poController Consultingwerk.BusinessEntityDesigner.Services.BusinessEntityDatasetController
The BusinessEntityDatasetController instance
poImportedTables Consultingwerk.Framework.Collections.CharacterList
OUTPUT The reference to the CharacterList of imported tables
Top

PROTECTED ProcessFieldNode (JPNode, character, integer)

Purpose: Processes a Field Node
Notes:

Parameters:
poNode org.prorefactor.core.JPNode
The JPNode pointing to the FIELD definition
pcTable CHARACTER
The current temp-table name
piIndex INTEGER
The Field index
Top

PROTECTED ProcessIndexNode (JPNode, character, integer)

Purpose: Processes an Index Node
Notes:

Parameters:
poNode org.prorefactor.core.JPNode
The JPNode pointing to the INDEX definition
pcTable CHARACTER
The current temp-table name
piIndex INTEGER
The Index index (sequence)
Top

PROTECTED ProcessSelectedTables (CharacterList, ParseUnit, BusinessEntityDatasetController)

Purpose: Processes the selected Tables from the AST and creates them in the
Business Entity Dataset Controller
Notes:

Parameters:
poTempTables Consultingwerk.Framework.Collections.CharacterList
The ChracterList with the selected temp-tables
poParseUnit org.prorefactor.treeparser.ParseUnit
The reference to the Proparse AST
poController Consultingwerk.BusinessEntityDesigner.Services.BusinessEntityDatasetController
The reference to the BusinessEntityDatasetController
Top

PROTECTED ProcessSelectedTablesHandler (Object, TempTableAstNodeAvailableEventArgs)

Purpose: Event handler for the TempTableAstNodeAvailable event of the
TempTableAstWalker during the processing of selected temp-table names
Notes:

Parameters:
sender Progress.Lang.Object
The object that raised the event
e Consultingwerk.BusinessEntityDesigner.Services.TempTableAstNodeAvailableEventArgs
The TempTabelAstNodeAvailableEventArgs with the data for this event
Top

PUBLIC RefreshTableFromFile (character, dataset)

Purpose: Refreshes a Temp-Table from the include file
Notes:

Parameters:
pcTableName CHARACTER
The temp-table name to refresh
dsBusinessEntity DATASET dsBusinessEntity
The dataset with the current business entity model
Top

PUBLIC RefreshTableFromFile (character, dataset, logical)

Purpose: Refreshes a Temp-Table from the include file
Notes:

Parameters:
pcTableName CHARACTER
The temp-table name to refresh
dsBusinessEntity DATASET dsBusinessEntity
The dataset with the current business entity model
plIncludeFieldsFromNestedIncludes LOGICAL
Controls is fields from include files nested in the temp-tables definition


©2006-2020 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       04.02.2020 23:10:26