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

Inherits: Progress.Lang.Object
Implements: OpenEdge.DataAdmin.IDataAdminElement

/* Copyright (c) 2011-2016,2019 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.
Purpose:abstract implementation of IDataAdminElement
Author(s):hdaniels
Created:Wed Jun 23 22:17:38 EDT 2010




Method Summary
Options Name Purpose
Attach (IDataAdminContext)
LOGICAL CanAttach (IDataAdminContext)
OpenEdge.DataAdmin.Binding.IDataAdminModel CreateLocalContext () /* return local contaxt if needed (if entity has child collections). */
OpenEdge.DataAdmin.Binding.IRow CreateRowInfo ()
LOGICAL Equals (Object)
Export ()
Export (character)
ExportAsProcedure (character)
ExportAsProcedure (character, character)
ExportData (character)
ExportToJson (character) /* create buffer to export one record */
ExportTree (character) /** override to handle collections for this */
ExportTree (character, character)
OpenEdge.DataAdmin.IDataAdminCollection GetChildCollection (character) /** use IRow to pass state and info @todo deprecate the overloads below this */
OpenEdge.DataAdmin.IDataAdminExporter GetCodeExporter ()
OpenEdge.DataAdmin.IDataAdminExporter GetExporter (character)
CHARACTER GetFileExtension (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 GetKeyValue () /** @todo - deprecate - use GetKeyValues workaround due to inconsistent key definition (and property reflection) override in classes that does not use name */
CHARACTER GetKeyValues ()
CHARACTER GetLastEntry (character, character)
OpenEdge.DataAdmin.IDataAdminService GetLookupService ()
CHARACTER GetShortClassName (Object)
Import (character) /* @TODO - call context:ImportRow with GetKeyValue() and remove all override */
ImportTree (character)
LOGICAL NeedsRefresh () /* override to return true if first request was lazy and some fields have not been retrieved */
NewContext (IDataAdminModel) /* the context we attached to changed */
Refresh () /* Refresh if necessary */
RowDeleted () /* the context we attached to deleted something changed */
INTEGER Serialize (handle)
LOGICAL SetProperty (character, character)
CHARACTER ToString ()
WriteTree (IContextTree)
WriteTree (IContextTree, character)

Constructor Summary
Options Name Purpose
Entity (character)
Entity (IDataAdminModel)
Entity (IDataAdminModel, IRequestInfo)

Property Summary
Options Name Purpose
LOGICAL Attached
CHARACTER CodeExtension
OpenEdge.DataAdmin.Binding.IDataAdminModel Context
CHARACTER ContextId
LOGICAL Created
Progress.Lang.error Error
LOGICAL Modified
CHARACTER Name
OpenEdge.DataAdmin.IRequestInfo RequestInfo
CHARACTER SerializeName
OpenEdge.DataAdmin.IDataAdminService Service
CHARACTER ShortContextName
CHARACTER ShortTypeName


Method Detail
Top

Attach (IDataAdminContext)

Parameters:
cntxt OpenEdge.DataAdmin.Binding.IDataAdminContext
Top

LOGICAL CanAttach (IDataAdminContext)

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

OpenEdge.DataAdmin.Binding.IDataAdminModel CreateLocalContext ()

/* return local contaxt if needed (if entity has child collections).
Returns OpenEdge.DataAdmin.Binding.IDataAdminModel
Top

OpenEdge.DataAdmin.Binding.IRow CreateRowInfo ()

Returns OpenEdge.DataAdmin.Binding.IRow
Top

LOGICAL Equals (Object)

Parameters:
obj Progress.Lang.Object
Returns LOGICAL
Top

Export ()

Top

Export (character)

Parameters:
pcFile CHARACTER
Top

ExportAsProcedure (character)

Parameters:
pcfile CHARACTER
Top

ExportAsProcedure (character, character)

Parameters:
pcfile CHARACTER
pcCollectionlist CHARACTER
Top

ExportData (character)

Parameters:
pcFile CHARACTER
Top

ExportToJson (character)

/* create buffer to export one record
Parameters:
cFile CHARACTER
Top

ExportTree (character)

Purpose: override to handle collections for this
Parameters:
pcfile CHARACTER
Top

ExportTree (character, character)

Parameters:
pcfile CHARACTER
pcCollectionlist CHARACTER
Top

OpenEdge.DataAdmin.IDataAdminCollection GetChildCollection (character)

Purpose: use IRow to pass state and info
@todo deprecate the overloads below this
Parameters:
pcchild CHARACTER
Returns OpenEdge.DataAdmin.IDataAdminCollection
Top

OpenEdge.DataAdmin.IDataAdminExporter GetCodeExporter ()

Returns OpenEdge.DataAdmin.IDataAdminExporter
Top

OpenEdge.DataAdmin.IDataAdminExporter GetExporter (character)

Parameters:
pcFile CHARACTER
Returns OpenEdge.DataAdmin.IDataAdminExporter
Top

CHARACTER GetFileExtension (character)

Parameters:
pcFile CHARACTER
Returns 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 GetKeyValue ()

Purpose: @todo - deprecate - use GetKeyValues
workaround due to inconsistent key definition (and property reflection)
override in classes that does not use name
Returns CHARACTER
Top

CHARACTER GetKeyValues ()

Returns CHARACTER
Top

CHARACTER GetLastEntry (character, character)

Parameters:
pcString CHARACTER
pcDelim CHARACTER
Returns CHARACTER
Top

OpenEdge.DataAdmin.IDataAdminService GetLookupService ()

Returns OpenEdge.DataAdmin.IDataAdminService
Top

CHARACTER GetShortClassName (Object)

Parameters:
hClass Progress.Lang.Object
Returns CHARACTER
Top

Import (character)

/* @TODO - call context:ImportRow with GetKeyValue() and remove all override
Parameters:
cFile CHARACTER
Top

ImportTree (character)

Parameters:
pcFile CHARACTER
Top

LOGICAL NeedsRefresh ()

/* override to return true if first request was lazy and some fields have
not been retrieved
Returns LOGICAL
Top

NewContext (IDataAdminModel)

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

Refresh ()

/* Refresh if necessary
Top

RowDeleted ()

/* the context we attached to deleted something changed
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)

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


Constructor Detail
Top

Entity (character)

Parameters:
pname CHARACTER
Top

Entity (IDataAdminModel)

Parameters:
cntxt OpenEdge.DataAdmin.Binding.IDataAdminModel
Top

Entity (IDataAdminModel, IRequestInfo)

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


Property Detail
Top

LOGICAL Attached

Returns LOGICAL
Top

CHARACTER CodeExtension

Returns CHARACTER
Top

OpenEdge.DataAdmin.Binding.IDataAdminModel Context

Returns OpenEdge.DataAdmin.Binding.IDataAdminModel
Top

CHARACTER ContextId

Returns CHARACTER
Top

LOGICAL Created

Returns LOGICAL
Top

Progress.Lang.error Error

Returns Progress.Lang.error
Top

LOGICAL Modified

Returns LOGICAL
Top

CHARACTER Name

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

CHARACTER ShortContextName

Returns CHARACTER
Top

CHARACTER ShortTypeName

Returns CHARACTER


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15