Namespace: Consultingwerk.SmartFramework.Repository.Class
Class 
RepositoryCacheTableFactory Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.SmartFramework.Repository.Class.IRepositoryCacheTableFactory

File:RepositoryCacheTableFactory
Purpose:Services that generates the repository cache temp-tables
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Fri Mar 25 22:37:40 CET 2016
Notes:Only returns attributes with the AppliesAtRuntime flag
set to true
Uses direct database access for the AttributeValue table



Top Method Summary
Options Name Purpose
# AddFieldsFromObjectType (character, handle, character, GetAttributesForEnum) Adds the field from the given object type to the attribute temp-table
# CreateCacheForObjectType (character, GetAttributesForEnum) Creates the attribute cache temp-table for the given object type
+ HANDLE GetRepositoryCacheTables (GetAttributesForEnum, CharacterList) Returns a dataset handle that contains the cache temp-tables for the given object types


Method Detail
Top

PROTECTED AddFieldsFromObjectType (character, handle, character, GetAttributesForEnum)

Purpose: Adds the field from the given object type to the attribute temp-table
Notes: Uses direct database access for the attribute value records

Parameters:
pcObjectTypeGuid CHARACTER
The GUID of the object type to add fields from
phTable HANDLE
The handle of the temp-table to add fields to
pcFieldNames CHARACTER
The comma-delimited list of field names that have already been added to the temp-table
poAttributesFrom Consultingwerk.SmartFramework.Repository.Class.GetAttributesForEnum
The GetAttributesForEnum indicating if attributes should be added for runtime or design
Top

PROTECTED CreateCacheForObjectType (character, GetAttributesForEnum)

Purpose: Creates the attribute cache temp-table for the given object type
Notes:

Parameters:
pcObjectType CHARACTER
The object type to create the attribute cache temp-table for
poAttributesFrom Consultingwerk.SmartFramework.Repository.Class.GetAttributesForEnum
The GetAttributesForEnum indicating if attributes should be added for runtime or design
Top

PUBLIC HANDLE GetRepositoryCacheTables (GetAttributesForEnum, CharacterList)

Purpose: Returns a dataset handle that contains the cache temp-tables for the
given object types
Notes: The caller is responsible for deleting the returned Dataset

Parameters:
poAttributesFrom Consultingwerk.SmartFramework.Repository.Class.GetAttributesForEnum
The GetAttributesForEnum indicating if attributes should be added for runtime or design
poParameter Consultingwerk.Framework.Collections.CharacterList
The CharacterList with the names or guids of the object types for this call
Returns HANDLE
The dataset handle that contains the cache temp-tables for the given object types


©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:38:36