Uses of Class
org.xmldb.api.base.XMLDBException
Packages that use XMLDBException
-
Uses of XMLDBException in org.xmldb.api
Methods in org.xmldb.api that throw XMLDBExceptionModifier and TypeMethodDescriptionstatic voidDatabaseManager.deregisterDatabase(Database database) Deregisters aDatabaseimplementation from theDatabaseManager.static CollectionDatabaseManager.getCollection(String uri) Retrieves aCollectioninstance from the database for the given URI.static CollectionDatabaseManager.getCollection(String uri, String username, String password) Retrieves aCollectioninstance from the database for the given URI.static StringDatabaseManager.getConformanceLevel(String uri) Returns the Core Level conformance value for the provided URI.protected static DatabaseDatabaseManager.getDatabase(String uri) Retrieves the registeredDatabaseinstance associated with the provided URI.static voidDatabaseManager.registerDatabase(Database database) Registers a newDatabaseimplementation with theDatabaseManager.protected static StringDatabaseManager.stripURIPrefix(String uri) Removes the URI_PREFIX from the front of the URI.private static voidDatabaseManager.updateDatabases(String databaseName, Database database) -
Uses of XMLDBException in org.xmldb.api.base
Methods in org.xmldb.api.base that throw XMLDBExceptionModifier and TypeMethodDescriptionbooleanDatabase.acceptsURI(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.Collection.createId()Creates a new unique ID within the context of theCollectionCollection.createResource(String id, String type) Creates a new emptyResourcewith the provided id.Collection.getChildCollection(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.Database.getCollection(String uri, String username, String password) Retrieves aCollectioninstance based on the URI provided in theuriparameter.Database.getConformanceLevel()Returns the XML:DB API Conformance level for the implementation.Resource.getContent()Retrieves the content from the resource.Resource.getId()Returns the unique id for thisResourceor null if theResourceis anonymous.ResourceSet.getIterator()Returns an iterator over allResourceinstances stored in the set.ResourceSet.getMembersAsResource()Returns a Resource containing an XML representation of all resources stored in the set.Collection.getName()Returns the name associated with the Collection instance.Database.getName()Deprecated.Replaced by String[] getNames().Service.getName()Returns the name associated with the Service instance.String[]Database.getNames()Returns an array of names associated with the Database instance.Collection.getParentCollection()Returns the parent collection for this collection or null if no parent collection exists.Resource.getParentCollection()Returns theCollectioninstance that this resource is associated with.Configurable.getProperty(String name) Returns the value of the property identified byname.Collection.getResource(String id) Retrieves aResourcefrom the database.ResourceSet.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.Resource.getResourceType()Returns the resource type for this Resource.Collection.getService(String name, 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.Service.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.String[]Collection.listChildCollections()Returns a list of collection names naming all child collections of the current collection.String[]Collection.listResources()Returns a list of the ids for all resources stored in the collection.ResourceIterator.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(Object value) Sets the content for this resource.voidConfigurable.setProperty(String name, 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 XMLDBExceptionModifier and TypeMethodDescriptionvoidTransactionService.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 transactionCompiles the specified XQuery and returns a handle to the compiled code, which can then be passed toXQueryService.execute(org.xmldb.api.base.CompiledExpression).CollectionManagementService.createCollection(String name) Creates a newCollectionin the database.voidXQueryService.declareVariable(String qname, Object initialValue) Declare a global, external XQuery variable and assign a value to it.XQueryService.execute(CompiledExpression expression) Execute a compiled XQuery.XMLResource.getContentAsDOM()Returns the content of theResourceas a DOM Node.voidXMLResource.getContentAsSAX(ContentHandler handler) Allows you to use aContentHandlerto parse the XML data from the database for use in an application.XMLResource.getDocumentId()Returns the unique id for the parent document to thisResourceor null if theResourcedoes not have a parent document.XPathQueryService.getNamespace(String prefix) Returns the URI string associated withprefixfrom the internal namespace map.XQueryService.getNamespace(String prefix) Returns the URI string associated withprefixfrom the internal namespace map.Run an XPath query against theCollection.Executes the given query and returns the result as a resource set.XPathQueryService.queryResource(String id, String query) Run an XPath query against an XML resource stored in theCollectionassociated with this service.XQueryService.queryResource(String id, String query) Executes the given query and returns the result as a resource set.voidCollectionManagementService.removeCollection(String name) Removes a namedCollectionfrom the system.voidXPathQueryService.removeNamespace(String prefix) Removes the namespace mapping associated withprefixfrom the internal namespace map.voidXQueryService.removeNamespace(String prefix) Removes the namespace mapping associated withprefixfrom the internal namespace map.voidTransactionService.rollback()Rollback the transactionvoidXMLResource.setContentAsDOM(Node content) Sets the content of theResourceusing a DOM Node as the source.XMLResource.setContentAsSAX()Sets the content of theResourceusing a SAXContentHandler.voidXPathQueryService.setNamespace(String prefix, String uri) Sets a namespace mapping in the internal namespace map used to evaluate queries.voidXQueryService.setNamespace(String prefix, String uri) Sets a namespace mapping in the internal namespace map used to evaluate queries.longRuns a set of XUpdate operations against the collection.longXUpdateQueryService.updateResource(String id, String commands) Runs a set of XUpdate operations against a resource stored in a collection.