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

Inherits: Progress.Lang.Object
Implements: OpenEdge.DataAdmin.IPartition, OpenEdge.DataAdmin.IDataAdminElement, OpenEdge.DataAdmin.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
OpenEdge.DataAdmin.IArea Area
LOGICAL Attached
CHARACTER BufferPool
LOGICAL CanAssignAlternateBufferPool
CHARACTER CodeExtension
OpenEdge.DataAdmin.Binding.IDataAdminModel Context
CHARACTER ContextId
LOGICAL Created
OpenEdge.DataAdmin.ISchemaElement Element
Progress.Lang.error Error
LOGICAL IsMultiTenant
LOGICAL IsPartitioned
LOGICAL Modified
CHARACTER ObjectType
OpenEdge.DataAdmin.IRequestInfo RequestInfo
CHARACTER SerializeName
OpenEdge.DataAdmin.IDataAdminService Service
OpenEdge.DataAdmin.ITenant Tenant
OpenEdge.DataAdmin.ITenantGroup TenantGroup


Method Detail
Top

PUBLIC 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

PUBLIC Attach (IDataAdminContext)

Parameters:
cntxt OpenEdge.DataAdmin.Binding.IDataAdminContext
Top

PUBLIC LOGICAL CanAttach (IDataAdminContext)

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

PUBLIC LOGICAL Equals (Object)

Parameters:
obj Progress.Lang.Object
Returns LOGICAL
Top

PUBLIC Export ()

Top

PUBLIC Export (character)

Parameters:
cFile CHARACTER
Top

PUBLIC ExportAsProcedure (character)

Parameters:
pcfile CHARACTER
Top

PUBLIC ExportAsProcedure (character, character)

Parameters:
pcfile CHARACTER
pcCollectionlist CHARACTER
Top

PUBLIC ExportTree (character)

Parameters:
pcfile CHARACTER
Top

PUBLIC ExportTree (character, character)

Parameters:
pcfile CHARACTER
pcCollectionlist CHARACTER
Top

PUBLIC 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 OpenEdge.DataAdmin.Binding.IContextTree
Returns Progress.Json.ObjectModel.JsonObject
Top

PROTECTED CHARACTER GetKeyValues ()

Returns CHARACTER
Top

PRIVATE CHARACTER GetName ()

Returns CHARACTER
Top

PRIVATE CHARACTER GetName (handle)

Parameters:
phbuffer HANDLE
Returns CHARACTER
Top

PUBLIC Import (character)

Parameters:
cFile CHARACTER
Top

PUBLIC ImportTree (character)

Parameters:
pcFile CHARACTER
Top

PROTECTED NewContext (IDataAdminModel)

/* the context we attached to changed
Parameters:
cntxt OpenEdge.DataAdmin.Binding.IDataAdminModel
Top

PUBLIC INTEGER Serialize (handle)

Parameters:
phHandle HANDLE
Returns INTEGER
Top

PROTECTED LOGICAL SetProperty (character, character)

Parameters:
pcPropName CHARACTER
pcValue CHARACTER
Returns LOGICAL
Top

PUBLIC CHARACTER ToString ()

Returns CHARACTER
Top

PUBLIC WriteTree (IContextTree)

Parameters:
tree OpenEdge.DataAdmin.Binding.IContextTree
Top

PUBLIC WriteTree (IContextTree, character)

/* end method.
Parameters:
tree OpenEdge.DataAdmin.Binding.IContextTree
pcCollections CHARACTER


Constructor Detail
Top

PUBLIC Partition (IDataAdminModel, IRequestInfo)

Parameters:
cntxt OpenEdge.DataAdmin.Binding.IDataAdminModel
preq OpenEdge.DataAdmin.IRequestInfo


Property Detail
Top

PUBLIC CHARACTER AllocationState

Returns CHARACTER
Top

PUBLIC OpenEdge.DataAdmin.IArea Area

Returns OpenEdge.DataAdmin.IArea
Top

PUBLIC LOGICAL Attached

Returns LOGICAL
Top

PUBLIC CHARACTER BufferPool

Returns CHARACTER
Top

PUBLIC LOGICAL CanAssignAlternateBufferPool

Returns LOGICAL
Top

PUBLIC CHARACTER CodeExtension

Returns CHARACTER
Top

PROTECTED OpenEdge.DataAdmin.Binding.IDataAdminModel Context

Returns OpenEdge.DataAdmin.Binding.IDataAdminModel
Top

PUBLIC CHARACTER ContextId

Returns CHARACTER
Top

PUBLIC LOGICAL Created

Returns LOGICAL
Top

PUBLIC OpenEdge.DataAdmin.ISchemaElement Element

Returns OpenEdge.DataAdmin.ISchemaElement
Top

PUBLIC Progress.Lang.error Error

Returns Progress.Lang.error
Top

PUBLIC LOGICAL IsMultiTenant

Returns LOGICAL
Top

PUBLIC LOGICAL IsPartitioned

Returns LOGICAL
Top

PUBLIC LOGICAL Modified

Returns LOGICAL
Top

PUBLIC CHARACTER ObjectType

Returns CHARACTER
Top

PUBLIC OpenEdge.DataAdmin.IRequestInfo RequestInfo

Returns OpenEdge.DataAdmin.IRequestInfo
Top

PUBLIC CHARACTER SerializeName

Returns CHARACTER
Top

PUBLIC OpenEdge.DataAdmin.IDataAdminService Service

Returns OpenEdge.DataAdmin.IDataAdminService
Top

PUBLIC OpenEdge.DataAdmin.ITenant Tenant

Returns OpenEdge.DataAdmin.ITenant
Top

PUBLIC OpenEdge.DataAdmin.ITenantGroup TenantGroup

Returns OpenEdge.DataAdmin.ITenantGroup


Copyright © 2020 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 12.2.0