Namespace: Consultingwerk.SmartUnit.OERA.MockDataAccess
Class 
MockDataAccessFactory Copy to Clipboard
Parent classes:
Inherits: Consultingwerk.OERA.DataAccessFactory
Implements: Consultingwerk.OERA.IDataAccessFactory, Consultingwerk.SmartUnit.OERA.MockDataAccess.IMockDataAccessFactoryLogging

File:MockDataAccessFactory
Purpose:Generic Factory for Mock Data Access implementations
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Mon Nov 27 13:53:59 CET 2017
Notes:[
{
"DataAccess": "Consultingwerk.SmartComponentsDemo.OERA.Sports2000.CustomerDataAccess",
"Data": "Test/Customer.xml",
"Mock": "Consultingwerk.Tests.CustomerDataAccessMock",
"Excludes":
{
"eCustomer": "Flags"
}
},
{
"DataAccess": "Consultingwerk.SmartComponentsDemo.OERA.Sports2000.SalesrepDataAccess",
"Data": "Test/Salesrep.xml",
"Mock": "Consultingwerk.Tests.CustomerDataAccessMock"
}
]



Top Method Summary
Options Name Purpose
+ HANDLE GetActiveMocks () Returns the temp-table with the active mocks
+ Consultingwerk.OERA.IDataAccess GetDataAccessObject (character, handle) Returns a reference to an instance of the Data Access
Overrides Consultingwerk.OERA.DataAccessFactory:GetDataAccessObject (character, handle)
+ InitializeFromFile (character) Initializes and registers a MockDataAccessFactoryInstance from a JSON configuration file
+ InitializeFromFile (character, character) Initializes and registers a MockDataAccessFactoryInstance from a JSON configuration file
+ InitializeFromFile (character, character, character) Initializes and registers a MockDataAccessFactoryInstance from a JSON configuration file
+ InitializeFromFile (character, character, character, character) Initializes and registers a MockDataAccessFactoryInstance from a JSON configuration file
+ InitializeFromFile (character, character, character, character, character) Initializes and registers a MockDataAccessFactoryInstance from a JSON configuration file
+ InitializeFromFile (character[]) Initializes and registers a MockDataAccessFactoryInstance from a JSON configuration file
# Consultingwerk.OERA.IDataAccess InitializeMockDataAccess (character, handle) Initializes and returns an instance of a Mock Data Access
+ LoadConfiguration (character) Initializes the configuration from a JSON file
+ LoadConfiguration (character[]) Initializes the configuration from a JSON file
# LoadConfiguration (JsonArray) Initializes the configuration from a JSON Array
# LoadConfiguration (JsonObject) Initializes the configuration from a JSON Object
+ Shutdown () Shut the MockDataAccessFactory down

Top Constructor Summary
Options Name Purpose
+ MockDataAccessFactory (character) Constructor for the MockDataAccessFactory class
+ MockDataAccessFactory (character, character) Constructor for the MockDataAccessFactory class
+ MockDataAccessFactory (character, character, character) Constructor for the MockDataAccessFactory class
+ MockDataAccessFactory (character, character, character, character) Constructor for the MockDataAccessFactory class
+ MockDataAccessFactory (character, character, character, character, character) Constructor for the MockDataAccessFactory class
+ MockDataAccessFactory (character[]) Constructor for the MockDataAccessFactory class
+ MockDataAccessFactory (JsonArray) Constructor for the MockDataAccessFactory class


Method Detail
Top

PUBLIC HANDLE GetActiveMocks ()

Purpose: Returns the temp-table with the active mocks
Notes:

Returns HANDLE
Handle of Temp-Table from Consultingwerk/SmartUnit/OERA/MockDataAccess/ttDataAccess.i
Top

PUBLIC Consultingwerk.OERA.IDataAccess GetDataAccessObject (character, handle)

Overrides Consultingwerk.OERA.DataAccessFactory:GetDataAccessObject (character, handle)
Purpose: Returns a reference to an instance of the Data Access
Notes:

Parameters:
pcDataAccessName CHARACTER
The name of the Data Access object as known to the Business Entity
phDatasetHandle HANDLE
The handle of the Dataset that the Data Access is expected to bind to
Returns Consultingwerk.OERA.IDataAccess
The reference to the Data Access class
Top

PUBLIC InitializeFromFile (character)

Purpose: Initializes and registers a MockDataAccessFactoryInstance from
a JSON configuration file
Notes:

Parameters:
pcFileName CHARACTER
The name of the configuration file
Top

PUBLIC InitializeFromFile (character, character)

Purpose: Initializes and registers a MockDataAccessFactoryInstance from
a JSON configuration file
Notes:

Parameters:
pcFileName1 CHARACTER
The name of the configuration file
pcFileName2 CHARACTER
The name of the configuration file
Top

PUBLIC InitializeFromFile (character, character, character)

Purpose: Initializes and registers a MockDataAccessFactoryInstance from
a JSON configuration file
Notes:

