Package com.dassault_systemes.catweb.databackend.dataType |
com.dassault_systemes.catweb.databackend.dataType.QueryDataIF
Framework : CATJDataAccessBasicModel
Module : PLAdatabackend
public interface QueryDataIF
Interface to communicate beetween the Driver and the Portal Query panel.
Three methods are provided:
- CountResultEx gives the number of elements which conform to a criteria.
- QueryEx which enable you to get the elements which conform to a criteria and a QueyrContext.
- A simple criteria, the query is a String. An extended criteria, the query is an array of attribute, operator, operand.
- A QueryContext defines the inferior and superior limits for your query (ex: [0, 100] or [30, 80])
isQueryPerPageSupported
boolean isQueryPerPageSupported(PEType iType)
Determines whether the QueryContext criteria is supported on this type
- Parameters:
iTypeId
- The identifier of Object needed.
- Returns:
true if the QueryContext criteria is supported; false otherwise
CountResultEx
int CountResultEx(Object iSearch, PEType iType, String iEnvironment)
Enables to count the number of elements conforming to a criteria.
- Parameters:
iSearch
- The iSearch Object is an instance of String if you made a simple query
or is an instance of ElementOfQuery if you made an extended query.
iTypeId
- The identifier of Object needed.
iEnvironment
- The environment to perform the query.
- Returns:
Returns the number of elements.
QueryEx
PEResultSet QueryEx(Object iSearch, PEType iType, String iEnvironment, QueryContext ctx)
Enables to query Root conforming to a criteria and a QueryContext.
- Parameters:
iSearch
- The iSearch Object is an instance of String if you made a simple query
or is an instance of ElementOfQuery if you made an extended query.
iTypeId
- The identifier of Object needed.
iEnvironment
- The environment to perform the query.
ctx
- The limits to perform the Query.
- Returns:
Returns the result of the query as a PEResultSet.
Copyright © 2000, Dassault Systèmes. All rights reserved