Namespace: OpenEdge.DataAdmin.Binding
Class
TableContext
Parent classes:
Inherits: OpenEdge.DataAdmin.Binding.DataAdminContext

/* Copyright (c) 2010-2016 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:TableContext
Author(s):hdaniels
Created:2010




Method Summary
Options Name Purpose
AddTreeTo (IContextTree, character, IRequestInfo) /* /** Allocate @param AllocationState Specify state of partitions to allocate - All, Delayed or None */ method public void Allocate (pcAllocationState as char): for each ttTable: mpartitions:AllocateTable(ttTable.name,pcAllocationState). end. end method. */
AddTreeTo (IContextTree, IDataAdminContext, IRequestInfo)
AllocateNewPartitions (character) /** Allocate new partitions Called from service after save and before partition save if table/tableset ForceAllocation Used by REST api @param AllocationState Specify state of partitions to allocate - All, Delayed or None */
LOGICAL CanFind (character)
CHARACTER ColumnSource (character)
CopyTable (IDataAdminModel)
OpenEdge.DataAdmin.IDataAdminCollection CreateCollection (IDataAdminContext)
OpenEdge.DataAdmin.IDataAdminElement CreateEntity (IRequestInfo)
LOGICAL CreatePartitionRefreshIds (handle) /* Called from merge with the changes returned from server to keep track of which partitions that will need to be refreshed. */
OpenEdge.DataAdmin.Message.IFetchRequest CreatePartitionRefreshRequest ()
CreateRow (IDataAdminElement)
HANDLE CreateSaveDataset ()
DataRefreshed (IFetchResponse) /** DataRefreshed Override to handle requests for indexfields */
DeletePartitionsBeforeRequest ()
LOGICAL EmptyPartitionRefresh ()
ExportLastSavedTree (character)
LOGICAL Find (character)
LOGICAL Find (integer)
CHARACTER GetIntegerKey ()
CHARACTER GetJoinFields (character)
OpenEdge.DataAdmin.Binding.IDataAdminModel GetNamedChild (character) /* return partitions if requested (not in default tree)*/
OpenEdge.DataAdmin.Message.ISaveRequest GetPartitionSaveRequest () /* used by UpdateTable(s) to perform a second transaction */
CHARACTER GetServerJoinFields (character)
LOGICAL HasPartitionChanges ()
LOGICAL HasTableChanges ()
initChildren (IContextScope)
initChildren (ISchemaScope)
HANDLE InitDataset ()
MergeChanges (ISaveRequest)
LOGICAL NeedPartitionRefresh ()
LOGICAL UpdateCdcPolicyName (character, character) /** update policy info if record avail */
LOGICAL UpdatePolicyName (character, character) /** update policy info if record avail */

Constructor Summary
Options Name Purpose
TableContext ()
TableContext (character)
TableContext (character, ISchemaScope)
TableContext (ISchemaScope)

Property Summary
Options Name Purpose
INTEGER Count
CHARACTER KeyFields
HANDLE TableHandle


Method Detail
Top

AddTreeTo (IContextTree, character, IRequestInfo)

/*
Purpose: Allocate
method public void Allocate (pcAllocationState as char):
for each ttTable:
mpartitions:AllocateTable(ttTable.name,pcAllocationState). AllocateTable(ttTable.name,pcAllocationState).
end.
end method.
Parameters:
tree OpenEdge.DataAdmin.Binding.IContextTree
pcCollections CHARACTER
pReq OpenEdge.DataAdmin.IRequestInfo
Top

AddTreeTo (IContextTree, IDataAdminContext, IRequestInfo)

Parameters:
tree OpenEdge.DataAdmin.Binding.IContextTree
parent OpenEdge.DataAdmin.Binding.IDataAdminContext
pReq OpenEdge.DataAdmin.IRequestInfo
Top

AllocateNewPartitions (character)

Purpose: Allocate new partitions
Called from service after save and before partition save if table/tableset ForceAllocation
Used by REST api
Parameters:
pcAllocationState CHARACTER
Top

LOGICAL CanFind (character)

Parameters:
name CHARACTER
Returns LOGICAL
Top

CHARACTER ColumnSource (character)

Parameters:
pcColumn CHARACTER
Returns CHARACTER
Top

CopyTable (IDataAdminModel)

Parameters:
cntxt 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

LOGICAL CreatePartitionRefreshIds (handle)

/* Called from merge with the changes returned from server to keep track of
which partitions that will need to be refreshed.
Parameters:
pdsChanged HANDLE
Returns LOGICAL
Top

OpenEdge.DataAdmin.Message.IFetchRequest CreatePartitionRefreshRequest ()

Returns OpenEdge.DataAdmin.Message.IFetchRequest
Top

CreateRow (IDataAdminElement)

Parameters:
entity OpenEdge.DataAdmin.IDataAdminElement
Top

HANDLE CreateSaveDataset ()

Returns HANDLE
Top

DataRefreshed (IFetchResponse)

Purpose: DataRefreshed Override to handle requests for indexfields
Parameters:
pResponse OpenEdge.DataAdmin.Message.IFetchResponse
Top

DeletePartitionsBeforeRequest ()

Top

LOGICAL EmptyPartitionRefresh ()

Returns LOGICAL
Top

ExportLastSavedTree (character)

Parameters:
pcfile CHARACTER
Top

LOGICAL Find (character)

Parameters:
name CHARACTER
Returns LOGICAL
Top

LOGICAL Find (integer)

Parameters:
pid INTEGER
Returns LOGICAL
Top

CHARACTER GetIntegerKey ()

Returns CHARACTER
Top

CHARACTER GetJoinFields (character)

Parameters:
parentid CHARACTER
Returns CHARACTER
Top

OpenEdge.DataAdmin.Binding.IDataAdminModel GetNamedChild (character)

/* return partitions if requested (not in default tree)
Parameters:
child CHARACTER
Returns OpenEdge.DataAdmin.Binding.IDataAdminModel
Top

OpenEdge.DataAdmin.Message.ISaveRequest GetPartitionSaveRequest ()

/* used by UpdateTable(s) to perform a second transaction
Returns OpenEdge.DataAdmin.Message.ISaveRequest
Top

CHARACTER GetServerJoinFields (character)

Parameters:
parentid CHARACTER
Returns CHARACTER
Top

LOGICAL HasPartitionChanges ()

Returns LOGICAL
Top

LOGICAL HasTableChanges ()

Returns LOGICAL
Top

initChildren (IContextScope)

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

initChildren (ISchemaScope)

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

HANDLE InitDataset ()

Returns HANDLE
Top

MergeChanges (ISaveRequest)

Parameters:
pResponse OpenEdge.DataAdmin.Message.ISaveRequest
Top

LOGICAL NeedPartitionRefresh ()

Returns LOGICAL
Top

LOGICAL UpdateCdcPolicyName (character, character)

Purpose: update policy info if record avail
Parameters:
name CHARACTER
pcPolicyName CHARACTER
Returns LOGICAL
Top

LOGICAL UpdatePolicyName (character, character)

Purpose: update policy info if record avail
Parameters:
name CHARACTER
pcPolicyName CHARACTER
Returns LOGICAL


Constructor Detail
Top

TableContext ()

Top

TableContext (character)

Parameters:
pname CHARACTER
Top

TableContext (character, ISchemaScope)

Parameters:
pname CHARACTER
pScope OpenEdge.DataAdmin.Binding.Factory.ISchemaScope
Top

TableContext (ISchemaScope)

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


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