SAP J2EE Engine

Version 6.40


com.sapportals.connector.execution.objects
Interface IAbstractQuery

All Known Subinterfaces:
INativeQuery, IQuery

public interface IAbstractQuery

The abstract interface for query

Version:
1.0

Method Summary
 void cancel()
          Cancels the query if it is asynchronous
 int retrieveQueryChunkSize()
          Returns the maximum rows number in a RecordSet that is received as a return value of the retrieveResultSet() method.
 int retrieveQueryTimeOut()
          Returns the maximum time to execute the query.
 void setQueryChunkSize(int chunkSize)
          Sets the maximum rows number in a RecordSet that is received as a return value of the retrieveResultSet() method.
 void setQueryTimeOut(int msTimeOut)
          Sets the maximum time to execute the query.
 

Method Detail

cancel

public void cancel()
            throws ConnectorException
Cancels the query if it is asynchronous

setQueryTimeOut

public void setQueryTimeOut(int msTimeOut)
Sets the maximum time to execute the query.
Parameters:
msTimeOut - The time to wait in milliseconds.

retrieveQueryTimeOut

public int retrieveQueryTimeOut()
Returns the maximum time to execute the query.
Returns:
The time to wait in milliseconds.

setQueryChunkSize

public void setQueryChunkSize(int chunkSize)
Sets the maximum rows number in a RecordSet that is received as a return value of the retrieveResultSet() method. The result of an execution of a query is a record set. In order to be able to control the number of rows that are retrieved from the query result, set the chunk size to that number of rows, and use the next() method to move to the next chunk.
Parameters:
chunkSize - the number of rows for each record set chunk

retrieveQueryChunkSize

public int retrieveQueryChunkSize()
Returns the maximum rows number in a RecordSet that is received as a return value of the retrieveResultSet() method.
Returns:
int the number of rows for each result set chunk

SAP J2EE Engine

Version 6.40


Copyright © 2001-2005 SAP AG. All Rights Reserved.