Support of Deferred Binding


When configured to use deferred binding, DataDirect XQuery does not use the value bound to a variable until the value is needed, and it enables DataDirect XQuery to use its XML streaming feature. For such reasons, deferred binding can result in performance and scalability benefits. See Querying Large XML Documents for information about the XML streaming feature.

To set deferred binding, use the setBindingMode() method of the XQStaticContext interface. For example:

XQStaticContext cntxt = conn.getStaticContext(); 
cntxt.setBindingMode(XQConstants.BINDING_MODE_DEFERRED); 
conn.setStaticContext(cntxt);