When would you use the QueryOptions class?

When would you use the QueryOptions class?

When would you use the QueryOptions class?

A.
to get database-specific hints for query optimization

B.
to limit the size of the result set, direct how the result set should be sorted, and pre cache
specified properties

C.
for optimization, providing values to parameterized queries, and database hints

D.
No suchclass exists.

Explanation:
The QueryOptions properties let you limit the size of the result set, direct how the
result set should be sorted, and precache specified properties.
You can use the atg.repository.QueryOptions class to specify ways that a query can be modified.
You can set the QueryOptions properties, and pass the QueryOptions bean to the following
executeQuery method:
RepositoryItem[] executeQuery(Query pQuery, QueryOptions pQueryOptions);
ATG Repository Guide, atg.repository.QueryOptions



Leave a Reply 0

Your email address will not be published. Required fields are marked *