com.univocity.api.config.builders
Interface QueryResult


public interface QueryResult

The QueryResult configuration is obtained from a QueryDefinition, and is used to determine how to read the results obtained by the execution of a query. Any query can be used as a regular FunctionCall. In case a query returns a Dataset, it can also be used as the source entity in one or more EntityMappings.

Author:
uniVocity Software Pty Ltd - dev@univocity.com
See Also:
QuerySetup, QueryResult, QueryResultReader, EntityMapping, DataIntegrationEngine

Method Summary
 void returnDataset()
          Uses the result of the query as a Dataset.
 QueryResultReader returnMultipleRows()
          Expects the query to return multiple rows.
 QueryResultReader returnSingleRow()
          Expects the query to return a single row, with multiple values.
 QueryResultReader returnSingleValue()
          Expects the query to return a single value.
 

Method Detail

returnSingleValue

QueryResultReader returnSingleValue()
Expects the query to return a single value.

Returns:
the next step of this configuration: configure functions to be executed against the result.

returnSingleRow

QueryResultReader returnSingleRow()
Expects the query to return a single row, with multiple values.

Returns:
the next step of this configuration: configure functions to be executed against the result.

Note: the functions must support Object[] as a parameter.


returnMultipleRows

QueryResultReader returnMultipleRows()
Expects the query to return multiple rows.

Returns:
the next step of this configuration: configure functions to be executed against the result.

Note: the functions must support Object[][] as a parameter.


returnDataset

void returnDataset()
Uses the result of the query as a Dataset. This allows the query to be used as the source entity of any EntityMapping. Note that the results of this query are kept in memory and reused according to the scope associated with it.

This completes the configuration started in DataIntegrationEngine.addQuery(EngineScope, String)



Copyright © 2015 uniVocity Software Pty Ltd. All rights reserved.