|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.kwfgrid.gwes.xmldbclient.RemoteQuery
public class RemoteQuery
Encapsulates Axis2 Java stubs for eXist-DB.
| Constructor Summary | |
|---|---|
RemoteQuery(String serviceUrl)
|
|
| Method Summary | |
|---|---|
String |
connect(String userId,
String password)
Create a new user session. |
void |
disconnect(String sessionId)
Release a user session. |
String |
getResource(String sessionId,
String path,
boolean indent,
boolean xinclude)
Retrieve a document from the database. |
javax.activation.DataHandler |
getResourceData(String sessionId,
String path,
boolean indent,
boolean xinclude,
boolean processXSLPI)
Retrieve a document from the database. |
QueryServiceStub.Collection |
listCollection(String sessionId,
String path)
Get information on the specified collection. |
QueryServiceStub.QueryResponse |
query(String sessionId,
String xquery)
Execute a simple XPath query passed as string. |
String[] |
retrieve(String sessionId,
int start,
int howmany,
boolean indent,
boolean xinclude,
String highlight)
Retrieve a set of query results from the last query executed within the current session. |
String[] |
retrieveByDocument(String sessionId,
int start,
int howmany,
String path,
boolean indent,
boolean xinclude,
String highlight)
For the specified document, retrieve a set of query results from the last query executed within the current session. |
QueryServiceStub.Base64BinaryArray |
retrieveData(String sessionId,
int start,
int howmany,
boolean indent,
boolean xinclude,
String highlight)
Retrieve a set of query results from the last query executed within the current session. |
QueryServiceStub.QueryResponse |
xquery(String sessionId,
javax.activation.DataHandler xquery)
Execute an XQuery. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteQuery(String serviceUrl)
throws RemoteException
RemoteException| Method Detail |
|---|
public String connect(String userId,
String password)
throws RemoteException
QueryInterface
connect in interface QueryInterfaceRemoteException - if the user cannot log in
public String[] retrieve(String sessionId,
int start,
int howmany,
boolean indent,
boolean xinclude,
String highlight)
throws RemoteException
QueryInterface
retrieve in interface QueryInterfacesessionId - a valid session id as returned by connect().start - the first result to retrieve.howmany - number of results to be returned.indent - should the XML be pretty-printed?xinclude - should xinclude tags be expanded?highlight - highlight matching search terms within elements
or attributes. Possible values are: "elements" for elements only,
"attributes" for attributes only, "both" for elements and attributes,
"none" to disable highlighting. For elements, matching terms are
surrounded by <exist:match> tags. For attributes, terms are
marked with the char sequence "||".
RemoteException
public void disconnect(String sessionId)
throws RemoteException
QueryInterface
disconnect in interface QueryInterfacesessionId - a valid session id as returned by connect().
RemoteException
public javax.activation.DataHandler getResourceData(String sessionId,
String path,
boolean indent,
boolean xinclude,
boolean processXSLPI)
throws RemoteException
QueryInterface
getResourceData in interface QueryInterfacesessionId - a valid session id as returned by connect().path - the full path to the document.indent - should the document be pretty-printed (indented)?xinclude - should xinclude tags be expanded?processXSLPI - should XSL processing instructions be processed?
RemoteException
public QueryServiceStub.QueryResponse xquery(String sessionId,
javax.activation.DataHandler xquery)
throws RemoteException
QueryInterface
xquery in interface QueryInterfacesessionId - a valid session id as returned by connect().xquery - the XQuery script in binary encoding.
RemoteException
public QueryServiceStub.Base64BinaryArray retrieveData(String sessionId,
int start,
int howmany,
boolean indent,
boolean xinclude,
String highlight)
throws RemoteException
QueryInterface
retrieveData in interface QueryInterfacesessionId - a valid session id as returned by connect().start - the first result to retrieve.howmany - number of results to be returned.indent - should the XML be pretty-printed?xinclude - should xinclude tags be expanded?highlight - highlight matching search terms within elements
or attributes. Possible values are: "elements" for elements only,
"attributes" for attributes only, "both" for elements and attributes,
"none" to disable highlighting. For elements, matching terms are
surrounded by <exist:match> tags. For attributes, terms are
marked with the char sequence "||".
RemoteException
public String[] retrieveByDocument(String sessionId,
int start,
int howmany,
String path,
boolean indent,
boolean xinclude,
String highlight)
throws RemoteException
QueryInterface
retrieveByDocument in interface QueryInterfacesessionId - a valid session id as returned by connect().start - the first result to retrieve.howmany - number of results to be returned.path - the full path to the document.indent - should the XML be pretty-printed?xinclude - should xinclude tags be expanded?highlight - highlight matching search terms within elements
or attributes. Possible values are: "elements" for elements only,
"attributes" for attributes only, "both" for elements and attributes,
"none" to disable highlighting. For elements, matching terms are
surrounded by <exist:match> tags. For attributes, terms are
marked with the char sequence "||".
RemoteException
public QueryServiceStub.Collection listCollection(String sessionId,
String path)
throws RemoteException
QueryInterface
listCollection in interface QueryInterfacesessionId - a valid session id as returned by connect().path - the full path to the collection.
RemoteException
public String getResource(String sessionId,
String path,
boolean indent,
boolean xinclude)
throws RemoteException
QueryInterface
getResource in interface QueryInterfacesessionId - a valid session id as returned by connect().path - the full path to the document.indent - should the document be pretty-printed (indented)?xinclude - should xinclude tags be expanded?
RemoteException
public QueryServiceStub.QueryResponse query(String sessionId,
String xquery)
throws RemoteException
QueryInterface
query in interface QueryInterfacesessionId - a valid session id as returned by connect().xquery - XPath query string.
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||