XmlQueryContext::setEvaluationType

API Ref

#include <DbXml.hpp>

void XmlQueryContext::setEvaluationType(EvaluationType type);

EvaluationType XmlQueryContext::getEvaluationType();


Description: XmlQueryContext::setEvaluationType

Allows the application to set the query evaluation type to "eager" or "lazy". Eager evaluation means that the whole query is executed and its resultant values derived and stored in-memory before evaluation of the query is completed. Lazy evaluation means that minimal processing is performed before the query is completed, and the remaining processing is deferred until the result set is enumerated. As each call to XmlResults::next is called the next resultant value is determined.

Parameters

type
The evaluation type must be specified as either:
XmlQueryContext::Eager
The query is executed and its resultant values are derived and stored in-memory before evaluation of the query is completed.
XmlQueryContext::Lazy
Minimal processing is performed before evaluation of the query is completed, and the remaining processing is deferred until the result set is enumerated.

Description: XmlQueryContext::getEvaluationType

Discover the evaluation type defined for this XmlQueryContext.

Returns the evaluation type defined for this XmlQueryContext.


APIRef

Copyright (c) 1996,2007 Oracle. All rights reserved.