Namespace: OpenEdge.DataAdmin
Class
Partition
Parent classes:
Progress.Lang.Object

Inherits: Progress.Lang.Object
Implements: IPartition, IDataAdminElement, IDataAdminSerializable

/* Copyright (c) 2010-2012 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:Partition
Author(s):hdaniels
Created:Tue Jun 22 23:30:48 EDT 2010




Method Summary
Options Name Purpose
LOGICAL Allocate () /* method private character GetKeyWhere(phHandle as handle): define variable cKeyFields as character no-undo. define variable iField as integer no-undo. define variable cField as character no-undo. define variable cKeyWhere as character no-undo. if valid-handle(phHandle) then do iField = 1 to num-entries(Context:KeyFields): assign cField = entry(iField,Context:KeyFields) cField = entry(num-entries(cField,'.'),cField,'.') cKeyWhere = cKeyWhere + (if iField > 1 then ' and ' else '') + phHandle:name + '.' + cField + ' = ' + quoter(phHandle:buffer-field(cField):buffer-value,"'":U). end. return cKeyWhere. end method. */
Attach (IDataAdminContext)
LOGICAL CanAttach (IDataAdminContext)
LOGICAL Equals (Object)
Export ()
Export (character)
ExportAsProcedure (character)
ExportAsProcedure (character, character)
ExportTree (character)
ExportTree (character, character)
Progress.Json.ObjectModel.JsonObject GetJSONExport (IContextTree) /* optional call back from context tree. called when parse is complete override to return json to export instead of dataset returns unknown to use standard dataset. write-json */
CHARACTER GetKeyValues ()
CHARACTER GetName ()
CHARACTER GetName (handle)
Import (character)
ImportTree (character)
NewContext (IDataAdminModel) /* the context we attached to changed */
INTEGER Serialize (handle)
LOGICAL SetProperty (character, character)
CHARACTER ToString ()
WriteTree (IContextTree)
WriteTree (IContextTree, character) /* end method. */

Constructor Summary
Options Name Purpose
Partition (IDataAdminModel, IRequestInfo)

Property Summary
Options Name Purpose
CHARACTER AllocationState
IArea Area
LOGICAL Attached
CHARACTER BufferPool
LOGICAL CanAssignAlternateBufferPool
CHARACTER CodeExtension
IDataAdminModel Context
CHARACTER ContextId
LOGICAL Created
ISchemaElement Element
Progress.Lang.error Error
LOGICAL IsMultiTenant
LOGICAL IsPartitioned
LOGICAL Modified
CHARACTER ObjectType
IRequestInfo RequestInfo
CHARACTER SerializeName
IDataAdminService Service
ITenant Tenant
ITenantGroup TenantGroup


Method Detail
Top

LOGICAL Allocate ()

/*
method private character GetKeyWhere(phHandle as handle):
define variable cKeyFields as character no-undo.
define variable iField as integer no-undo.
define variable cField as character no-undo.
define variable cKeyWhere as character no-undo.
if valid-handle(phHandle) then
do iField = 1 to num-entries(Context:KeyFields):
assign
cField = entry(iField,Context:KeyFields)
cField = entry(num-entries(cField,'.'),cField,'.')
cKeyWhere = cKeyWhere
+ (if iField > 1 then ' and ' else '')
+ phHandle:name
+ '.'
+ cField
+ ' = '
+ quoter(phHandle:buffer-field(cField):buffer-value,"'":U).
end.
return cKeyWhere.
end method.
Returns LOGICAL
Top

Attach (IDataAdminContext)

Parameters:
cntxt IDataAdminContext
Top

LOGICAL CanAttach (IDataAdminContext)

Parameters:
cntxt IDataAdminContext
Returns LOGICAL
Top

LOGICAL Equals (Object)

Parameters:
obj Progress.Lang.Object
Returns LOGICAL
Top

Export ()

Top

Export (character)

Parameters:
cFile CHARACTER
Top

ExportAsProcedure (character)

Parameters:
pcfile CHARACTER
Top

ExportAsProcedure (character, character)

Parameters:
pcfile CHARACTER
pcCollectionlist CHARACTER
Top

ExportTree (character)

Parameters:
pcfile CHARACTER
Top

ExportTree (character, character)

Parameters:
pcfile CHARACTER
pcCollectionlist CHARACTER
Top

Progress.Json.ObjectModel.JsonObject GetJSONExport (IContextTree)

/* optional call back from context tree.
called when parse is complete
override to return json to export instead of dataset
returns unknown to use standard dataset. write-json
Parameters:
tree IContextTree
Returns Progress.Json.ObjectModel.JsonObject
Top

CHARACTER GetKeyValues ()

Returns CHARACTER
Top

CHARACTER GetName ()

Returns CHARACTER
Top

CHARACTER GetName (handle)

Parameters:
phbuffer HANDLE
Returns CHARACTER
Top

Import (character)

Parameters:
cFile CHARACTER
Top

ImportTree (character)

Parameters:
pcFile CHARACTER
Top

NewContext (IDataAdminModel)

/* the context we attached to changed
Parameters:
cntxt IDataAdminModel
Top

INTEGER Serialize (handle)

Parameters:
phHandle HANDLE
Returns INTEGER
Top

LOGICAL SetProperty (character, character)

Parameters:
pcPropName CHARACTER
pcValue CHARACTER
Returns LOGICAL
Top

CHARACTER ToString ()

Returns CHARACTER
Top

WriteTree (IContextTree)

Parameters:
tree IContextTree
Top

WriteTree (IContextTree, character)

/* end method.
Parameters:
tree IContextTree
pcCollections CHARACTER


Constructor Detail
Top

Partition (IDataAdminModel, IRequestInfo)

Parameters:
cntxt IDataAdminModel
preq IRequestInfo


Property Detail
Top

CHARACTER AllocationState

Returns CHARACTER
Top

IArea Area

Returns IArea
Top

LOGICAL Attached

Returns LOGICAL
Top

CHARACTER BufferPool

Returns CHARACTER
Top

LOGICAL CanAssignAlternateBufferPool

Returns LOGICAL
Top

CHARACTER CodeExtension

Returns CHARACTER
Top

IDataAdminModel Context

Returns IDataAdminModel
Top

CHARACTER ContextId

Returns CHARACTER
Top

LOGICAL Created

Returns LOGICAL
Top

ISchemaElement Element

Returns ISchemaElement
Top

Progress.Lang.error Error

Returns Progress.Lang.error
Top

LOGICAL IsMultiTenant

Returns LOGICAL
Top

LOGICAL IsPartitioned

Returns LOGICAL
Top

LOGICAL Modified

Returns LOGICAL
Top

CHARACTER ObjectType

Returns CHARACTER
Top

IRequestInfo RequestInfo

Returns IRequestInfo
Top

CHARACTER SerializeName

Returns CHARACTER
Top

IDataAdminService Service

Returns IDataAdminService
Top

ITenant Tenant

Returns ITenant
Top

ITenantGroup TenantGroup

Returns ITenantGroup


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15