Parameters:
pcFileName1 CHARACTER
The name of the configuration file
pcFileName2 CHARACTER
The name of the configuration file
pcFileName3 CHARACTER
The name of the configuration file
Top

PUBLIC InitializeFromFile (character, character, character, character)

Purpose: Initializes and registers a MockDataAccessFactoryInstance from
a JSON configuration file
Notes:

Parameters:
pcFileName1 CHARACTER
The name of the configuration file
pcFileName2 CHARACTER
The name of the configuration file
pcFileName3 CHARACTER
The name of the configuration file
pcFileName4 CHARACTER
The name of the configuration file
Top

PUBLIC InitializeFromFile (character, character, character, character, character)

Purpose: Initializes and registers a MockDataAccessFactoryInstance from
a JSON configuration file
Notes:

Parameters:
pcFileName1 CHARACTER
The name of the configuration file
pcFileName2 CHARACTER
The name of the configuration file
pcFileName3 CHARACTER
The name of the configuration file
pcFileName4 CHARACTER
The name of the configuration file
pcFileName5 CHARACTER
The name of the configuration file
Top

PUBLIC InitializeFromFile (character[])

Purpose: Initializes and registers a MockDataAccessFactoryInstance from
a JSON configuration file
Notes:

Parameters:
pcFileNames CHARACTER
An Array of File Names of configuration files to load
Top

PROTECTED Consultingwerk.OERA.IDataAccess InitializeMockDataAccess (character, handle)

Purpose: Initializes and returns an instance of a Mock Data Access
Notes:

Parameters:
pcDataAccessName CHARACTER
The name of the Data Access object as known to the Business Entity
phDatasetHandle HANDLE
The handle of the Dataset that the Data Access is expected to bind to
Returns Consultingwerk.OERA.IDataAccess
The reference to the Data Access class
Top

PUBLIC LoadConfiguration (character)

Purpose: Initializes the configuration from a JSON file
Notes:

Parameters:
pcConfigFileName CHARACTER
The name of the JSON config file
Top

PUBLIC LoadConfiguration (character[])

Purpose: Initializes the configuration from a JSON file
Notes:

Parameters:
pcConfigFileName CHARACTER
An Array of names of JSON config files
Top

PROTECTED LoadConfiguration (JsonArray)

Purpose: Initializes the configuration from a JSON Array
Notes:

Parameters:
poJsonArray Progress.Json.ObjectModel.JsonArray
The JSON array with the Mock configuration
Top

PROTECTED LoadConfiguration (JsonObject)

Purpose: Initializes the configuration from a JSON Object
Notes:

Parameters:
poJsonObject Progress.Json.ObjectModel.JsonObject
The JSON object with the Mock configuration
Top

PUBLIC Shutdown ()

Purpose: Shut the MockDataAccessFactory down
Notes: Deregisters the IDataAccessFactory Service and stops all
business services



Constructor Detail
Top

PUBLIC MockDataAccessFactory (character)

Purpose: Constructor for the MockDataAccessFactory class
Notes:

Parameters:
pcConfigFileName CHARACTER
The name of the JSON config file
Top

PUBLIC MockDataAccessFactory (character, character)

Purpose: Constructor for the MockDataAccessFactory class
Notes:

Parameters:
pcConfigFileName1 CHARACTER
The name of the JSON config file
pcConfigFileName2 CHARACTER
The name of the JSON config file
Top

PUBLIC MockDataAccessFactory (character, character, character)

Purpose: Constructor for the MockDataAccessFactory class
Notes:

Parameters:
pcConfigFileName1 CHARACTER
The name of the JSON config file
pcConfigFileName2 CHARACTER
The name of the JSON config file
pcConfigFileName3 CHARACTER
The name of the JSON config file
Top

PUBLIC MockDataAccessFactory (character, character, character, character)

Purpose: Constructor for the MockDataAccessFactory class
Notes:

Parameters:
pcConfigFileName1 CHARACTER
The name of the JSON config file
pcConfigFileName2 CHARACTER
The name of the JSON config file
pcConfigFileName3 CHARACTER
The name of the JSON config file
pcConfigFileName4 CHARACTER
The name of the JSON config file
Top

PUBLIC MockDataAccessFactory (character, character, character, character, character)

Purpose: Constructor for the MockDataAccessFactory class
Notes:

Parameters:
pcConfigFileName1 CHARACTER
The name of the JSON config file
pcConfigFileName2 CHARACTER
The name of the JSON config file
pcConfigFileName3 CHARACTER
The name of the JSON config file
pcConfigFileName4 CHARACTER
The name of the JSON config file
pcConfigFileName5 CHARACTER
The name of the JSON config file
Top

PUBLIC MockDataAccessFactory (character[])

Purpose: Constructor for the MockDataAccessFactory class
Notes:

Parameters:
pcConfigFileName CHARACTER
An Array of names of JSON config files
Top

PUBLIC MockDataAccessFactory (JsonArray)

Purpose: Constructor for the MockDataAccessFactory class
Notes:

Parameters:
poJsonArray Progress.Json.ObjectModel.JsonArray
The JSON array with the configuration data


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 06:15:08