public class QueryEvent extends AbstractEvent
Represents the event type for GRC API's IQueryService query operations. The available information in this event are the SQL statement to be executed, the starting row index for the row results to be fetched, and the query options: max rows, honor primary, page size and reporting period.
TriggerEventType.QUERY_OBJECTS| Constructor and Description |
|---|
QueryEvent(TriggerEventType triggerEventType,
java.lang.String sqlQuery,
int startIndex,
com.ibm.openpages.service.query.QueryOptions queryOptions,
TriggerPositionType position,
Context context)
Constructor with query event parameters.
|
QueryEvent(TriggerPositionType position,
Context context)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.ibm.openpages.service.query.QueryOptions |
getQueryOptions()
Returns the query options for this event.
|
java.lang.String |
getSqlQuery()
Returns query syntax SQL query for this event as produced
by the user.
|
int |
getStartIndex()
Returns the starting row index for this event.
|
getContext, getPosition, getTriggerEventType, hasOuterCreateWithRelationsEventpublic QueryEvent(TriggerPositionType position, Context context)
position - either pre or postcontext - the Context for the APIpublic QueryEvent(TriggerEventType triggerEventType, java.lang.String sqlQuery, int startIndex, com.ibm.openpages.service.query.QueryOptions queryOptions, TriggerPositionType position, Context context)
triggerEventType - QUERY_OBJECTS event typesqlQuery - SQL querystartIndex - starting row indexqueryOptions - query optionsposition - either pre or postcontext - the Context for the APIpublic java.lang.String getSqlQuery()
public int getStartIndex()
public com.ibm.openpages.service.query.QueryOptions getQueryOptions()
Licensed Materials - Property of IBM
OpenPages with Watson (PID: 5725-D51)
© Copyright IBM Corporation 2013, 2021. All Rights Reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.