Package org.exist.xquery

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


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


            session.addQueryResult(seq);
            resp.setCollections(new QueryResponseCollections(collections));
            resp.setHits(seq.getItemCount());
            resp.setQueryTime(System.currentTimeMillis() - start);
            expr.reset();
            context.reset();
        } catch (final Exception e) {
            LOG.debug(e.getMessage(), e);
            throw new RemoteException("query execution failed: " + e.getMessage());
        } finally {
            pool.release(broker);
View Full Code Here

      throw new SAXException(e);
    } catch (final XPathException e) {
      throw new SAXException(e);
    } finally {
            if (context != null)
                {context.reset(false);}
        }
  }

  /* (non-Javadoc)
   * @see org.xml.sax.ext.LexicalHandler#comment(char[], int, int)
View Full Code Here

          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);
          TriggerStatePerThread.setTransaction(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.