Namespace: OpenEdge.BusinessLogic.Filter
Class
KendoFilterParser
Parent classes:
Inherits: OpenEdge.BusinessLogic.Filter.FilterParser

/* *************************************************************************************************************************
Copyright (c) 2019 by Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
File:KendoFilterParser
Author(s):pjudge & dugrau
Created:Wed Dec 07 14:11:10 EST 2016
/* Default constructor




Method Summary
Options Name Purpose
Ccs.BusinessLogic.IGetDataRequest Parse (Object) /* Reads and processes (parses) the filter. @param P.L.Object The filter data @param IGetDataRequest A new filter object */
Ccs.BusinessLogic.IQueryEntry ParsePredicate (JoinEnum, JsonObject)
Ccs.BusinessLogic.IQuerySortEntry ParseSortBy (Object) /* Parses an SORT-BY phrase and returns an array of IQuerySortEntry objects. http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-sort @param P.L.Object The SORT-BY data @return IQuerySortEntry[] An array of sort phrases. An indeterminate array is returned if the input phrase is empty */
Ccs.BusinessLogic.IGetDataTableRequest ParseTableRequest (character, JsonObject) /* Reads a single table's request. This method knows which properties in the input JSON are for the where clause, for the sort-by etc @param character The table name to which this filter applies @param JsonObject The input filter @return IGetDataTableRequest A single table Get Request */
Ccs.BusinessLogic.IQueryEntry ParseWhere (Object) /* Parses where/filter phrase and returns an IQueryEntry object for a single table http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-filter @param P.L.Object The filter/where clause data @return IQueryEntry The query entry. We return one of an IQueryPredicate (single clause) or an IQueryGroup (many clauses) */
Ccs.BusinessLogic.IQueryEntry ParseWhere (QueryGroup, JsonObject)

Constructor Summary
Options Name Purpose
KendoFilterParser () /* Default constructor */
KendoFilterParser (character) /* Constructor. @param character (mandatory) A table name for which to construct the filter */
KendoFilterParser (character[]) /* Constructor. @param character[] (mandatory) An array of table name for which to construct the filter */


Method Detail
Top

Ccs.BusinessLogic.IGetDataRequest Parse (Object)

/* Reads and processes (parses) the filter.
Parameters:
pData Progress.Lang.Object
Returns Ccs.BusinessLogic.IGetDataRequest
Top

Ccs.BusinessLogic.IQueryEntry ParsePredicate (JoinEnum, JsonObject)

Parameters:
pJoin Ccs.BusinessLogic.JoinEnum
pFilter Progress.Json.ObjectModel.JsonObject
Returns Ccs.BusinessLogic.IQueryEntry
Top

Ccs.BusinessLogic.IQuerySortEntry ParseSortBy (Object)

/* Parses an SORT-BY phrase and returns an array of IQuerySortEntry objects.
http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-sort
Parameters:
pSortBy Progress.Lang.Object
Returns Ccs.BusinessLogic.IQuerySortEntry
IQuerySortEntry[] An array of sort phrases. An indeterminate array is returned if the input phrase is empty
Top

Ccs.BusinessLogic.IGetDataTableRequest ParseTableRequest (character, JsonObject)

/* Reads a single table's request.
This method knows which properties in the input JSON are for the where clause, for the sort-by etc
Parameters:
pTable CHARACTER
pData Progress.Json.ObjectModel.JsonObject
Returns Ccs.BusinessLogic.IGetDataTableRequest
IGetDataTableRequest A single table Get Request
Top

Ccs.BusinessLogic.IQueryEntry ParseWhere (Object)

/* Parses where/filter phrase and returns an IQueryEntry object for a single table
http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-filter
or an IQueryGroup (many clauses)
Parameters:
pWhere Progress.Lang.Object
Returns Ccs.BusinessLogic.IQueryEntry
IQueryEntry The query entry. We return one of an IQueryPredicate (single clause)
Top

Ccs.BusinessLogic.IQueryEntry ParseWhere (QueryGroup, JsonObject)

Parameters:
pGroup OpenEdge.BusinessLogic.QueryGroup
pFilter Progress.Json.ObjectModel.JsonObject
Returns Ccs.BusinessLogic.IQueryEntry


Constructor Detail
Top

KendoFilterParser ()

/* Default constructor
Top

KendoFilterParser (character)

/* Constructor.
Parameters:
pTable CHARACTER
Top

KendoFilterParser (character[])

/* Constructor.
Parameters:
pTable CHARACTER


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15