Package com.dassault_systemes.enovwebsrvr.ews0infra.interfaces

   
Interface ENOVIQuery

 
Class Hierarchy
com.dassault_systemes.enovwebsrvr.ews0infra.interfaces.ENOVIQuery
Class Location

Framework : ENOVWebSrvr

Module : EWS0Infra

Class Description

public interface ENOVIQuery

Interface for query execution.

Field Summary
String DRIVER_CATEGORY
String OPERATOR_EQ
String OPERATOR_NEQ
String OPERATOR_LT
String OPERATOR_LTE
String OPERATOR_GT
String OPERATOR_GTE
String OPERATOR_LIKE
String OPERATOR_BETWEEN
String OPERATOR_IN
String OPERATOR_NOT_IN

Constructor Summary

Method Summary
boolean initialize(String DataType)
void setCaseSensitive(boolean iCaseSensitive)
void setGetAllVersions(boolean iGetAllVersions)
boolean addCriteria(String iAttrID, String iExpression)
boolean addCriteria(ENOVIAttribute iAttr, String iExpression)
boolean addCriteria(String iAttrID, String iExpression, int iRow)
boolean addCriteria(ENOVIAttribute iAttr, String iExpression, int iRow)
boolean addCriteria(ENOVIAttribute iAttr, String iOperator, String iOperand, int iRow)
boolean setOrderBy(String iAttrID, boolean iAsc)
boolean setOrderBy(ENOVIAttribute iAttr, boolean iAsc)
int runQuery()
ENOVIDataObject[] getQueryResults(int startingElement, int numElements)
ENOVIDataObject[] getQueryResults()
String getQueryXml()


Field Detail

DRIVER_CATEGORY

    String DRIVER_CATEGORY
The category value passed to the ENOVWebDriverDefinition class to retrieve the driver instance.


OPERATOR_EQ

    String OPERATOR_EQ


OPERATOR_NEQ

    String OPERATOR_NEQ


OPERATOR_LT

    String OPERATOR_LT


OPERATOR_LTE

    String OPERATOR_LTE


OPERATOR_GT

    String OPERATOR_GT


OPERATOR_GTE

    String OPERATOR_GTE


OPERATOR_LIKE

    String OPERATOR_LIKE


OPERATOR_BETWEEN

    String OPERATOR_BETWEEN


OPERATOR_IN

    String OPERATOR_IN


OPERATOR_NOT_IN

    String OPERATOR_NOT_IN


Constructor Detail

Method Detail

initialize

    boolean initialize(String DataType)

Initialize the data type for the query.

Returns:
true if initialization was successful, false otherwise.

setCaseSensitive

    void setCaseSensitive(boolean iCaseSensitive)

Specifies the case sensitivity for the query. Default case sensitivity is implemenation specific.


setGetAllVersions

    void setGetAllVersions(boolean iGetAllVersions)

Specifies retrieval of all versions or only the latest (where applicable)


addCriteria

    boolean addCriteria(String iAttrID, String iExpression)

Adds query criteria to row 0. The user expression will be parsed and the operator is assumed to be "like". Returns true if criteria was added successfully

Returns:
true if criteria was added successfully, false otherwise

addCriteria

    boolean addCriteria(ENOVIAttribute iAttr, String iExpression)

Adds query criteria to row 0. The user expression will be parsed and the operator is assumed to be "like". Returns true if criteria was added successfully

Returns:
true if criteria was added successfully, false otherwise

addCriteria

    boolean addCriteria(String iAttrID, String iExpression, int iRow)

Adds query criteria for a specific row, where each row of criteria are "OR" conditions. The user expression will be parsed and the operator is assumed to be "like". Returns true if criteria was added successfully

Returns:
true if criteria was added successfully, false otherwise

addCriteria

    boolean addCriteria(ENOVIAttribute iAttr, String iExpression, int iRow)

Adds query criteria for a specific row, where each row of criteria are "OR" conditions. The user expression will be parsed and the operator is assumed to be "like". Returns true if criteria was added successfully

Returns:
true if criteria was added successfully, false otherwise

addCriteria

    boolean addCriteria(ENOVIAttribute iAttr, String iOperator, String iOperand, int iRow)

Adds query criteria for a specific row. Returns true if criteria was added successfully

Returns:
true if criteria was added successfully, false otherwise

setOrderBy

    boolean setOrderBy(String iAttrID, boolean iAsc)


setOrderBy

    boolean setOrderBy(ENOVIAttribute iAttr, boolean iAsc)


runQuery

    int runQuery()

Executes the query and returns the number of results.


getQueryResults

    ENOVIDataObject[] getQueryResults(int startingElement, int numElements)

Executes the query and returns the data range from the query. The startingElement index is base 0.


getQueryResults

    ENOVIDataObject[] getQueryResults()

Returns all results for the query


getQueryXml

    String getQueryXml()

Gets an xml string representation of this query



Copyright © 2000, Dassault Systèmes. All rights reserved