Namespace: OpenEdge.DataAdmin.Binding
Class
PartitionPolicyDetailContext
Parent classes:
Inherits: OpenEdge.DataAdmin.Binding.DataAdminContext
Implements: OpenEdge.DataAdmin.Binding.IDataAdminContext, OpenEdge.DataAdmin.Binding.IJsonRowListener, OpenEdge.DataAdmin.Binding.IStreamFieldHandler

/* Copyright (c) 2013,2014 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.
Author(s):hdaniels
Created:Aug 2013




Method Summary
Options Name Purpose
AddDetailValues (JsonObject, table)
AddRowValues (character, JsonObject, table-handle)
CHARACTER AmericanDateString (date)
CHARACTER AmericanNumericString (decimal)
AssertScope ()
LOGICAL CanFind (character)
LOGICAL CanFind (integer)
LOGICAL CheckValue (character, character)
CHARACTER ColumnSource (character)
CopyTable (IDataAdminModel)
CopyTable (table)
CopyTable (table, IRow)
CopyTableForParent (IRow, IDataAdminModel)
OpenEdge.DataAdmin.IDataAdminCollection CreateCollection (IDataAdminContext) /* end method. */
OpenEdge.DataAdmin.IDataAdminElement CreateEntity (IRequestInfo)
CreateRow (character, character)
CreateRow (IDataAdminElement) /* if class cast error - the default syserror seems sufficent */
CreateRow (IPartitionPolicyDetail)
DATE DateFromAmerican (character)
DECIMAL DecimalFromAmerican (character)
LOGICAL Delete (character)
LOGICAL DeserializeRow (handle, log)
LOGICAL Find (character)
LOGICAL Find (integer)
CHARACTER FindExpression (integer)
CHARACTER GetAmericanValue (character, character, character, integer)
CHARACTER GetChildQuery (IRow)
CHARACTER GetCreateError (IPartitionPolicyDetail)
CHARACTER GetJoinFields (character)
CHARACTER GetPolicyFieldDataType (character, integer)
CHARACTER GetPolicyFieldName (character, integer)
INTEGER GetPolicyFieldNumber (character, character, character)
INTEGER GetPolicyNumFields (character)
CHARACTER GetPolicyTableName (character)
CHARACTER GetServerJoinFields (character)
InitChildren ()
InitChildren (IContextScope)
InitChildren (ISchemaScope)
ReadField (JsonObject, handle) /** read a buffer field from json */
RefreshTable (table) /** DataRefreshed from server cannot use copy-temp-table since the primary index is on areanumber */
SerializeRow (handle)
SetTreeOptions (IDataTree) /** checked in data access, seems safer in case this is moved to a client method private void ValidatePath(piKey as int,pnewvalue as char). if pnewvalue <> "" then do: file-info:file-name = pnewvalue. if substring(file-info:file-type,1,1) <> "D" then undo, throw new InvalidPropertyValueError(Name,string(pikey),"Path",pnewvalue). end. if pNewValue = "" then undo, throw new ValidationError("PartitionPolicyField",string(pikey),"Path","cannot be blank. Specify a valid directory name or use period to specify the current directory"). end method. */
UpdatePartitionDefault (character, character, character, character) /* end method. */
UpdatePartitionPolicyName (character, character)
UpdateValue (character, character)
ValueChanged (character, character, character) /** fires after change - validation should have been done */
CHARACTER WriteFieldAssignments (handle, character, integer, handle) /* IStreamFieldHandler writes field assignments - returns list of field exported so the generator knows what to skip . returns blank if no fields written - */
WriteFieldStatements (handle, character, handle) /* IStreamFieldHandler writes field assign statements for cases that cannot be used in assign - StatementFieldNames must return the corresponding list */
WriteValuesAsCode (handle, character, recid, table) /* genereate code for value assignment */

Constructor Summary
Options Name Purpose
PartitionPolicyDetailContext ()
PartitionPolicyDetailContext (ISchemaScope)
PartitionPolicyDetailContext (ISchemaScope, log)

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


