|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XmlDb
API for an XQuery based service.
Nested Class Summary | |
---|---|
static interface |
XmlDb.BatchTaskResult
A Future for the List of Serializable XmlResource IDs processed in the batch process. |
static interface |
XmlDb.SearchResultsMetadata
Metadata about SearchResults. |
static class |
XmlDb.State
A state. |
static interface |
XmlDb.XQuerySearchCriteria
XQuery search criteria. |
static interface |
XmlDb.XQuerySearchResults
Search results object. |
Method Summary | |
---|---|
void |
close()
Dispose of any open resources and close the database. |
boolean |
delete(java.io.Serializable id)
Delete an XML resource based on its ID. |
java.lang.Integer |
deleteByXQuery(XmlDb.XQuerySearchCriteria criteria)
Delete a set of XML resources that match the results of an XQuery. |
XmlDb.XQuerySearchResults |
executeXQuery(XmlDb.XQuerySearchCriteria criteria)
Execute an XQuery program and return the results. |
XmlResource |
get(java.io.Serializable id)
Get an XML resource based on its ID. |
XmlDb.State |
getState()
Get the State of the XmlDb. |
XmlDb.BatchTaskResult |
processBatch(java.lang.Iterable<XmlResource> resources,
XmlDbBatchHandler handler)
Process a set of XmlResource objects. |
java.io.Serializable |
storeXml(XmlResource resource)
Store an XML resource in the DB. |
Method Detail |
---|
java.io.Serializable storeXml(XmlResource resource)
resource
- the resource to store
XmlResource get(java.io.Serializable id)
id
- the ID of the resource to get
java.lang.Integer deleteByXQuery(XmlDb.XQuerySearchCriteria criteria)
criteria
- the XQuery criteria
boolean delete(java.io.Serializable id)
id
- the ID of the resource to delete
XmlDb.BatchTaskResult processBatch(java.lang.Iterable<XmlResource> resources, XmlDbBatchHandler handler)
resources
- the resources to processhandler
- the handler for each XmlResource
XmlDb.XQuerySearchResults executeXQuery(XmlDb.XQuerySearchCriteria criteria)
Note that some implementations might have requirements as to how
this list is garbage collected or treated once finished. Users of this
API should call List.clear()
when finished using the returned
List instance so that the implementation can free any required resources.
criteria
- the XQuery search criteria to execute
void close()
Once this method is called, the XmlDb instance is not expected to be used again and does not need to execute other methods successfully if called.
This method should be allowed to be called even if it has been called previously on the same instance.
XmlDb.State getState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |