|
dbXML XML-RPC API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.xmldatabases.xmlrpc.RPCOperations
Provides the basic implementation for XML-RPC support in dbXML.
| Constructor Summary | |
RPCOperations()
|
|
| Method Summary | |
java.lang.String |
createNewOID(java.lang.String collectionName)
Creates a new unique OID for this collection. |
java.lang.String |
getDocument(java.lang.String collectionName,
java.lang.String id)
Retrieves a document from the collection |
int |
getDocumentCount(java.lang.String collectionName)
Returns the number of documents stored in this collection. |
java.lang.String |
insertDocument(java.lang.String collectionName,
java.lang.String id,
java.lang.String content)
Inserts a new document into the collection |
java.util.Vector |
listCollections(java.lang.String collectionName)
Lists all child collections under this collection |
java.util.Vector |
listDocuments(java.lang.String collectionName)
Returns a set containing all documents in the collection. |
java.lang.String |
queryCollection(java.lang.String collectionName,
java.lang.String type,
java.lang.String query,
java.util.Hashtable namespaces)
Executes a query against a collection |
java.lang.String |
queryDocument(java.lang.String collectionName,
java.lang.String style,
java.lang.String query,
java.util.Hashtable namespaces,
java.lang.String id)
Executes a query against a Document in this collection |
int |
removeDocument(java.lang.String collectionName,
java.lang.String id)
Deletes a document from the collection. |
java.lang.String |
setDocument(java.lang.String collectionName,
java.lang.String id,
java.lang.String content)
Sets a document in the collection. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RPCOperations()
| Method Detail |
public java.lang.String setDocument(java.lang.String collectionName,
java.lang.String id,
java.lang.String content)
throws java.lang.Exception
collectionName - The name of the collection including database
instance.id - The id of the Document to setcontent - The new Document valuejava.lang.Exception - thrown if the document can't be found.
public java.lang.String getDocument(java.lang.String collectionName,
java.lang.String id)
throws java.lang.Exception
collectionName - The name of the collection including database
instance.id - The id of the document to retrievejava.lang.Exception - thrown if the document can't be found
public int getDocumentCount(java.lang.String collectionName)
throws java.lang.Exception
collectionName - The name of the collection including database
instance.java.lang.Exception - Thrown if any internal error occurs
public java.util.Vector listCollections(java.lang.String collectionName)
throws java.lang.Exception
collectionName - The name of the collection including database
instance.java.lang.Exception - Thrown if any internal error occurs
public java.lang.String insertDocument(java.lang.String collectionName,
java.lang.String id,
java.lang.String content)
throws java.lang.Exception
collectionName - The name of the collection including database
instance.id - The id to insert the document under or the empty string if a new
id should be generated automatically.content - The Document to insertjava.lang.Exception - Thrown if there is a parse error or other internal
error
public int removeDocument(java.lang.String collectionName,
java.lang.String id)
throws java.lang.Exception
collectionName - The name of the collection including database
instance.id - The id of the Document to deletejava.lang.Exception - thrown if the document could not be found or any
other internal error occurs.
public java.util.Vector listDocuments(java.lang.String collectionName)
throws java.lang.Exception
collectionName - The name of the collection including database
instance.java.lang.Exception - thrown if any internal error occurs.
public java.lang.String createNewOID(java.lang.String collectionName)
throws java.lang.Exception
collectionName - The name of the collection including database
instance.java.lang.Exception - thrown id any internal error occurs
public java.lang.String queryCollection(java.lang.String collectionName,
java.lang.String type,
java.lang.String query,
java.util.Hashtable namespaces)
throws java.lang.Exception
collectionName - The name of the collection including database
instance.type - The type of query to execute. Valid values are XPath and
XQuery.query - The query string to execute, should be in the proper syntax
for the style specifiednamespaces - A Hashtable containing namespace definitions. The key is
the namespace prefix and the value is the namespace URIjava.lang.Exception - thrown if any internal error occurs
public java.lang.String queryDocument(java.lang.String collectionName,
java.lang.String style,
java.lang.String query,
java.util.Hashtable namespaces,
java.lang.String id)
throws java.lang.Exception
collectionName - The name of the collection including database
instance.type - the type of query to execute. Valid values are XPath and
XQueryquery - The query string to execute, should be in the proper syntax
for the style specifiednamespaces - A Hashtable containing namespace definitions. The key is
the namespace prefix and the value is the namespace URIid - the id of the document to query.java.lang.Exception - thrown if any internal error occurs
|
dbXML XML-RPC API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||