Package org.basex.api.xmldb
Class BXCollectionManagementService
java.lang.Object
org.basex.api.xmldb.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-21, BSD License, Christian Gruen
-
Method Summary
Modifier and TypeMethodDescriptionorg.xmldb.api.base.CollectioncreateCollection(String name) getName()getProperty(String name) voidremoveCollection(String name) voidsetCollection(org.xmldb.api.base.Collection cl) voidsetProperty(String name, String value)
-
Method Details
-
createCollection
public org.xmldb.api.base.Collection createCollection(String name) throws org.xmldb.api.base.XMLDBException - Specified by:
createCollectionin interfaceorg.xmldb.api.modules.CollectionManagementService- Throws:
org.xmldb.api.base.XMLDBException
-
removeCollection
- Specified by:
removeCollectionin interfaceorg.xmldb.api.modules.CollectionManagementService- Throws:
org.xmldb.api.base.XMLDBException
-
getName
- Specified by:
getNamein interfaceorg.xmldb.api.base.Service
-
getVersion
- Specified by:
getVersionin interfaceorg.xmldb.api.base.Service
-
setCollection
public void setCollection(org.xmldb.api.base.Collection cl) - Specified by:
setCollectionin interfaceorg.xmldb.api.base.Service
-
getProperty
- Specified by:
getPropertyin interfaceorg.xmldb.api.base.Configurable
-
setProperty
- Specified by:
setPropertyin interfaceorg.xmldb.api.base.Configurable- Throws:
org.xmldb.api.base.XMLDBException
-