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

/* Copyright (c) 2010-2011,2019 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.
File:AreaContext
Author(s):hdaniels
Created:Aug 2010




Method Summary
Options Name Purpose
LOGICAL CanFind (character)
LOGICAL CanFind (integer)
CHARACTER ColumnExpression (character, character, character) /* convert expression for QueryString - unknown = keep as is */
CopyTable (IDataAdminModel)
CopyTable (table, IDataAdminModel)
OpenEdge.DataAdmin.IDataAdminCollection CreateCollection (IDataAdminContext)
OpenEdge.DataAdmin.IDataAdminElement CreateEntity (IRequestInfo)
CreateRow (IArea)
CreateRow (IDataAdminElement) /* if class cast error - the default syserror seems sufficient */
LOGICAL Find (character)
LOGICAL Find (integer)
CHARACTER FindExpression (integer)
CHARACTER GetCreateError (IArea) /* end method. */
CHARACTER GetJoinFields (character)
OpenEdge.DataAdmin.Message.IFetchRequest GetRequest () /** override for serverside join - data source (currently) requires join on number (error: areaname must be mapped to data source ) */
InitChildren ()
InitChildren (IAreaScope)
InitChildren (IContextScope)
HANDLE InitDataset () /* temporary until all sub classes are using createDataset */
InitRow (character)
MergeChanges (ISaveRequest) /** refresh partitions for create */
ReadRow (JSONObject, character) /** override to not import area number @TODO find a better way. (set serialize-hidden?) */
RefreshAreas (handle)
ValidateAreaName (character)
ValidateAreaType (character, character)
ValidateBuffer (handle)
ValidateChildren (handle)
ValidateClusterSize (character, character)
ValidateExtent (character)
ValidateProperty (character, character, character) /** override to validate clustersize and records pr block */
ValidateRecordsPerBlock (character, character)
LOGICAL ValidValue (character, integer)
CHARACTER ValidValueList (character)
CHARACTER ValidValueString (character)
ValueChanged (character, character, character) /** fires after change - validation should have been done */

Constructor Summary
Options Name Purpose
AreaContext ()
AreaContext (IAreaScope)

Property Summary
Options Name Purpose
INTEGER Count
CHARACTER KeyFields
HANDLE TableHandle


Method Detail
Top

LOGICAL CanFind (character)

Parameters:
name CHARACTER
Returns LOGICAL
Top

LOGICAL CanFind (integer)

Parameters:
id INTEGER
Returns LOGICAL
Top

CHARACTER ColumnExpression (character, character, character)

/* convert expression for QueryString - unknown = keep as is
Parameters:
pcColumn CHARACTER
pcOperator CHARACTER
pcValue CHARACTER
Returns CHARACTER
Top

CopyTable (IDataAdminModel)

Parameters:
cntxt OpenEdge.DataAdmin.Binding.IDataAdminModel
Top

CopyTable (table, IDataAdminModel)

Parameters:
copytable TABLE
pCntxt OpenEdge.DataAdmin.Binding.IDataAdminModel
Top

OpenEdge.DataAdmin.IDataAdminCollection CreateCollection (IDataAdminContext)

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 (IArea)

Parameters:
area OpenEdge.DataAdmin.IArea
Top

CreateRow (IDataAdminElement)

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

LOGICAL Find (character)

Parameters:
name CHARACTER
Returns LOGICAL
Top

LOGICAL Find (integer)

Parameters:
id INTEGER
Returns LOGICAL
Top

CHARACTER FindExpression (integer)

Parameters:
i INTEGER
Returns CHARACTER
Top

CHARACTER GetCreateError (IArea)

/* end method.
Parameters:
area OpenEdge.DataAdmin.IArea
Returns CHARACTER
Top

CHARACTER GetJoinFields (character)

Parameters:
parentid CHARACTER
Returns CHARACTER
Top

OpenEdge.DataAdmin.Message.IFetchRequest GetRequest ()

Purpose: override for serverside join - data source (currently) requires join on number (error: areaname must be mapped to data source )
Returns OpenEdge.DataAdmin.Message.IFetchRequest
Top

InitChildren ()

Top

InitChildren (IAreaScope)

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

InitChildren (IContextScope)

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

HANDLE InitDataset ()

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

InitRow (character)

Parameters:
pName CHARACTER
Top

MergeChanges (ISaveRequest)

Purpose: refresh partitions for create
Parameters:
pResponse OpenEdge.DataAdmin.Message.ISaveRequest
Top

ReadRow (JSONObject, character)

Purpose: override to not import area number
@TODO find a better way. (set serialize-hidden?)
Parameters:
json Progress.Json.ObjectModel.JsonObject
pcExceptColumns CHARACTER
Top

RefreshAreas (handle)

Parameters:
pdsChanged HANDLE
Top

ValidateAreaName (character)

Parameters:
pcKey CHARACTER
Top

ValidateAreaType (character, character)

Parameters:
pcKey CHARACTER
pnewvalue CHARACTER
Top

ValidateBuffer (handle)

Parameters:
phArea HANDLE
Top

ValidateChildren (handle)

Parameters:
phArea HANDLE
Top

ValidateClusterSize (character, character)

Parameters:
pcKey CHARACTER
pnewvalue CHARACTER
Top

ValidateExtent (character)

Parameters:
pcArea CHARACTER
Top

ValidateProperty (character, character, character)

Purpose: override to validate clustersize and records pr block
Parameters:
pcfield CHARACTER
poldvalue CHARACTER
pnewvalue CHARACTER
Top

ValidateRecordsPerBlock (character, character)

Parameters:
pcKey CHARACTER
pnewvalue CHARACTER
Top

LOGICAL ValidValue (character, integer)

Parameters:
pccolumn CHARACTER
piValue INTEGER
Returns LOGICAL
Top

CHARACTER ValidValueList (character)

Parameters:
pccolumn CHARACTER
Returns CHARACTER
Top

CHARACTER ValidValueString (character)

Parameters:
pclist CHARACTER
Returns CHARACTER
Top

ValueChanged (character, character, character)

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


Constructor Detail
Top

AreaContext ()

Top

AreaContext (IAreaScope)

Parameters:
pscope OpenEdge.DataAdmin.Binding.Factory.IAreaScope


Property Detail
Top

INTEGER Count

Returns INTEGER
Top

CHARACTER KeyFields

Returns CHARACTER
Top

HANDLE TableHandle

Returns HANDLE


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15