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 /** defines the context (or scope?) for the instance. Used in Equals() to check entities with the same keys not are equals if different context */
CHARACTER ContextId
LOGICAL Created /** Tells whether the instance is newly created (not saved to service). Always true if Attached is false. Modified is always false when Created is true */
OpenEdge.DataAdmin.ISchemaElement Element
Progress.Lang.error Error
LOGICAL IsMultiTenant
LOGICAL IsPartitioned
LOGICAL Modified /** Tells whether an instance is modified after it was read from the service. Always false if Created. Can only be true for an Attached object. */
CHARACTER ObjectType
OpenEdge.DataAdmin.IRequestInfo RequestInfo
CHARACTER SerializeName
OpenEdge.DataAdmin.IDataAdminService Service
OpenEdge.DataAdmin.ITenant Tenant
OpenEdge.DataAdmin.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 OpenEdge.DataAdmin.Binding.IDataAdminContext
Top

LOGICAL CanAttach (IDataAdminContext)

Parameters:
cntxt OpenEdge.DataAdmin.Binding.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 OpenEdge.DataAdmin.Binding.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 OpenEdge.DataAdmin.Binding.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 OpenEdge.DataAdmin.Binding.IContextTree
Top

WriteTree (IContextTree, character)

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


Constructor Detail
Top

Partition (IDataAdminModel, IRequestInfo)

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


Property Detail
Top

CHARACTER AllocationState

Returns CHARACTER
Top

OpenEdge.DataAdmin.IArea Area

Returns OpenEdge.DataAdmin.IArea
Top

LOGICAL Attached

Returns LOGICAL
Top

CHARACTER BufferPool

Returns CHARACTER
Top

LOGICAL CanAssignAlternateBufferPool

Returns LOGICAL
Top

CHARACTER CodeExtension

Returns CHARACTER
Top

OpenEdge.DataAdmin.Binding.IDataAdminModel Context

Purpose: defines the context (or scope?) for the instance.
Used in Equals() to check entities with the same keys not
are equals if different context
Returns OpenEdge.DataAdmin.Binding.IDataAdminModel
Top

CHARACTER ContextId

Returns CHARACTER
Top

LOGICAL Created

Purpose: Tells whether the instance is newly created (not saved to service).
Always true if Attached is false. Modified is always false when Created is true
Returns LOGICAL
Top

OpenEdge.DataAdmin.ISchemaElement Element

Returns OpenEdge.DataAdmin.ISchemaElement
Top

Progress.Lang.error Error

Returns Progress.Lang.error
Top

LOGICAL IsMultiTenant

Returns LOGICAL
Top

LOGICAL IsPartitioned

Returns LOGICAL
Top

LOGICAL Modified

Purpose: Tells whether an instance is modified after it was read from the service.
Always false if Created. Can only be true for an Attached object.
Returns LOGICAL
Top

CHARACTER ObjectType

Returns CHARACTER
Top

OpenEdge.DataAdmin.IRequestInfo RequestInfo

Returns OpenEdge.DataAdmin.IRequestInfo
Top

CHARACTER SerializeName

Returns CHARACTER
Top

OpenEdge.DataAdmin.IDataAdminService Service

Returns OpenEdge.DataAdmin.IDataAdminService
Top

OpenEdge.DataAdmin.ITenant Tenant

Returns OpenEdge.DataAdmin.ITenant
Top

OpenEdge.DataAdmin.ITenantGroup TenantGroup

Returns OpenEdge.DataAdmin.ITenantGroup


Copyright © 2017 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7