Class BXCollectionManagementService

  • All Implemented Interfaces:
    org.xmldb.api.base.Configurable, org.xmldb.api.base.Service, org.xmldb.api.modules.CollectionManagementService

    public final class BXCollectionManagementService
    extends Object
    implements org.xmldb.api.modules.CollectionManagementService
    Implementation of the CollectionManagementService Interface for the XMLDB:API. Note that a database has one collection at a time, so creating a new collection creates a new database as well, and the specified collection reference is reset every time a database is created.
    Author:
    BaseX Team 2005-23, BSD License, Christian Gruen
    • Method Detail

      • createCollection

        public org.xmldb.api.base.Collection createCollection​(String name)
                                                       throws org.xmldb.api.base.XMLDBException
        Specified by:
        createCollection in interface org.xmldb.api.modules.CollectionManagementService
        Throws:
        org.xmldb.api.base.XMLDBException
      • removeCollection

        public void removeCollection​(String name)
                              throws org.xmldb.api.base.XMLDBException
        Specified by:
        removeCollection in interface org.xmldb.api.modules.CollectionManagementService
        Throws:
        org.xmldb.api.base.XMLDBException
      • getName

        public String getName()
        Specified by:
        getName in interface org.xmldb.api.base.Service
      • getVersion

        public String getVersion()
        Specified by:
        getVersion in interface org.xmldb.api.base.Service
      • setCollection

        public void setCollection​(org.xmldb.api.base.Collection cl)
        Specified by:
        setCollection in interface org.xmldb.api.base.Service
      • getProperty

        public String getProperty​(String name)
        Specified by:
        getProperty in interface org.xmldb.api.base.Configurable
      • setProperty

        public void setProperty​(String name,
                                String value)
                         throws org.xmldb.api.base.XMLDBException
        Specified by:
        setProperty in interface org.xmldb.api.base.Configurable
        Throws:
        org.xmldb.api.base.XMLDBException