Configurable, Service, CollectionManagementServicepublic class CollectionManagementServiceImpl extends SimpleConfigurable implements CollectionManagementService
SERVICE_NAME| Constructor | Description |
|---|---|
CollectionManagementServiceImpl(java.lang.String basePath) |
Creates a new CollectionManager service
|
| Modifier and Type | Method | Description |
|---|---|---|
Collection |
createCollection(java.lang.String name) |
Creates a simple collection with a basic default configuration.
|
java.lang.String |
getName() |
Returns the name of the Service
|
java.lang.String |
getVersion() |
Returns the version of the Service
|
void |
removeCollection(java.lang.String name) |
Removes the named collection from the system.
|
void |
setCollection(Collection col) |
Provides a reference to the XML:DB collection instance that this service
is associated with.
|
getProperty, setPropertyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProperty, setPropertypublic CollectionManagementServiceImpl(java.lang.String basePath)
public java.lang.String getName()
public java.lang.String getVersion()
getVersion in interface Servicepublic void setCollection(Collection col)
setCollection in interface Servicecol - the XML:DB collection instance associated with this Servicepublic Collection createCollection(java.lang.String name) throws XMLDBException
createCollection in interface CollectionManagementServicename - The name of the collection to create.Collection instance.XMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.public void removeCollection(java.lang.String name)
throws XMLDBException
removeCollection in interface CollectionManagementServicename - The name of the collection to remove.XMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.Copyright (C) XML:DB Initiative. All rights reserved.%lt;/font>