Package org.exist.xquery

Examples of org.exist.xquery.CompiledXQuery.reset()


            } finally {
              if (pm != null) {
                context.getProfiler().traceQueryEnd(context);
                pm.queryCompleted(context.getWatchDog());
              }
              compiled.reset();
            context.reset();
            }
           
        } catch (final Exception e) {
          //XXX: log
View Full Code Here


        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;
    }
View Full Code Here

    } finally {
            if(compiled != null) {
                if(cache) {
                    pool.returnCompiledXQuery(querySource, compiled);
                } else {
                    compiled.reset();
                }
            }
        }
    }
View Full Code Here

         
            context.declareVariable(bindingPrefix + varName, new StringValue(varValue));
          }
         
          //reset & prepareForExecution for execution
          compiledQuery.reset();

          context.getWatchDog().reset();

            //do any preparation before execution
            context.prepareForExecution();
View Full Code Here

        } 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);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.