Uses of Class
org.xmldb.api.base.XMLDBException
-
Packages that use XMLDBException Package Description org.xmldb.api org.xmldb.api.base org.xmldb.api.modules -
-
Uses of XMLDBException in org.xmldb.api
Methods in org.xmldb.api that throw XMLDBException Modifier and Type Method Description static voidDatabaseManager. deregisterDatabase(Database database)Deregisters aDatabaseimplementation from theDatabaseManager.static CollectionDatabaseManager. getCollection(java.lang.String uri)Retrieves aCollectioninstance from the database for the given URI.static CollectionDatabaseManager. getCollection(java.lang.String uri, java.lang.String username, java.lang.String password)Retrieves aCollectioninstance from the database for the given URI.static java.lang.StringDatabaseManager. getConformanceLevel(java.lang.String uri)Returns the Core Level conformance value for the provided URI.protected static DatabaseDatabaseManager. getDatabase(java.lang.String uri)Retrieves the registeredDatabaseinstance associated with the provided URI.static voidDatabaseManager. registerDatabase(Database database)Registers a newDatabaseimplementation with theDatabaseManager.protected static java.lang.StringDatabaseManager. stripURIPrefix(java.lang.String uri)Removes the URI_PREFIX from the front of the URI.private static voidDatabaseManager. updateDatabases(java.lang.String databaseName, Database database) -
Uses of XMLDBException in org.xmldb.api.base
Methods in org.xmldb.api.base that throw XMLDBException Modifier and Type Method Description booleanDatabase. acceptsURI(java.lang.String uri)acceptsURI determines whether thisDatabaseimplementation can handle the URI.voidResourceSet. addAll(ResourceSet rSet)Adds allResourceinstances in the resourceSet to this set.voidResourceSet. addResource(Resource res)Adds aResourceinstance to the set.voidResourceSet. clear()Removes allResourceinstances from the set.voidCollection. close()Releases all resources consumed by theCollection.java.lang.StringCollection. createId()Creates a new unique ID within the context of theCollectionResourceCollection. createResource(java.lang.String id, java.lang.String type)Creates a new emptyResourcewith the provided id.CollectionCollection. getChildCollection(java.lang.String name)Returns aCollectioninstance for the requested child collection if it exists.intCollection. getChildCollectionCount()Returns the number of child collections under thisCollectionor 0 if no child collections exist.CollectionDatabase. getCollection(java.lang.String uri, java.lang.String username, java.lang.String password)Retrieves aCollectioninstance based on the URI provided in theuriparameter.java.lang.StringDatabase. getConformanceLevel()Returns the XML:DB API Conformance level for the implementation.java.lang.ObjectResource. getContent()Retrieves the content from the resource.java.lang.StringResource. getId()Returns the unique id for thisResourceor null if theResourceis anonymous.ResourceIteratorResourceSet. getIterator()Returns an iterator over allResourceinstances stored in the set.ResourceResourceSet. getMembersAsResource()Returns a Resource containing an XML representation of all resources stored in the set.java.lang.StringCollection. getName()Returns the name associated with the Collection instance.java.lang.StringDatabase. getName()Deprecated.Replaced by String[] getNames().java.lang.StringService. getName()Returns the name associated with the Service instance.java.lang.String[]Database. getNames()Returns an array of names associated with the Database instance.CollectionCollection. getParentCollection()Returns the parent collection for this collection or null if no parent collection exists.CollectionResource. getParentCollection()Returns theCollectioninstance that this resource is associated with.java.lang.StringConfigurable. getProperty(java.lang.String name)Returns the value of the property identified byname.ResourceCollection. getResource(java.lang.String id)Retrieves aResourcefrom the database.ResourceResourceSet. getResource(long index)Returns theResourceinstance stored at the index specified by index.intCollection. getResourceCount()Returns the number of resources currently stored in this collection or 0 if the collection is empty.java.lang.StringResource. getResourceType()Returns the resource type for this Resource.ServiceCollection. getService(java.lang.String name, java.lang.String version)Returns aServiceinstance for the requested service name and version.Service[]Collection. getServices()Provides a list of all services known to the collection.longResourceSet. getSize()Returns the number of resources contained in the set.java.lang.StringService. getVersion()Gets the Version attribute of the Service objectbooleanResourceIterator. hasMoreResources()Returns true as long as there are still more resources to be iterated.booleanCollection. isOpen()Returns true if theCollectionis open false otherwise.java.lang.String[]Collection. listChildCollections()Returns a list of collection names naming all child collections of the current collection.java.lang.String[]Collection. listResources()Returns a list of the ids for all resources stored in the collection.ResourceResourceIterator. nextResource()Returns the nextResourceinstance in the iterator.voidCollection. removeResource(Resource res)Removes theResourcefrom the database.voidResourceSet. removeResource(long index)Removes the Resource located atindexfrom the set.voidService. setCollection(Collection col)Sets the Collection attribute of the Service objectvoidResource. setContent(java.lang.Object value)Sets the content for this resource.voidConfigurable. setProperty(java.lang.String name, java.lang.String value)Sets the propertynameto have the value provided invalue.voidCollection. storeResource(Resource res)Stores the provided resource into the database. -
Uses of XMLDBException in org.xmldb.api.modules
Methods in org.xmldb.api.modules that throw XMLDBException Modifier and Type Method Description voidTransactionService. begin()Begin the transactionvoidXPathQueryService. clearNamespaces()Removes all namespace mappings stored in the internal namespace map.voidXQueryService. clearNamespaces()Clears all namespace mappings defined.voidTransactionService. commit()Commit the transactionCompiledExpressionXQueryService. compile(java.lang.String query)Compiles the specified XQuery and returns a handle to the compiled code, which can then be passed toXQueryService.execute(org.xmldb.api.base.CompiledExpression).CollectionCollectionManagementService. createCollection(java.lang.String name)Creates a newCollectionin the database.voidXQueryService. declareVariable(java.lang.String qname, java.lang.Object initialValue)Declare a global, external XQuery variable and assign a value to it.ResourceSetXQueryService. execute(CompiledExpression expression)Execute a compiled XQuery.org.w3c.dom.NodeXMLResource. getContentAsDOM()Returns the content of theResourceas a DOM Node.voidXMLResource. getContentAsSAX(org.xml.sax.ContentHandler handler)Allows you to use aContentHandlerto parse the XML data from the database for use in an application.java.lang.StringXMLResource. getDocumentId()Returns the unique id for the parent document to thisResourceor null if theResourcedoes not have a parent document.java.lang.StringXPathQueryService. getNamespace(java.lang.String prefix)Returns the URI string associated withprefixfrom the internal namespace map.java.lang.StringXQueryService. getNamespace(java.lang.String prefix)Returns the URI string associated withprefixfrom the internal namespace map.ResourceSetXPathQueryService. query(java.lang.String query)Run an XPath query against theCollection.ResourceSetXQueryService. query(java.lang.String query)Executes the given query and returns the result as a resource set.ResourceSetXPathQueryService. queryResource(java.lang.String id, java.lang.String query)Run an XPath query against an XML resource stored in theCollectionassociated with this service.ResourceSetXQueryService. queryResource(java.lang.String id, java.lang.String query)Executes the given query and returns the result as a resource set.voidCollectionManagementService. removeCollection(java.lang.String name)Removes a namedCollectionfrom the system.voidXPathQueryService. removeNamespace(java.lang.String prefix)Removes the namespace mapping associated withprefixfrom the internal namespace map.voidXQueryService. removeNamespace(java.lang.String prefix)Removes the namespace mapping associated withprefixfrom the internal namespace map.voidTransactionService. rollback()Rollback the transactionvoidXMLResource. setContentAsDOM(org.w3c.dom.Node content)Sets the content of theResourceusing a DOM Node as the source.org.xml.sax.ContentHandlerXMLResource. setContentAsSAX()Sets the content of theResourceusing a SAXContentHandler.voidXPathQueryService. setNamespace(java.lang.String prefix, java.lang.String uri)Sets a namespace mapping in the internal namespace map used to evaluate queries.voidXQueryService. setNamespace(java.lang.String prefix, java.lang.String uri)Sets a namespace mapping in the internal namespace map used to evaluate queries.longXUpdateQueryService. update(java.lang.String commands)Runs a set of XUpdate operations against the collection.longXUpdateQueryService. updateResource(java.lang.String id, java.lang.String commands)Runs a set of XUpdate operations against a resource stored in a collection.
-