Namespace: OpenEdge.DataAdmin.Binding
Class
CdcTablePolicyContext
Parent classes:
Inherits: OpenEdge.DataAdmin.Binding.DataAdminContext
Implements: OpenEdge.DataAdmin.Binding.IDataAdminContext

/* Copyright (c) 2015-2018 by progress Software Corporation
/*
/* all rights reserved. no part of this program or document
/* may be reproduced in any form or by any means without
/* permission in writing from progress Software Corporation.
Purpose:CDC Context/Model
Author(s):mkondra
Created:Wed Nov 18 2015
/* *********************************************************




Method Summary
Options Name Purpose
LOGICAL CanFind (character)
ConvertTokensToSubstitute (character, character, character)
CopyTable (IDataAdminModel)
CopyTable (table)
OpenEdge.DataAdmin.IDataAdminCollection CreateCollection (IDataAdminContext)
OpenEdge.DataAdmin.IDataAdminElement CreateEntity (IRequestInfo)
OpenEdge.DataAdmin.Message.IFetchRequest CreatePartitionRefreshRequest (character)
CreateRow (ICdcTablePolicy)
CreateRow (IDataAdminElement) /* the default syserror has all info */
DataRefreshed (IFetchResponse)
DeletePartitionAfterQuery ()
LOGICAL DeserializeRow (handle, log)
LOGICAL Fetch (character)
CHARACTER FetchTableName (character)
FillNewFieldPolicies (character) /* /* detail has different join on server */ method protected override handle GetRequestDataset(): /* way too much data to load up front - just load the fields */ return CreateServerDataset(""). /* final - calls createDataset true */ end method. */
FillNewFieldPolicies (character, character) /* fill details from data - generate name from tokenized template @param - policy name @param pcTemplate - see description/format in IPartitionPolicy:AddDetailsFromData(template) */
FillNewFieldPolicies (character, character, character) /* fill details from data - generate name using substitute base and substitute argstemplate @param - policy name @param pcSubstituteBase optional base template for detail name to be used in ABL substitute @param pcSubstituteArgs optional args to be used in ABL substitute for detail name see substitute param description/format in IPartitionPolicy:AddDetailsFromData(pcSubstituteBase,pcSubstituteArgs) */
FillNewFieldPolicies (IFetchRequest)
LOGICAL Find (character)
CHARACTER FindExpression (character)
CHARACTER GetCreateError (ICdcTablePolicy)
CHARACTER GetJoinFields (character)
OpenEdge.DataAdmin.Binding.IDataAdminModel GetNamedChild (character) /* support many-to-many to fields (tenants as child) */
OpenEdge.DataAdmin.Message.IFetchRequest GetNewFieldPolicyRequest (character, character, character) /* get request for details from data @param - policy name @param pcSubstituteBase optional template for detail name to be used in ABL substitute @param pcSubstituteArgs optional args to be used in ABL substitute for detail name Note: if substitute params not passed we check if a template is imported from json and convert it into substitute params */
HANDLE GetQueryHandles (character)
InitChildren ()
InitChildren (IContextScope)
InitChildren (ISchemaScope)
HANDLE InitDataset () /* temporary until all sub classes are using createDataset */
MergeChanges (ISaveRequest) /* refresh tables with policyname */
ReadRow (JsonObject, character) /*overide to read DetailNameTemplate which is hidden (and not persisted - only used in adddetailsfromdata)*/
LOGICAL RefreshTables (handle)
SerializeRow (handle)
SetTreeOptions (IDataTree)
ValidateBuffer (handle)
ValidatePolicy (ICdcTablePolicy)
ValueChanged (character, character, character) /** fires after change - validation should have been done */

Constructor Summary
Options Name Purpose
CdcTablePolicyContext ()
CdcTablePolicyContext (ISchemaScope)

Property Summary
Options Name Purpose
INTEGER Count
CHARACTER CreateReadOnlyError
CHARACTER KeyFields
HANDLE TableHandle


Method Detail
Top

LOGICAL CanFind (character)

Parameters:
name CHARACTER
Returns LOGICAL
Top

ConvertTokensToSubstitute (character, character, character)

Parameters:
pctemplate CHARACTER
pcresult CHARACTER
pcTokens CHARACTER
Top

CopyTable (IDataAdminModel)

Parameters:
cntxt OpenEdge.DataAdmin.Binding.IDataAdminModel
Top

CopyTable (table)

Parameters:
copytable TABLE
Top

OpenEdge.DataAdmin.IDataAdminCollection CreateCollection (IDataAdminContext)

Parameters:
cntxt OpenEdge.DataAdmin.Binding.IDataAdminContext
Returns OpenEdge.DataAdmin.IDataAdminCollection
Top

OpenEdge.DataAdmin.IDataAdminElement CreateEntity (IRequestInfo)

Parameters:
req OpenEdge.DataAdmin.IRequestInfo
Returns OpenEdge.DataAdmin.IDataAdminElement
Top

OpenEdge.DataAdmin.Message.IFetchRequest CreatePartitionRefreshRequest (character)

Parameters:
pcGroup CHARACTER
Returns OpenEdge.DataAdmin.Message.IFetchRequest
Top

