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
# Progress.Json.ObjectModel.JsonObject GetMetaInfoJson (character) Reads a files Temp-Table MetaInfo into a JsonObject
# LOGICAL HasMetaInfo (character) Returns whether the given file contains Temp-Table Meta-Info
+ 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, JsoNObject) Processes a Field Node
# ProcessIndexNode (JPNode, character, integer, JsonObject) 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
# SetValue (handle, JsonObject, character) Sets a fields value from a JsonObject
# SetValues (handle, JsonObject, character) Sets the values of a buffers fields from a JsonObjects properties with the same name
# Consultingwerk.Framework.Collections.CharacterList ShowSelectTablesDialog (CharacterList, CharacterList, BusinessEntityDatasetController) Shows a dialog to allow the user to select tables and indices to import


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.Studio.Proparse.TempTableAstNodeAvailableEventArgs
The TempTableAstNodeAvailableEventArgs 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 Progress.Json.ObjectModel.JsonObject GetMetaInfoJson (character)

Purpose: Reads a files Temp-Table MetaInfo into a JsonObject
Notes:

Parameters:
pcFile CHARACTER
The file from which to read
Returns Progress.Json.ObjectModel.JsonObject
The JsonObject wi the MetaInfo
Top

PROTECTED LOGICAL HasMetaInfo (character)

Purpose: Returns whether the given file contains Temp-Table Meta-Info
Notes:

Parameters:
pcFile CHARACTER
The filename to import
Returns LOGICAL
Whether the file contains Temp-Table Meta-Info
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 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, 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

PROTECTED 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, JsoNObject)

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
poJson Progress.Json.ObjectModel.JsoNObject
MetaInfo JsonObject for fields
Top

PROTECTED ProcessIndexNode (JPNode, character, integer, JsonObject)

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)
poJson Progress.Json.ObjectModel.JsonObject
MetaInfo JsonObject for indices
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 CharacterList 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.Studio.Proparse.TempTableAstNodeAvailableEventArgs
The TempTableAstNodeAvailableEventArgs 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
Top

PROTECTED SetValue (handle, JsonObject, character)

Purpose: Sets a fields value from a JsonObject
Notes: The names of the field needs to match

Parameters:
phField HANDLE
Handle of the fields whose value to set
poJson Progress.Json.ObjectModel.JsonObject
JsonObject from which to read the fields value
pcExcept CHARACTER
List of field names to exclude
Top

PROTECTED SetValues (handle, JsonObject, character)

Purpose: Sets the values of a buffers fields from a JsonObjects properties with the same name
Notes:

Parameters:
phBuffer HANDLE
The handle of the buffer whose fields to set
poJson Progress.Json.ObjectModel.JsonObject
The JsonObject from which to set the fields
pcExclude CHARACTER
List of fields to exclude
Top

PROTECTED Consultingwerk.Framework.Collections.CharacterList ShowSelectTablesDialog (CharacterList, CharacterList, BusinessEntityDatasetController)

Purpose: Shows a dialog to allow the user to select tables and indices to import
Notes:

Parameters:
poTempTableList Consultingwerk.Framework.Collections.CharacterList
The list of temp-tables to import
poTempTables Consultingwerk.Framework.Collections.CharacterList
The list of temp-tables in the import file
poController Consultingwerk.BusinessEntityDesigner.Services.BusinessEntityDatasetController
The BusinessEntityDatasetController instance
Returns Consultingwerk.Framework.Collections.CharacterList
The list of temp-tables selected to be imported


ProDataset Detail

ProDataset dsBusinessEntity

Member tables: eBusinessEntity, eDataRelation, eDataRelationProperties, eTable, eField, eFieldProperties, eIndex, eIndexProperties, eTableProperties, eBusinessEntityProperties


Temp-Table Detail

Temp-Table eBusinessEntity

Defined in:

Temp-Table eBusinessEntityProperties

Defined in:

Temp-Table eDataRelation

Defined in:

Temp-Table eDataRelationProperties

Defined in:

Temp-Table eField

Defined in:

Temp-Table eFieldProperties

Defined in:

Temp-Table eIndex

Defined in:

Temp-Table eIndexProperties

Defined in:

Temp-Table eTable

Defined in:

Temp-Table eTableProperties

Defined in:


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 12:57:19