Top Method Summary
Options Name Purpose
# AddChildRows (JsonObject, handle, character) Adds children ows
+ Count (character, character, integer) Generic Count Service Interface
+ CreateData (character, longchar) Generic CreateData (post/create) Service Interface
# CHARACTER DefaultSort (character, character) Returns the default sort of the table from the Business Entity Descriptor
+ DeleteData (character, longchar) Generic DeleteData (post/create) Service Interface
# FetchDataRequestFromFilter (FetchDataRequest, character, character, character, character) Assigns the properties of the given FetchDataRequest instance from a character string representing an ABL Filter
# Consultingwerk.OERA.BusinessEntityDescriptor.IBusinessEntityDescriptor GetBusinessEntityDescriptor (character) Retrieves the Business Entity Descriptor of the Business Entity
+ Progress.Json.ObjectModel.JsonObject GetData (character, character, character, character) Generic GetData (get/read) Service Interface
+ GetData (character, character, character, character, dataset-handle) Generic GetData (get/read) Service Interface
+ Progress.Json.ObjectModel.JsonObject InvokeBusinessTask (IBusinessTaskCatalogData, character, JsonObject) Generic Invoke Business Task Service Interface
+ InvokeWithSerializableObject (character, character, longchar, longchar) Generic Invoke Method Service Interface
+ Progress.Json.ObjectModel.JsonObject InvokeWithSerializableObject (character, character, JsonObject) Generic Invoke Method Service Interface
# Consultingwerk.OERA.CountRecordsRequest NewCountRecordsRequest (character, character) Factory method for the CountRecordsRequest object passed to the ServiceInterface for the Count request
# Consultingwerk.OERA.FetchDataRequest NewFetchDataRequest (character, character) Factory method for the FetchDataRequest object passed to the ServiceInterface for the GetData request
# Consultingwerk.OERA.INamedQueryParameter ParseNamedQuery (JsonObject) Parses the NamedQuery property of the Json Document
# Consultingwerk.OERA.NamedQueryParameterEntry ParseNamedQueryParameter (JsonObject) Parses a single entry of the NamedQuery parameter array
# INTEGER ParseNumRecords (character) Parses the optional NumRecords argument
# INTEGER ParseStopAfter (character) Parses the optional StopAfter argument
# ProcessUpdate (character, longchar) Processes Create/Update/Delete operations
+ Progress.Json.ObjectModel.JsonObject ProcessUpdate (character, JsonObject) Processes Create/Update/Delete operations
+ SubmitData (character, longchar) Generic SubmitData (submit/create/delete/update) Service Interface
+ UpdateData (character, longchar) Generic UpdateData (put/update) Service Interface

Top Constructor Summary
Options Name Purpose
+ Service () Constructor for the Service class

Top Property Summary
Options Name Purpose
+ OpenEdge.Web.IWebRequest WebRequest


Method Detail
Top

PROTECTED AddChildRows (JsonObject, handle, character)

Purpose: Adds children ows
Notes:

Parameters:
poParentRow Progress.Json.ObjectModel.JsonObject
The JsonObject of the parent row
phParentBuffer HANDLE
The buffer object handle of the parent record
pcAllTables CHARACTER
The comma delimited list of tables
Top

PUBLIC Count (character, character, integer)

Purpose: Generic Count Service Interface
Notes:

Parameters:
pcEntityName CHARACTER
The name of the Business Entity
pcFilter CHARACTER
The filter parameter
piNumRecs INTEGER
OUTPUT The number of records returned by the query
Top

PUBLIC CreateData (character, longchar)

Purpose: Generic CreateData (post/create) Service Interface
Notes: Uses a LONGCHAR as INPUT-OUTPUT for the Dataset, to allow to map this
to the actual data types of the fields in the Dataset from the business entity.
The default mapping for JSON number would be a DECIMAL fields, which
would cause conflicts integer fields in the business entity while
updating

Parameters:
pcEntityName CHARACTER
The name of the Business Entity
lcDataset LONGCHAR
The JSON Representation of the Dataset to update
Top

PROTECTED CHARACTER DefaultSort (character, character)

Purpose: Returns the default sort of the table from the Business Entity Descriptor
Notes:

Parameters:
pcEntityName CHARACTER
The name of the Business Entity
pcTable CHARACTER
The name of the temp-table
Returns CHARACTER
CHARACTER
Top

PUBLIC DeleteData (character, longchar)

