|
SAP J2EE Engine Version 6.40 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The base interface for execution of operations defined in the language package.
| Method Summary | |
void |
cancel()
cancels the operation (for asynchronous execution) |
void |
close()
Releases the execution object. |
int |
execute(IOperation operation)
Execute the operation after translating it to connector-specific language |
int |
getQueryChunkSize()
Returns the maximum rows number in a RecordSet that is received as a return value of the retrieveResultSet() method. |
int |
getTimeOut()
Returns the maximum time to execute the operation. |
boolean |
nextRecordSet()
Moves to the next record set. |
IRecordSet |
retrieveRecordSet()
Returns the current record set. |
void |
setQueryChunkSize(int chunkSize)
Sets the maximum rows number in a RecordSet that is received as a return value of the retrieveResultSet() method. |
void |
setTimeOut(int msTimeOut)
Sets the maximum time to operation the query. |
| Method Detail |
public void setTimeOut(int msTimeOut)
msTimeOut - The time to wait in milliseconds.public int getTimeOut()
public void setQueryChunkSize(int chunkSize)
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.chunkSize - the number of rows for each record set chunkpublic int getQueryChunkSize()
retrieveResultSet() method.
public int execute(IOperation operation)
throws ExecutionException,
ConnectorException
operation - the operation object to executeExecutionException -
public IRecordSet retrieveRecordSet()
throws ConnectorException
IRecordSet
is a set of rows (a subset of java.sql.ResultSet). The
number of rows in every record set is determined using the method
setQueryChunkSize(). Subsequent calls to
retrieveRecordSet() return the same record set object
public boolean nextRecordSet()
throws ConnectorException
IRecordSet is
a set of rows (a subset of java.sql.ResultSet). The
number of rows in every record set is determined using the method
setQueryChunkSize()
public void close()
throws ConnectorException
public void cancel()
throws ConnectorException
|
SAP J2EE Engine Version 6.40 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||