Namespace: Consultingwerk.SmartFramework.Repository.Tools
Class 
RepositoryObjectImporter Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:RepositoryObjectImporter
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Mon Jan 02 11:23:37 CET 2017



Top Method Summary
Options Name Purpose
+ CHARACTER LoadRepositoryObject (character, logical, IFlagConflictsHandler) Loads an SmartObjectMaster and related data from a .smartrepo file
+ LoadRepositoryObject (handle, logical) Loads an SmartObjectMaster and related data from a .smartrepo file
+ ReadDatasetFromXml (handle, handle) Reads the Dataset
# SynchronizeData (handle, handle, character) Synchronizes the records in the source and target buffer

Top Property Summary
Options Name Purpose
+ LOGICAL UpdateLastImportDate


Method Detail
Top

PUBLIC CHARACTER LoadRepositoryObject (character, logical, IFlagConflictsHandler)

Purpose: Loads an SmartObjectMaster and related data from a .smartrepo file
Notes:

Parameters:
pcFileName CHARACTER
The name of the .smartrepo file to import
plSetModifiedStatus LOGICAL
Logical value indicating if the imported object should be set as modified
poFlagConflictsHandler Consultingwerk.SmartFramework.Repository.Tools.IFlagConflictsHandler
Object reference that returns if conflicting imports should be flagged as pending merges
Returns CHARACTER
The GUID of the imported repository object
Top

PUBLIC LoadRepositoryObject (handle, logical)

Purpose: Loads an SmartObjectMaster and related data from a .smartrepo file
Notes:

Parameters:
phDataset HANDLE
The handle of the ProDataset to import from
plSetModifiedStatus LOGICAL
Logical value indicating if the imported object should be set as modified
Top

PUBLIC ReadDatasetFromXml (handle, handle)

Purpose: Reads the Dataset
Notes:

Parameters:
phDataset HANDLE
The ProDataset to import into
phXmlDocument HANDLE
The XML Document to the data
Top

PROTECTED SynchronizeData (handle, handle, character)

Purpose: Synchronizes the records in the source and target buffer
Notes:

Parameters:
phSourceBuffer HANDLE
The handle of the source buffer (from the .smartrepo file)
phTargetBuffer HANDLE
The handle of the target buffer (current repository data)
pcKeyField CHARACTER
The name of the primary unique key field of the buffer


Property Detail
Top

PUBLIC LOGICAL UpdateLastImportDate


Returns LOGICAL


Temp-Table Detail


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