Namespace: Consultingwerk.Windows.TempTableObjectMapping
Class 
TempTableFromTypeFactory Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.Windows.TempTableObjectMapping.ITempTableFromTypeFactory

File:TempTableFactory
Purpose:Reflects into a .NET System.Type and creates a dynamic
temp-table for selected properties of the System.Type
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Thu Dec 18 08:59:53 CET 2014
Notes:SCL-591
http://jira.consultingwerkcloud.com:8090/display/SCL/.NET+Value+object+to+ABL+Temp-Table+mapping



Top Method Summary
Options Name Purpose
# CHARACTER AblDataType (Type) Returns the ABL DataType that should be used to store the values of the property
+ HANDLE CreateTempTable (Type, character, character) Builds an ABL temp-table from a .NET System.Type
+ HANDLE CreateTempTable (Type, character, character, character) Builds an ABL temp-table from a .NET System.Type


Method Detail
Top

PROTECTED CHARACTER AblDataType (Type)

Purpose: Returns the ABL DataType that should be used to store the values of
the property
Notes: Assumes CHARACTER for System.String, not LONGCHAR or BLOB

Parameters:
poType System.Type
The type of the property
Returns CHARACTER
The ABL DataType to use
Top

PUBLIC HANDLE CreateTempTable (Type, character, character)

Purpose: Builds an ABL temp-table from a .NET System.Type
Notes: Defaults to using the short type name as the temp-table name

Parameters:
poType System.Type
The reference to the System.Type to build the temp-table from
pcProperties CHARACTER
The comma delimited list of property specs, supported entries are PropertyName or PropertyName|FieldName or PropertyName|FieldName(ABL DataType)
pcUniqueKeyProperties CHARACTER
The comma delimited list of property names that build the PUK, must be form the list in pcProperties
Returns HANDLE
The handle of the created temp-table
Top

PUBLIC HANDLE CreateTempTable (Type, character, character, character)

Purpose: Builds an ABL temp-table from a .NET System.Type
Notes:

Parameters:
poType System.Type
The reference to the System.Type to build the temp-table from
pcProperties CHARACTER
The comma delimited list of property specs, supported entries are PropertyName or PropertyName|FieldName or PropertyName|FieldName(ABL DataType)
pcUniqueKeyProperties CHARACTER
The comma delimited list of property names that build the PUK, must be form the list in pcProperties
pcTempTableName CHARACTER
The name for the temp-table to create
Returns HANDLE
The handle of the created temp-table


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