org.exist.xmlrpc
Class QueryResult

java.lang.Object
  extended byorg.exist.xmlrpc.QueryResult

public class QueryResult
extends java.lang.Object

Simple container for the results of a query. Used to cache query results that may be retrieved later by the client.

Author:
wolf

Field Summary
protected  XQueryContext context
           
protected  XPathException exception
           
protected  long queryTime
           
protected  Sequence result
           
protected  long timestamp
           
 
Constructor Summary
QueryResult(XPathException e)
           
QueryResult(XQueryContext context, Sequence result)
           
QueryResult(XQueryContext context, Sequence result, long queryTime)
           
 
Method Summary
 XQueryContext getContext()
           
 XPathException getException()
           
 long getQueryTime()
           
 Sequence getResult()
           
 long getTimestamp()
           
 boolean hasErrors()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queryTime

protected long queryTime

result

protected Sequence result

context

protected XQueryContext context

timestamp

protected long timestamp

exception

protected XPathException exception
Constructor Detail

QueryResult

public QueryResult(XQueryContext context,
                   Sequence result)

QueryResult

public QueryResult(XQueryContext context,
                   Sequence result,
                   long queryTime)

QueryResult

public QueryResult(XPathException e)
Method Detail

hasErrors

public boolean hasErrors()

getException

public XPathException getException()

getContext

public XQueryContext getContext()
Returns:
Returns the context.

getQueryTime

public long getQueryTime()
Returns:
Returns the queryTime.

getResult

public Sequence getResult()
Returns:
Returns the result.

getTimestamp

public long getTimestamp()
Returns:
Returns the timestamp.


<oXygen/> XML Editor provides support for editing and debugging XQuery expressions against the eXist XML Database.