Examples of returnCompiledXQuery()


Examples of org.exist.storage.XQueryPool.returnCompiledXQuery()

                }

                writeResults(response, broker, resultSequence, howmany, start, typed, outputProperties, wrap);

            } finally {
                pool.returnCompiledXQuery(source, compiled);
            }

        } catch (final IOException e) {
            throw new BadRequestException(e.getMessage(), e);
        }
View Full Code Here

Examples of org.exist.storage.XQueryPool.returnCompiledXQuery()

            final Sequence result = xquery.execute(compiled, null, outputProperties);
            writeResults(response, broker, result, -1, 1, false, outputProperties, wrap);

        } finally {
            context.runCleanupTasks();
            pool.returnCompiledXQuery(source, compiled);
        }
    }

    /**
     * Directly execute an XProc stored as a XML document in the database.
View Full Code Here

Examples of org.exist.storage.XQueryPool.returnCompiledXQuery()

        try {
            final Sequence result = xquery.execute(compiled, null, outputProperties);
            writeResults(response, broker, result, -1, 1, false, outputProperties, false);
        } finally {
            pool.returnCompiledXQuery(source, compiled);
        }
    }

    public void setCreatedAndLastModifiedHeaders(
        final HttpServletResponse response, long created, long lastModified) {
View Full Code Here

Examples of org.exist.storage.XQueryPool.returnCompiledXQuery()

                    final long startTime = System.currentTimeMillis();
                    result = xquery.execute(compiled, null, outputProperties);
                    final long queryTime = System.currentTimeMillis() - startTime;
                    LOG.info("XQuery execution results: " + result.toString()  + " in " + queryTime + "ms.");
                } finally {
                    xqpool.returnCompiledXQuery(source, compiled);
                }

            } catch (final Exception e) {
                LOG.error("Exception while executing [" + xqueryResourcePath + "] script for " + subject.getName(), e);
            }
View Full Code Here

Examples of org.exist.storage.XQueryPool.returnCompiledXQuery()

        if(compiled == null)
            {compiled = xquery.compile(context, source);}
        try {
            result = xquery.execute(compiled, null, properties);
        } finally {
            pool.returnCompiledXQuery(source, compiled);
        }
      } catch (final EXistException e) {
        throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e);
      } catch (final XPathException e) {
        throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e);
View Full Code Here

Examples of org.exist.storage.XQueryPool.returnCompiledXQuery()

        try {
      return xquery.execute(compiled, null, outputProperties);
    } finally {
            queryContext.runCleanupTasks();
      xqyPool.returnCompiledXQuery(sourceInfo.source, compiled);
    }
    }

    protected String adjustPathForSourceLookup(String basePath, String path) {
      if (LOG.isTraceEnabled()) {
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.