org.ozoneDB.xml.cli.services
Class CollectionManagementServiceImpl

java.lang.Object
  |
  +--org.ozoneDB.xml.cli.services.CollectionManagementServiceImpl
All Implemented Interfaces:
CollectionManagementService, Configurable, Service

public class CollectionManagementServiceImpl
extends java.lang.Object
implements CollectionManagementService

Author:
Per Nyfelt

Constructor Summary
CollectionManagementServiceImpl()
          Creates new CollectionManagementServiceImpl
 
Method Summary
 Collection createCollection(java.lang.String name)
          Create a new child collection
 java.lang.String getName()
          Returns the name associated with the Configurable object.
 java.lang.String getProperty(java.lang.String name)
          Returns the value of the property identified by name.
 java.lang.String getVersion()
          Gets the Version attribute of the Service object
 void removeCollection(java.lang.String name)
          Remove the named collection
 void setCollection(Collection col)
          Sets the Collection attribute of the Service object
 void setProperty(java.lang.String name, java.lang.String value)
          Sets the property name to have the value provided in value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionManagementServiceImpl

public CollectionManagementServiceImpl()
Creates new CollectionManagementServiceImpl

Method Detail

createCollection

public Collection createCollection(java.lang.String name)
                            throws XMLDBException
Create a new child collection

Specified by:
createCollection in interface CollectionManagementService
XMLDBException

removeCollection

public void removeCollection(java.lang.String name)
                      throws XMLDBException
Remove the named collection

Specified by:
removeCollection in interface CollectionManagementService
XMLDBException

getVersion

public java.lang.String getVersion()
                            throws XMLDBException
Gets the Version attribute of the Service object

Specified by:
getVersion in interface Service
Returns:
The Version value
Throws:
XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.

getName

public java.lang.String getName()
                         throws XMLDBException
Returns the name associated with the Configurable object.

Specified by:
getName in interface Configurable
Returns:
the name of the object.
Throws:
XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
                 throws XMLDBException
Sets the property name to have the value provided in value.

Specified by:
setProperty in interface Configurable
Parameters:
name - the name of the property to set.
value - the value to set for the property.
Throws:
XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.

setCollection

public void setCollection(Collection col)
                   throws XMLDBException
Sets the Collection attribute of the Service object

Specified by:
setCollection in interface Service
Parameters:
col - The new Collection value
Throws:
XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.

getProperty

public java.lang.String getProperty(java.lang.String name)
                             throws XMLDBException
Returns the value of the property identified by name.

Specified by:
getProperty in interface Configurable
Parameters:
name - the name of the property to retrieve.
Returns:
the property value or null if no property exists.
Throws:
XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.


Copyright © 2002 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.