137138139140141142143144145146147
} finally { if (pm != null) { context.getProfiler().traceQueryEnd(context); pm.queryCompleted(context.getWatchDog()); } compiled.reset(); context.reset(); } } catch (final Exception e) { //XXX: log
7273747576777879808182
if(xquery == null) { xquery = XQueryCompiler.compile(broker, xqueryLocation); } //reset the state of the query xquery.reset(); xquery.getContext().getWatchDog().reset(); xquery.getContext().prepareForExecution(); return xquery; }
467468469470471472473474475476477
} finally { if(compiled != null) { if(cache) { pool.returnCompiledXQuery(querySource, compiled); } else { compiled.reset(); } } } }
461462463464465466467468469470471
context.declareVariable(bindingPrefix + varName, new StringValue(varValue)); } //reset & prepareForExecution for execution compiledQuery.reset(); context.getWatchDog().reset(); //do any preparation before execution context.prepareForExecution();
523524525526527528529530531532533
} finally { if (pm != null) { context.getProfiler().traceQueryEnd(context); pm.queryCompleted(context.getWatchDog()); } compiledQuery.reset(); context.reset(); } if (!isBefore) { TriggerStatePerThread.setTriggerRunningState(TriggerStatePerThread.NO_TRIGGER_RUNNING, this, null);