org.gcube.informationsystem.collector.impl.xmlstorage.exist
Class XQuery
java.lang.Object
org.gcube.informationsystem.collector.impl.xmlstorage.exist.XQuery
public class XQuery
- extends java.lang.Object
XQuery to be executed
Constructor Summary |
XQuery(java.io.FileReader file)
|
XQuery(java.lang.String xquery)
|
Method Summary |
ResourceSet |
execute(Collection col)
Executes the query on the given base collection |
java.lang.String |
toString()
Returns the xquery string |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XQuery
public XQuery(java.lang.String xquery)
XQuery
public XQuery(java.io.FileReader file)
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Returns the xquery string
- Overrides:
toString
in class java.lang.Object
execute
public ResourceSet execute(Collection col)
throws java.lang.Exception
- Executes the query on the given base collection
- Parameters:
col
-
- Throws:
java.lang.Exception