Namespace: OpenEdge.DataAdmin.Binding
Class
CreateContext
Parent classes:
Inherits: OpenEdge.DataAdmin.Binding.Query.AbstractFilteredContext

/* Copyright (c) 2010 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:CreateContext
Purpose:Provide filtered access to rows created by this
in another context
Author(s):hdaniels
Created:Aug 2010
Notes:FilteredContext is a buffer and query used to
control and limit access to the Parent DataAdminContext,
which really is a temp-table.
It has the same interface so that the collection
that uses it doesn't need to know the difference.
Purpose: only add to query if added from here




Method Summary
Options Name Purpose
AddTreeTo (IContextTree)
AddTreeTo (IContextTree, character)
BeforeDelete (rowid)
LOGICAL CanFindCurrentModel (IDataAdminModel)
Copy (IDataAdminContext) /* Model:RowCreated:Subscribe(RowCreated).*/
CreateRow (IDataAdminElement)
Import (character, character) /* single table import of the entity (flat - no tree)*/
Import (JsonObject, character) /* single table import of the entity (flat - no tree)*/
ImportRow (character, character) /* single row import of the entity (flat no tree) */
ImportRow (character, integer) /* single row import of the entity (flat no tree) */
ReadChild (IRow, JSONObject) /* method public override void ImportTree(pcfile as char). undo, throw new UnsupportedOperationError("Import to CreateContext"). end method. */
RowCreated () /*** protected methods ****************************************/
RowDeleted ()
TableRefreshed (ITableResponse) /* nothing - keep query intact with only our own changes */
ValidateChanges (handle) /*** methods ************************************************/
ValidateQueryChanges (handle) /** override to repos in query - this query has no query-prepare that can be used to query against the extracted changes */

Constructor Summary
Options Name Purpose
CreateContext (IDataAdminModel) /*** constructors *******************************************/


Method Detail
Top

AddTreeTo (IContextTree)

Parameters:
tree OpenEdge.DataAdmin.Binding.IContextTree
Top

AddTreeTo (IContextTree, character)

Parameters:
tree OpenEdge.DataAdmin.Binding.IContextTree
pcCollections CHARACTER
Top

BeforeDelete (rowid)

Parameters:
prid ROWID
Top

LOGICAL CanFindCurrentModel (IDataAdminModel)

Parameters:
pModel OpenEdge.DataAdmin.Binding.IDataAdminModel
Returns LOGICAL
Top

Copy (IDataAdminContext)

/* Model:RowCreated:Subscribe(RowCreated).
Parameters:
cntxt OpenEdge.DataAdmin.Binding.IDataAdminContext
Top

CreateRow (IDataAdminElement)

Parameters:
entity OpenEdge.DataAdmin.IDataAdminElement
Top

Import (character, character)

/* single table import of the entity (flat - no tree)
Parameters:
pcfile CHARACTER
pcMode CHARACTER
Top

Import (JsonObject, character)

/* single table import of the entity (flat - no tree)
Parameters:
pJson Progress.Json.ObjectModel.JsonObject
pcMode CHARACTER
Top

ImportRow (character, character)

/* single row import of the entity (flat no tree)
Parameters:
pcfile CHARACTER
c CHARACTER
Top

ImportRow (character, integer)

/* single row import of the entity (flat no tree)
Parameters:
pcfile CHARACTER
i INTEGER
Top

ReadChild (IRow, JSONObject)

/*
method public override void ImportTree(pcfile as char).
undo, throw new UnsupportedOperationError("Import to CreateContext").
end method.
Parameters:
pParentrow OpenEdge.DataAdmin.Binding.IRow
json Progress.Json.ObjectModel.JsonObject
Top

RowCreated ()

Top

RowDeleted ()

Top

TableRefreshed (ITableResponse)

/* nothing - keep query intact with only our own changes
Parameters:
msg OpenEdge.DataAdmin.Message.ITableResponse
Top

ValidateChanges (handle)

Parameters:
phDs HANDLE
Top

ValidateQueryChanges (handle)

Purpose: override to repos in query - this query has no query-prepare that can be used
to query against the extracted changes
Parameters:
phQuery HANDLE


Constructor Detail
Top

CreateContext (IDataAdminModel)

Parameters:
pModel OpenEdge.DataAdmin.Binding.IDataAdminModel


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15