Namespace: Consultingwerk.OERA.LegacyAdapter
Class 
LegacyServiceAdapter Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:LegacyServiceAdapter
Purpose:A single class - with no dependencies to any SmartComponent Library
class (except some useful error types)
In the first version we will support:
FetchData (Business Entity Name, Tables, Query String), returning all records (no batching)
SaveChanges
Author(s):Marko Rüterbories / Consultingwerk Ltd.
Created:Fri Dec 02 08:21:37 CET 2016



Top Method Summary
Options Name Purpose
- InitContextDataset () Initializes the Context Dataset with local settings
+ RetrieveData (character, character, character, dataset-handle) Reads data from the Backend
+ SubmitData (character, dataset-handle) Saves modified (Create, Update, Delete) data to a Business Entity

Top Constructor Summary
Options Name Purpose
+ LegacyServiceAdapter (handle) Constructor for the LegacyServiceAdapter class

Top Property Summary
Options Name Purpose
+ HANDLE ContextDatasetHandle
+ CHARACTER ServiceInterfacePath


Method Detail
Top

PRIVATE InitContextDataset ()

Purpose: Initializes the Context Dataset with local settings
Notes:

Top

PUBLIC RetrieveData (character, character, character, dataset-handle)

Purpose: Reads data from the Backend
Notes:

Parameters:
pcEntityName CHARACTER
The name of the business entity
pcTables CHARACTER
Comma delimeted list of tables to be populated ("" or "*" request all tables)
pcQueryString CHARACTER
Query statements for each requested table (CHR (1) seperated)
phDataset DATASET-HANDLE
OUTPUT DATASET-HANDLE The resulting dataset
Top

PUBLIC SubmitData (character, dataset-handle)

Purpose: Saves modified (Create, Update, Delete) data to a Business Entity
Notes:

Parameters:
pcEntityName CHARACTER
The name of the business entity
hChangesDataset DATASET-HANDLE
INPUT-OUTPUT DATASET-HANDLE The dataset with the modifications to the submitted


Constructor Detail
Top

PUBLIC LegacyServiceAdapter (handle)

Purpose: Constructor for the LegacyServiceAdapter class
Notes:

Parameters:
phAppServerConnection HANDLE
Handle to a connected AppServer


Property Detail
Top

PUBLIC HANDLE ContextDatasetHandle


Returns HANDLE
Top

PUBLIC CHARACTER ServiceInterfacePath


Returns CHARACTER


Temp-Table Detail


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 05:52:48