Method Detail
Top

AddDetailValues (JsonObject, table)

Parameters:
pjson Progress.Json.ObjectModel.JsonObject
ttPartitionPolicyDetail TABLE
Top

AddRowValues (character, JsonObject, table-handle)

Parameters:
pname CHARACTER
pjson Progress.Json.ObjectModel.JsonObject
h TABLE-HANDLE
Top

CHARACTER AmericanDateString (date)

Parameters:
val DATE
Returns CHARACTER
Top

CHARACTER AmericanNumericString (decimal)

Parameters:
pval DECIMAL
Returns CHARACTER
Top

AssertScope ()

Top

LOGICAL CanFind (character)

Parameters:
pName CHARACTER
Returns LOGICAL
Top

LOGICAL CanFind (integer)

Parameters:
pid INTEGER
Returns LOGICAL
Top

LOGICAL CheckValue (character, character)

Parameters:
val CHARACTER
dt CHARACTER
Returns LOGICAL
Top

CHARACTER ColumnSource (character)

Parameters:
pcColumn CHARACTER
Returns CHARACTER
Top

CopyTable (IDataAdminModel)

Parameters:
cntxt OpenEdge.DataAdmin.Binding.IDataAdminModel
Top

CopyTable (table)

Parameters:
copytable TABLE
Top

CopyTable (table, IRow)

Parameters:
copyTable TABLE
pRow OpenEdge.DataAdmin.Binding.IRow
Top

CopyTableForParent (IRow, IDataAdminModel)

Parameters:
piRow OpenEdge.DataAdmin.Binding.IRow
cntxt OpenEdge.DataAdmin.Binding.IDataAdminModel
Top

OpenEdge.DataAdmin.IDataAdminCollection CreateCollection (IDataAdminContext)

