Namespace: Consultingwerk.Framework.RepositoryServices.Dynamics
Class 
SimpleDynamicsRepositoryService Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.Framework.RepositoryServices.IRepositoryService

File:SimpleDynamicsRepositoryService
Purpose:Simplified access to objects from then Dynamcis repository
without access to the repository managers
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Tue Oct 25 10:51:21 CEST 2011
/*EOF



Top Method Summary
Options Name Purpose
# AddFieldsForClass (character, handle) Adds the attributes of the given class to the attribute temp-table
+ CHARACTER ClassChildren (character) Returns a list of class names that extend the given base class (including the given class)
+ GetEmptyObjectStructure (character, dataset-handle) Returns the repository structure for objects of the given types
# DECIMAL GetNextObj () To return the next available unique object number - used in create triggers.
+ GetObjectByName (character, dataset-handle) Returns the repository data for the named object into the given ProDataset
# GetObjectByName (character, character, dataset-handle) Returns the repository data for the named object into the given ProDataset
+ GetObjectByName (character, dataset-handle) Returns the repository data for the named object
+ GetObjectInstanceByName (character, character, dataset-handle) Returns the repository data for the named object instance into the given ProDataset
+ StoreObject (logical, dataset-handle) Stores the repository data for the named object
# HANDLE TempTableForRepositoryClass (character) Returns a tmep-table with the schema for the given class name


Method Detail
Top

PROTECTED AddFieldsForClass (character, handle)

Purpose: Adds the attributes of the given class to the attribute temp-table
Notes: One field per Attribute

Parameters:
pcClassName CHARACTER
The name of the repository class
phClassAttributeTempTable HANDLE
The HANDLE of the unprepared temp-table to receive the fields
Top

PUBLIC CHARACTER ClassChildren (character)

Purpose: Returns a list of class names that extend the given base class
(including the given class)
Notes:

Parameters:
pcObjectType CHARACTER
The base class name
Returns CHARACTER
Comma-delimited list of class names inheriting from the base class
Top

PUBLIC GetEmptyObjectStructure (character, dataset-handle)

Purpose: Returns the repository structure for objects of the given types
Notes: Supports pcObjectType as a comma delimited list of object types

Parameters:
pcObjectType CHARACTER
The object types to return the object structure for
phObjectDataset DATASET-HANDLE
OUTPUT DATASET-HANDLE containing the an empty temp-table with a single field per object attribute
Top

PROTECTED DECIMAL GetNextObj ()

Purpose: To return the next available unique object number - used in create
triggers.
Notes:

Returns DECIMAL
The next available unique object number
Top

PUBLIC GetObjectByName (character, dataset-handle)

Purpose: Returns the repository data for the named object into the given
ProDataset
Notes:

Parameters:
pcObjectName CHARACTER
The object to return the repository definition for
phObjectDataset DATASET-HANDLE
OUTPUT DATASET-HANDLE containing the repository definition of the given object
Top

PROTECTED GetObjectByName (character, character, dataset-handle)

Purpose: Returns the repository data for the named object into the given
ProDataset
Notes:

Parameters:
pcObjectName CHARACTER
The object to return the repository definition for
pcObjectInstanceName CHARACTER
The value to assign to the object instnace name field
phObjectDataset DATASET-HANDLE
OUTPUT DATASET-HANDLE containing the repository definition of the given object
Top

PUBLIC GetObjectByName (character, dataset-handle)

Purpose: Returns the repository data for the named object
Notes:

Parameters:
pcObjectName CHARACTER
The object to return the repository definition for
phObjectDataset DATASET-HANDLE
OUTPUT DATASET-HANDLE containing the repository definition of the given object
Top

PUBLIC GetObjectInstanceByName (character, character, dataset-handle)

Purpose: Returns the repository data for the named object instance into the
given ProDataset
Notes:

Parameters:
pcContainerObjectName CHARACTER
The object to return the repository definition for
pcInstanceName CHARACTER
The name of the object instance
phObjectDataset DATASET-HANDLE
OUTPUT DATASET-HANDLE containing the repository definition of the given object
Top

PUBLIC StoreObject (logical, dataset-handle)

Purpose: Stores the repository data for the named object
Notes:

Parameters:
plNew LOGICAL
True for new objects, false for existing objects
phObjectDataset DATASET-HANDLE
DATASET-HANDLE containing the repository definition of the given object
Top

PROTECTED HANDLE TempTableForRepositoryClass (character)

Purpose: Returns a tmep-table with the schema for the given class name
Notes:

Parameters:
pcClassName CHARACTER
The name of the repository class
Returns HANDLE
The HANDLE of the dynamic temp-table containing the object schema


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