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
Supports the SmartRepositoryService custom log entry type



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
+ GetRepositoryCacheTables (GetAttributesForEnum, CharacterList, handle) Returns a dataset handle that contains the cache temp-tables for the given object types

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


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
Top

PUBLIC GetRepositoryCacheTables (GetAttributesForEnum, CharacterList, handle)

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
phDataset HANDLE
The dataset handle to add the cache temp-tables for the given object types to


Constructor Detail
Top

PUBLIC RepositoryCacheTableFactory ()

Purpose: Constructor for the RepositoryCacheTableFactory class
Notes:



©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       22.12.2024 21:38:06