|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The IXMLDBFacade
defines the implementation of a facade to XML database
data access layer providing simple methods to the base web controllers and tiles components
Method Summary | |
java.lang.String |
insertUpdateXMLDocument(java.lang.String xmlDocument,
java.lang.String docID,
java.lang.String collectionPath)
insert or update a String xml document |
org.w3c.dom.Node |
queryResourceWithXPathCollectionAsString(java.lang.String resourceId,
java.lang.String xPathQuery,
java.lang.String collectionPath)
query a specific resource with xpath |
org.w3c.dom.Node |
queryWithXPathCollectionAsString(java.lang.String xPathQuery,
java.lang.String collectionPath)
query a collection with xpath |
org.w3c.dom.Node |
queryWithXPathCollectionAsString(java.lang.String xPathQuery,
java.lang.String collectionPath,
int noResults)
query a collection with xpath and limit the number of results obtained |
org.w3c.dom.Node |
queryWithXQueryCollectionAsString(java.lang.String xQuery,
java.lang.String collectionPath)
query a collection with an XQuery |
org.w3c.dom.Node |
queryWithXQueryCollectionAsString(java.lang.String xQuery,
java.lang.String collectionPath,
int noResults)
query a collection with XQuery and limit to a number of results to return |
org.w3c.dom.Node |
queryWithXQueryCollectionAsString(java.lang.String xQuery,
java.lang.String collectionPath,
java.util.Map variables)
query a collection with XQuery using a map of subsitiution parameters in the xquery |
org.w3c.dom.Node |
queryWithXQueryCollectionAsString(java.lang.String xQuery,
java.lang.String collectionPath,
java.util.Map variables,
int noResults)
query a collection with XQuery using a map of subsitiution parameters in the xquery. |
boolean |
removeDocument(java.lang.String docID,
java.lang.String collectionPath)
remove a document from the xml database |
org.xmldb.api.base.Resource |
retrieveDocumentAsResource(java.lang.String docID,
java.lang.String collectionPath)
Retrieve a XML:DB Resource object which could a XML or binary document |
java.lang.String |
retrieveDocumentAsString(java.lang.String docID,
java.lang.String collectionPath)
Retrieve a XML document as a String given the document id and collection path |
void |
xupdateCollection(java.lang.String xupdate,
java.lang.String collectionPath)
run an xupdate command on an collection in the xml database |
void |
xupdateXMLDocument(java.lang.String xupdate,
java.lang.String docID,
java.lang.String collectionPath)
run an xupdate command on an XML document |
Method Detail |
public void xupdateXMLDocument(java.lang.String xupdate, java.lang.String docID, java.lang.String collectionPath)
xupdate
- the String representation of xupdate commandsdocID
- the document id to insert or update undercollectionPath
- the collection path to insert or update the document in
public void xupdateCollection(java.lang.String xupdate, java.lang.String collectionPath)
xupdate
- the String representation of xupdate commandcollectionPath
- the collection path to insert or update the document in
public java.lang.String insertUpdateXMLDocument(java.lang.String xmlDocument, java.lang.String docID, java.lang.String collectionPath)
xmlDocument
- the String representation of xml documentdocID
- the document id to insert or update undercollectionPath
- the collection path to insert or update the document in
public boolean removeDocument(java.lang.String docID, java.lang.String collectionPath)
docID
- the id of the document to removecollectionPath
- the collection path the document is in
public java.lang.String retrieveDocumentAsString(java.lang.String docID, java.lang.String collectionPath)
docID
- the id of the document to retrievecollectionPath
- the collection the document is under
public org.xmldb.api.base.Resource retrieveDocumentAsResource(java.lang.String docID, java.lang.String collectionPath)
docID
- the resource id to retrievecollectionPath
- the collection the resource is under
public org.w3c.dom.Node queryWithXPathCollectionAsString(java.lang.String xPathQuery, java.lang.String collectionPath) throws XMLParsingException
xPathQuery
- the xpath querycollectionPath
- the collection path to query
XMLParsingException
public org.w3c.dom.Node queryWithXPathCollectionAsString(java.lang.String xPathQuery, java.lang.String collectionPath, int noResults) throws XMLParsingException
xPathQuery
- the xpath querycollectionPath
- the colleciton path to querynoResults
- the max number of results to return. 0 will return all
XMLParsingException
public org.w3c.dom.Node queryResourceWithXPathCollectionAsString(java.lang.String resourceId, java.lang.String xPathQuery, java.lang.String collectionPath) throws XMLParsingException
resourceId
- the resource id to queryxPathQuery
- the xpath querycollectionPath
- the collection path the resource is in
XMLParsingException
public org.w3c.dom.Node queryWithXQueryCollectionAsString(java.lang.String xQuery, java.lang.String collectionPath) throws XMLParsingException
xQuery
- the xquery to usecollectionPath
- the collection to query
XMLParsingException
public org.w3c.dom.Node queryWithXQueryCollectionAsString(java.lang.String xQuery, java.lang.String collectionPath, int noResults) throws XMLParsingException
xQuery
- the xquery to usecollectionPath
- the collection to querynoResults
- the max number of results to return. 0 will return all
XMLParsingException
public org.w3c.dom.Node queryWithXQueryCollectionAsString(java.lang.String xQuery, java.lang.String collectionPath, java.util.Map variables) throws XMLParsingException
xQuery
- teh xquery to usecollectionPath
- the collection to queryvariables
- map of variables which can be used for substitution in the query
XMLParsingException
public org.w3c.dom.Node queryWithXQueryCollectionAsString(java.lang.String xQuery, java.lang.String collectionPath, java.util.Map variables, int noResults) throws XMLParsingException
xQuery
- teh xquery to usecollectionPath
- the collection to queryvariables
- map of variables which can be used for substitution in the querynoResults
- max results to return. 0 will return all.
XMLParsingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |