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-23, BSD License, Christian Gruen
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xmldb.api.base.CollectioncreateCollection(String name)StringgetName()StringgetProperty(String name)StringgetVersion()voidremoveCollection(String name)voidsetCollection(org.xmldb.api.base.Collection cl)voidsetProperty(String name, String value)
-
-
-
Method Detail
-
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
public void removeCollection(String name) throws org.xmldb.api.base.XMLDBException
- Specified by:
removeCollectionin interfaceorg.xmldb.api.modules.CollectionManagementService- Throws:
org.xmldb.api.base.XMLDBException
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.xmldb.api.base.Service
-
getVersion
public String 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
public String getProperty(String name)
- Specified by:
getPropertyin interfaceorg.xmldb.api.base.Configurable
-
-