/* end method.
Parameters:
cntxt OpenEdge.DataAdmin.Binding.IDataAdminContext
Returns OpenEdge.DataAdmin.IDataAdminCollection
Top

OpenEdge.DataAdmin.IDataAdminElement CreateEntity (IRequestInfo)

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

CreateRow (character, character)

Parameters:
pcPolicyName CHARACTER
pname CHARACTER
Top

CreateRow (IDataAdminElement)

/* if class cast error - the default syserror seems sufficent
Parameters:
entity OpenEdge.DataAdmin.IDataAdminElement
Top

CreateRow (IPartitionPolicyDetail)

Parameters:
policyDetail OpenEdge.DataAdmin.IPartitionPolicyDetail
Top

DATE DateFromAmerican (character)

Parameters:
pval CHARACTER
Returns DATE
Top

DECIMAL DecimalFromAmerican (character)

Parameters:
pval CHARACTER
Returns DECIMAL
Top

LOGICAL Delete (character)

Parameters:
pName CHARACTER
Returns LOGICAL
Top

LOGICAL DeserializeRow (handle, log)

Parameters:
phStream HANDLE
plReplace LOGICAL
Returns LOGICAL
Top

LOGICAL Find (character)

Parameters:
pName CHARACTER
Returns LOGICAL
Top

LOGICAL Find (integer)

Parameters:
pid INTEGER
Returns LOGICAL
Top

CHARACTER FindExpression (integer)

Parameters:
pid INTEGER
Returns CHARACTER
Top

CHARACTER GetAmericanValue (character, character, character, integer)

Parameters:
pcPolicyName CHARACTER
pctype CHARACTER
pVal CHARACTER
i INTEGER
Returns CHARACTER
Top

CHARACTER GetChildQuery (IRow)

Parameters:
pparent OpenEdge.DataAdmin.Binding.IRow
Returns CHARACTER
Top

CHARACTER GetCreateError (IPartitionPolicyDetail)

Parameters:
newField OpenEdge.DataAdmin.IPartitionPolicyDetail
Returns CHARACTER
Top

CHARACTER GetJoinFields (character)

Parameters:
parentid CHARACTER
Returns CHARACTER
Top

CHARACTER GetPolicyFieldDataType (character, integer)

Parameters:
pcPolicyName CHARACTER
pinum INTEGER
Returns CHARACTER
Top

CHARACTER GetPolicyFieldName (character, integer)

Parameters:
pcPolicyName CHARACTER
pinum INTEGER
Returns CHARACTER
Top

INTEGER GetPolicyFieldNumber (character, character, character)

Parameters:
pcPolicyName CHARACTER
pcTable CHARACTER
pcfield CHARACTER
Returns INTEGER
Top

INTEGER GetPolicyNumFields (character)

Parameters:
pcPolicyName CHARACTER
Returns INTEGER
Top

CHARACTER GetPolicyTableName (character)

Parameters:
pcPolicyName CHARACTER
Returns CHARACTER
Top

CHARACTER GetServerJoinFields (character)

Parameters:
parentid CHARACTER
Returns CHARACTER
Top

InitChildren ()

Top

InitChildren (IContextScope)

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

InitChildren (ISchemaScope)

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

ReadField (JsonObject, handle)

Purpose: read a buffer field from json
Parameters:
pjson Progress.Json.ObjectModel.JsonObject
phfld HANDLE
Top

RefreshTable (table)

Purpose: DataRefreshed from server cannot use copy-temp-table since the primary index
is on areanumber
Parameters:
ttPartitionpolicy TABLE
Top

SerializeRow (handle)

Parameters:
phStream HANDLE
Top

SetTreeOptions (IDataTree)

Purpose: checked in data access, seems safer in case this is moved to a client
method private void ValidatePath(piKey as int,pnewvalue as char).
if pnewvalue <> "" then
do:
file-info:file-name file-name = pnewvalue.
if substring(file-info:file-type,1,1) <> "D" then
undo, throw new InvalidPropertyValueError(Name,string(pikey),"Path",pnewvalue).
end.
if pNewValue = "" then
undo, throw new ValidationError("PartitionPolicyField",string(pikey),"Path","cannot be blank. Specify a valid directory name or use period to specify the current directory").
end method.
Parameters:
tree OpenEdge.DataAdmin.Binding.IDataTree
Top

UpdatePartitionDefault (character, character, character, character)

/* end method.
Parameters:
pcPolicyName CHARACTER
pcfield CHARACTER
pcold CHARACTER
pcnew CHARACTER
Top

UpdatePartitionPolicyName (character, character)

Parameters:
pcOldname CHARACTER
pcNewname CHARACTER
Top

UpdateValue (character, character)

Parameters:
pcOldname CHARACTER
pcNewname CHARACTER
Top

ValueChanged (character, character, character)

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

CHARACTER WriteFieldAssignments (handle, character, integer, handle)

/* IStreamFieldHandler writes field assignments - returns list of field exported so the generator knows what to skip
. returns blank if no fields written -
Parameters:
phstream HANDLE
pcvarname CHARACTER
piAt INTEGER
phbuf HANDLE
Returns CHARACTER
Top

WriteFieldStatements (handle, character, handle)

/* IStreamFieldHandler writes field assign statements for cases that cannot be used in assign
- StatementFieldNames must return the corresponding list
Parameters:
phstream HANDLE
pcvarname CHARACTER
phbuf HANDLE
Top

WriteValuesAsCode (handle, character, recid, table)

/* genereate code for value assignment
Parameters:
phStream HANDLE
pcinstName CHARACTER
prec RECID
ttPartitionPolicyDetail TABLE


Constructor Detail
Top

PartitionPolicyDetailContext ()

Top

PartitionPolicyDetailContext (ISchemaScope)

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

PartitionPolicyDetailContext (ISchemaScope, log)

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


Property Detail
Top

INTEGER Count

Returns INTEGER
Top

CHARACTER KeyFields

Returns CHARACTER
Top

CHARACTER StatementFieldNames

Returns CHARACTER
Top

HANDLE TableHandle

Returns HANDLE


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15