public interface CollectionManagementService extends Service
Service that enables the basic
management of collections within a database. The functionality provided is
very basic because collection management varies widely among databases. This
service simply provides functionality for those databases that are able
to implement this basic functionality.| Modifier and Type | Method and Description |
|---|---|
Collection |
createCollection(java.lang.String name)
Creates a new
Collection in the database. |
void |
removeCollection(java.lang.String name)
Removes a named
Collection from the system. |
getName, getVersion, setCollectiongetProperty, setPropertyCollection createCollection(java.lang.String name) throws XMLDBException
Collection in the database. The default
configuration of the database is determined by the implementer. The
new Collection will be created relative to the
Collection from which the CollectionManagementService
was retrieved.name - The name of the collection to create.Collection instance.XMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.void removeCollection(java.lang.String name)
throws XMLDBException
Collection from the system. The
name for the Collection to remove is relative to the
Collection from which the CollectionManagementService
was retrieved.name - The name of the collection to remove.XMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.