CreateRow (ICdcTablePolicy)

Parameters:
policy OpenEdge.DataAdmin.ICdcTablePolicy
Top

CreateRow (IDataAdminElement)

/* the default syserror has all info
Parameters:
entity OpenEdge.DataAdmin.IDataAdminElement
Top

DataRefreshed (IFetchResponse)

Parameters:
presponse OpenEdge.DataAdmin.Message.IFetchResponse
Top

DeletePartitionAfterQuery ()

Top

LOGICAL DeserializeRow (handle, log)

Parameters:
phStream HANDLE
plReplace LOGICAL
Returns LOGICAL
Top

LOGICAL Fetch (character)

Parameters:
pCdcPolicyName CHARACTER
Returns LOGICAL
Top

CHARACTER FetchTableName (character)

Parameters:
pCdcPolicyName CHARACTER
Returns CHARACTER
Top

FillNewFieldPolicies (character)

/*
/* detail has different join on server
method protected override handle GetRequestDataset():
/* way too much data to load up front - just load the fields
return CreateServerDataset(""). /* final - calls createDataset true
end method.
Parameters:
pcPolicyname CHARACTER
Top

FillNewFieldPolicies (character, character)

/* fill details from data - generate name from tokenized template
Parameters:
pcPolicyname CHARACTER
pcTemplate CHARACTER
Top

FillNewFieldPolicies (character, character, character)

/* fill details from data - generate name using substitute base and substitute argstemplate
see substitute param description/format in IPartitionPolicy:AddDetailsFromData(pcSubstituteBase,pcSubstituteArgs)
Parameters:
pcPolicyname CHARACTER
pcSubstituteBase CHARACTER
pcSubstituteArgs CHARACTER
Top

FillNewFieldPolicies (IFetchRequest)

Parameters:
request OpenEdge.DataAdmin.Message.IFetchRequest
Top

LOGICAL Find (character)

Parameters:
name CHARACTER
Returns LOGICAL
Top

CHARACTER FindExpression (character)

Parameters:
c CHARACTER
Returns CHARACTER
Top

CHARACTER GetCreateError (ICdcTablePolicy)

Parameters:
policy OpenEdge.DataAdmin.ICdcTablePolicy
Returns CHARACTER
Top

CHARACTER GetJoinFields (character)

Parameters:
parentid CHARACTER
Returns CHARACTER
Top

OpenEdge.DataAdmin.Binding.IDataAdminModel GetNamedChild (character)

/* support many-to-many to fields (tenants as child)
Parameters:
pname CHARACTER
Returns OpenEdge.DataAdmin.Binding.IDataAdminModel
Top

OpenEdge.DataAdmin.Message.IFetchRequest GetNewFieldPolicyRequest (character, character, character)

/* get request for details from data
Note: if substitute params not passed we check if a template is imported from json and
convert it into substitute params
Parameters:
pcPolicyname CHARACTER
pcSubstituteBase CHARACTER
pcSubstituteArgs CHARACTER
Returns OpenEdge.DataAdmin.Message.IFetchRequest
Top

HANDLE GetQueryHandles (character)

Parameters:
pcParent CHARACTER
Returns HANDLE
Top

InitChildren ()

Top

InitChildren (IContextScope)

Parameters:
pscope OpenEdge.DataAdmin.Binding.Factory.IContextScope
Top

InitChildren (ISchemaScope)

Parameters:
pscope OpenEdge.DataAdmin.Binding.Factory.ISchemaScope
Top

HANDLE InitDataset ()

/* temporary until all sub classes are using createDataset
Returns HANDLE
Top

MergeChanges (ISaveRequest)

/* refresh tables with policyname
Parameters:
pResponse OpenEdge.DataAdmin.Message.ISaveRequest
Top

ReadRow (JsonObject, character)

/*overide to read DetailNameTemplate which is hidden (and not persisted - only used in adddetailsfromdata)
Parameters:
pjson Progress.Json.ObjectModel.JsonObject
pcExceptColumns CHARACTER
Top

LOGICAL RefreshTables (handle)

Parameters:
pdsChanged HANDLE
Returns LOGICAL
Top

SerializeRow (handle)

Parameters:
phStream HANDLE
Top

SetTreeOptions (IDataTree)

Parameters:
tree OpenEdge.DataAdmin.Binding.IDataTree
Top

ValidateBuffer (handle)

Parameters:
phPolicy HANDLE
Top

ValidatePolicy (ICdcTablePolicy)

Parameters:
policy OpenEdge.DataAdmin.ICdcTablePolicy
Top

ValueChanged (character, character, character)

Purpose: fires after change - validation should have been done
Parameters:
pFieldName CHARACTER
pcOldValue CHARACTER
pNewValue CHARACTER


Constructor Detail
Top

CdcTablePolicyContext ()

Top

CdcTablePolicyContext (ISchemaScope)

Parameters:
pScope OpenEdge.DataAdmin.Binding.Factory.ISchemaScope


Property Detail
Top

INTEGER Count

Returns INTEGER
Top

CHARACTER CreateReadOnlyError

Returns CHARACTER
Top

CHARACTER KeyFields

Returns CHARACTER
Top

HANDLE TableHandle

Returns HANDLE


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15