|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectno.sintef.xmldb.XmlDbHandler
XML:DB database handler.
| Method Summary | |
org.xmldb.api.modules.XMLResource |
createXmlResource(java.lang.String parent)
Create XMLResource in specified collection. |
void |
deleteResource(org.xmldb.api.modules.XMLResource resource)
Delete XMLResource. |
static XmlDbHandler |
getHandler()
Gets the XmlDbHandler instance. |
org.xmldb.api.modules.XMLResource |
getSingleXmlResource(java.lang.String parent,
java.lang.String query,
java.util.Map namespaceMappings)
Get first XMLResource in collection matching specified query. |
org.xmldb.api.modules.XMLResource[] |
getXmlResources(java.lang.String parent,
java.lang.String query,
java.util.Map namespaceMappings)
Get XMLResources in collection matching specified query. |
void |
storeResource(org.xmldb.api.modules.XMLResource resource)
Store an XMLResource in the database. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static XmlDbHandler getHandler()
public org.xmldb.api.modules.XMLResource getSingleXmlResource(java.lang.String parent,
java.lang.String query,
java.util.Map namespaceMappings)
parent - full path of parent collection, using '/' as path separatorquery - XPath query stringnamespaceMappings - prefix -> namespace URI mappings
public org.xmldb.api.modules.XMLResource[] getXmlResources(java.lang.String parent,
java.lang.String query,
java.util.Map namespaceMappings)
parent - full path of parent collection, using '/' as path separatorquery - XPath querynamespaceMappings - prefix -> namespace URI mappings
public org.xmldb.api.modules.XMLResource createXmlResource(java.lang.String parent)
parent - full path of parent collection to create resource in, using
'/' as path separator
public void deleteResource(org.xmldb.api.modules.XMLResource resource)
throws org.xmldb.api.base.XMLDBException
resource - resource to delete
org.xmldb.api.base.XMLDBException - if resource cannot be deleted from database
public void storeResource(org.xmldb.api.modules.XMLResource resource)
throws org.xmldb.api.base.XMLDBException
resource - the XMLResource to store
org.xmldb.api.base.XMLDBException - if error occurs when storing resource in database
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||