Purpose: Generic DeleteData (post/create) Service Interface
Notes: Uses a LONGCHAR as INPUT-OUTPUT for the Dataset, to allow to map this
to the actual data types of the fields in the Dataset from the business entity.
The default mapping for JSON number would be a DECIMAL fields, which
would cause conflicts integer fields in the business entity while
updating

Parameters:
pcEntityName CHARACTER
The name of the Business Entity
lcDataset LONGCHAR
The JSON Representation of the Dataset to update
Top

PROTECTED FetchDataRequestFromFilter (FetchDataRequest, character, character, character, character)

Purpose: Assigns the properties of the given FetchDataRequest instance from
a character string representing an ABL Filter
Notes:

Parameters:
poFetchDataRequest Consultingwerk.OERA.FetchDataRequest
The FetchDataRequest instance to assign values to
pcFilter CHARACTER
The character string representing the ABL Filter instance
pcBufferName CHARACTER
The Buffer name for the query string
pcEntityName CHARACTER
The name of the Business Entity
pcOrderBy CHARACTER
OUTPUT The order by value
Top

PROTECTED Consultingwerk.OERA.BusinessEntityDescriptor.IBusinessEntityDescriptor GetBusinessEntityDescriptor (character)

Purpose: Retrieves the Business Entity Descriptor of the Business Entity
Notes:

Parameters:
pcEntityName CHARACTER
The name of the Business Entity
Returns Consultingwerk.OERA.BusinessEntityDescriptor.IBusinessEntityDescriptor
The IBusinessEntityDescriptor instance
Top

PUBLIC Progress.Json.ObjectModel.JsonObject GetData (character, character, character, character)

Purpose: Generic GetData (get/read) Service Interface
Notes:

Parameters:
pcEntityName CHARACTER
The name of the Business Entity
pcFilter CHARACTER
The filter parameter
pcNumRecords CHARACTER
The numRecords value from the http client, see method ParseNumRecords
pcStopAfter CHARACTER
The stopAfter value from the http client, see method ParseStopAfter
Returns Progress.Json.ObjectModel.JsonObject
The JSON Object with data
Top

PUBLIC GetData (character, character, character, character, dataset-handle)

Purpose: Generic GetData (get/read) Service Interface
Notes:

Parameters:
pcEntityName CHARACTER
The name of the Business Entity
pcFilter CHARACTER
The filter parameter
pcNumRecords CHARACTER
The numRecords value from the http client, see method ParseNumRecords
pcStopAfter CHARACTER
The stopAfter value from the http client, see method ParseStopAfter
phDataset DATASET-HANDLE
The Dataset to return to the client
Top

PUBLIC Progress.Json.ObjectModel.JsonObject InvokeBusinessTask (IBusinessTaskCatalogData, character, JsonObject)

Purpose: Generic Invoke Business Task Service Interface
Notes: Pacific WebSpeed variant

Parameters:
poBusinessTask Consultingwerk.OERA.IBusinessTaskCatalogData
The Business Task Catalog Data instance
pcMethodName CHARACTER
The name of the method to invoke
poJsonObject Progress.Json.ObjectModel.JsonObject
The JsonObject with the request data
Returns Progress.Json.ObjectModel.JsonObject
The JsonObject with the response data
Top

PUBLIC InvokeWithSerializableObject (character, character, longchar, longchar)

Purpose: Generic Invoke Method Service Interface
Notes:

Parameters:
pcEntityName CHARACTER
The name of the Business Entity
pcMethodName CHARACTER
The name of the method to invoke
plcDataset LONGCHAR
The JSON representation of the INPUT/OUTPUT ProDataset
plcParameter LONGCHAR
The JSON Serializable INPUT/OUTPUT Parameter
Top

PUBLIC Progress.Json.ObjectModel.JsonObject InvokeWithSerializableObject (character, character, JsonObject)

Purpose: Generic Invoke Method Service Interface
Notes: Pacific WebSpeed variant

Parameters:
pcEntityName CHARACTER
The name of the Business Entity
pcMethodName CHARACTER
The name of the method to invoke
poJsonObject Progress.Json.ObjectModel.JsonObject
The JsonObject with the request data
Returns Progress.Json.ObjectModel.JsonObject
The JsonObject with the response data
Top

PROTECTED Consultingwerk.OERA.CountRecordsRequest NewCountRecordsRequest (character, character)

Purpose: Factory method for the CountRecordsRequest object passed to the
ServiceInterface for the Count request
Notes: Overridable method, so that extended versions of the Service.cls can
inject extended CountRecordsRequest implementations

Parameters:
pcEntityName CHARACTER
The entity name of the current request
pcFilter CHARACTER
The filter parameter value of the current request
Returns Consultingwerk.OERA.CountRecordsRequest
The FetchDataRequest instance
Top

PROTECTED Consultingwerk.OERA.FetchDataRequest NewFetchDataRequest (character, character)

Purpose: Factory method for the FetchDataRequest object passed to the
ServiceInterface for the GetData request
Notes: Overridable method, so that extended versions of the Service.cls can
inject extended FetchDataRequest implementations

Parameters:
pcEntityName CHARACTER
The entity name of the current request
pcFilter CHARACTER
The filter parameter value of the current request
Returns Consultingwerk.OERA.FetchDataRequest
The FetchDataRequest instance
Top

PROTECTED Consultingwerk.OERA.INamedQueryParameter ParseNamedQuery (JsonObject)

Purpose: Parses the NamedQuery property of the Json Document
Notes: Supports "NamedQuery" : "a simple name" for a NamedQueryParameter
with only the name property set or a

Parameters:
poJsonObject Progress.Json.ObjectModel.JsonObject
The JsonObject to parse the NamedQuery property of
Returns Consultingwerk.OERA.INamedQueryParameter
The resulting INamedQueryParameter instance
Top

PROTECTED Consultingwerk.OERA.NamedQueryParameterEntry ParseNamedQueryParameter (JsonObject)

Purpose: Parses a single entry of the NamedQuery parameter array
Notes:

Parameters:
poJsonObject Progress.Json.ObjectModel.JsonObject
The JsonObject to parse the NamedQuery parameter from
Returns Consultingwerk.OERA.NamedQueryParameterEntry
The resulting NamedQueryParameterEntry instance
Top

PROTECTED INTEGER ParseNumRecords (character)

Purpose: Parses the optional NumRecords argument
Notes: Supports optional "all" and "one"

Parameters:
pcNumRecords CHARACTER
The NumRecords argument as received from the http client
Returns INTEGER
The numeric value for num records
Top

PROTECTED INTEGER ParseStopAfter (character)

Purpose: Parses the optional StopAfter argument
Notes: Supports optional "disabled" and "none"

Parameters:
pcStopAfter CHARACTER
The StopAfter argument as received from the http client
Returns INTEGER
The numeric value for stop after
Top

PROTECTED ProcessUpdate (character, longchar)

Purpose: Processes Create/Update/Delete operations
Notes: Worker method for CreateData, DeleteData and UpdateData as the
rest adapter does not support using the same method for all three
verbs - but all methods can share the same implementation

Parameters:
pcEntityName CHARACTER
The name of the Business Entity
lcDataset LONGCHAR
The JSON Representation of the Dataset to update
Top

PUBLIC Progress.Json.ObjectModel.JsonObject ProcessUpdate (character, JsonObject)

Purpose: Processes Create/Update/Delete operations
Notes: Pacific WebSpeed variant

Parameters:
pcEntityName CHARACTER
The name of the Business Entity
poJsonObject Progress.Json.ObjectModel.JsonObject
The JSON Representation of the Dataset to update
Returns Progress.Json.ObjectModel.JsonObject
The JsonObject with the result of the update operation
Top

PUBLIC SubmitData (character, longchar)

Purpose: Generic SubmitData (submit/create/delete/update) Service Interface
Notes: Uses a LONGCHAR as INPUT-OUTPUT for the Dataset, to allow to map this
to the actual data types of the fields in the Dataset from the business
entity. The default mapping for JSON number would be a DECIMAL fields,
which would cause conflicts integer fields in the business entity while
updating

Parameters:
pcEntityName CHARACTER
The name of the Business Entity
lcDataset LONGCHAR
The JSON Representation of the Dataset to update
Top

PUBLIC UpdateData (character, longchar)

Purpose: Generic UpdateData (put/update) Service Interface
Notes: Uses a LONGCHAR as INPUT-OUTPUT for the Dataset, to allow to map this
to the actual data types of the fields in the Dataset from the business entity.
The default mapping for JSON number would be a DECIMAL fields, which
would cause conflicts integer fields in the business entity while
updating

Parameters:
pcEntityName CHARACTER
The name of the Business Entity
lcDataset LONGCHAR
The JSON Representation of the Dataset to update


Constructor Detail
Top

PUBLIC Service ()

Purpose: Constructor for the Service class
Notes:



Property Detail
Top

PUBLIC OpenEdge.Web.IWebRequest WebRequest


Returns OpenEdge.Web.IWebRequest


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       09.11.2024 18:38:19