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 org.xmldb.api.security -
-
Uses of XMLDBException in org.xmldb.api
Methods in org.xmldb.api that throw XMLDBException Modifier and Type Method Description 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.static voidDatabaseManager. registerDatabase(Database database)Registers a newDatabaseimplementation with theDatabaseManager. -
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.voidResource. close()Releases all resources consumed by theResource.java.lang.StringCollection. createId()Creates a new unique ID within the context of theCollection<R extends Resource>
RCollection. createResource(java.lang.String id, java.lang.Class<R> type)Creates a new emptyResourcewith the provided id.default voidResourceIterator. forEachRemaining(java.util.function.Consumer<? super Resource> action)Calls the given action for each resource.CollectionCollection. getChildCollection(java.lang.String collectionName)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.voidResource. getContentAsStream(java.io.OutputStream stream)Retrieves the content from the resource.java.time.InstantCollection. getCreationTime()Returns the time of creation of the collection.java.time.InstantResource. getCreationTime()Returns the time of creation of 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.java.time.InstantResource. getLastModificationTime()Returns the time of last modification of the resource.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()Returns the name associated with the Database instance.java.lang.StringService. getName()Returns the name associated with the Service instance.CollectionCollection. getParentCollection()Returns the parent collection for this collection ornullif 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.java.lang.StringConfigurable. getProperty(java.lang.String name, java.lang.String defaultValue)Returns the value of the property identified bynameor thedefaultValueif no property is set for the givenname.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.default <S extends Service>
SServiceProvider. getService(java.lang.Class<S> serviceType)Returns aServiceinstance for the requestedserviceType.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.util.List<java.lang.String>Collection. listChildCollections()Returns a list of collection names naming all child collections of the current collection.java.util.List<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).voidCollectionManagementService. copy(java.lang.String collection, java.lang.String destination, java.lang.String newName)Copy the collection specified bycollectionto the givendestinationandnewName.voidCollectionManagementService. copyResource(java.lang.String resourcePath, java.lang.String destinationPath, java.lang.String newName)Copy the resource specified by theresourcePathto the givendestinationPathandnewName.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.voidCollectionManagementService. move(java.lang.String collection, java.lang.String destination, java.lang.String newName)Moves either acollectionorvoidCollectionManagementService. moveResource(java.lang.String resourcePath, java.lang.String destinationPath, java.lang.String newName)Moves the resource specified by theresourcePathto the givendestinationPathandnewName.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.voidDatabaseInstanceService. shutdown()Immediately shutdown the current database instance.voidDatabaseInstanceService. shutdown(long delay)Shutdown the current database instance after the specified delay (in milliseconds).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. -
Uses of XMLDBException in org.xmldb.api.security
Methods in org.xmldb.api.security that throw XMLDBException Modifier and Type Method Description java.util.List<AclEntry>PermissionManagementService. getAcl(Collection collection)Returns a list of current ACL (Access Control List) entries for the given collection.java.util.List<AclEntry>PermissionManagementService. getAcl(Resource resource)Returns a list of current ACL (Access Control List) entries for the given resource.AttributesPermissionManagementService. getAttributes(Collection collection)Returns an attribute view for the given collection.AttributesPermissionManagementService. getAttributes(Resource resource)Returns an attribute view for the given resource.GroupPrincipalPermissionManagementService. getGroup(Collection collection)Returns the current group of the given collection.GroupPrincipalPermissionManagementService. getGroup(Resource resource)Returns the current group of the given resource.UserPrincipalPermissionManagementService. getOwner(Collection collection)Returns the current owner of the given collection.UserPrincipalPermissionManagementService. getOwner(Resource resource)Returns the current owner of the given resource.java.util.Set<Permission>PermissionManagementService. getPermissions(Collection collection)Returns a set of currently set permissions for the given collection.java.util.Set<Permission>PermissionManagementService. getPermissions(Resource resource)Returns a set of currently set permissions for the given resource.GroupPrincipalUserPrincipalLookupService. lookupPrincipalByGroupName(java.lang.String group)Lookup a group principal by group name.UserPrincipalUserPrincipalLookupService. lookupPrincipalByName(java.lang.String name)Lookup a user principal by name.voidPermissionManagementService. setAcl(Collection collection, java.util.List<AclEntry> aclEntries)Replaces the current ACL (Access Control List) entries of the given collection with the given new ACL entries list.voidPermissionManagementService. setAcl(Resource resource, java.util.List<AclEntry> aclEntries)Replaces the current ACL (Access Control List) entries of the given resource with the given new ACL entries list.voidPermissionManagementService. setGroup(Collection collection, GroupPrincipal group)Sets the new group of the given collection.voidPermissionManagementService. setGroup(Resource resource, GroupPrincipal group)Sets the new group of the given resource.voidPermissionManagementService. setOwner(Collection collection, UserPrincipal owner)Sets the new owner of the given collection.voidPermissionManagementService. setOwner(Resource resource, UserPrincipal owner)Sets the new owner of the given resource.voidPermissionManagementService. setPermissions(Collection collection, java.util.Set<Permission> perms)Replaces the current permissions of the given collection with the given new permission set.voidPermissionManagementService. setPermissions(Resource resource, java.util.Set<Permission> perms)Replaces the current permissions of the given resource with the given new permission set.
-