org.exist.xmldb
Class LocalCollectionManagementService

java.lang.Object
  extended byorg.apache.xindice.client.xmldb.services.CollectionManager
      extended byorg.exist.xmldb.LocalCollectionManagementService
All Implemented Interfaces:
CollectionManagementService, Configurable, Service

public class LocalCollectionManagementService
extends org.apache.xindice.client.xmldb.services.CollectionManager


Field Summary
protected  BrokerPool brokerPool
           
protected  LocalCollection parent
           
protected  User user
           
 
Constructor Summary
LocalCollectionManagementService(User user, BrokerPool pool, LocalCollection parent)
          Constructor for the LocalCollectionManagementService object
 
Method Summary
 Collection createCollection(java.lang.String collName)
          Description of the Method
 Collection createCollection(java.lang.String path, org.w3c.dom.Document configuration)
          Creates a new collection in the database identified by name and using the provided configuration.
 java.lang.String getName()
          Gets the name attribute of the LocalCollectionManagementService object
 java.lang.String getProperty(java.lang.String property)
          Gets the property attribute of the LocalCollectionManagementService object
 java.lang.String getVersion()
          Gets the version attribute of the LocalCollectionManagementService object
 void removeCollection(java.lang.String collName)
          Description of the Method
 void setCollection(Collection parent)
          Sets the collection attribute of the LocalCollectionManagementService object
 void setProperty(java.lang.String property, java.lang.String value)
          Sets the property attribute of the LocalCollectionManagementService object
 
Methods inherited from class org.apache.xindice.client.xmldb.services.CollectionManager
createIndexer, createXMLObject, dropCollection, dropIndexer, dropXMLObject, getCanonicalName, getCollectionName, listIndexers, listXMLObjects, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

brokerPool

protected BrokerPool brokerPool

parent

protected LocalCollection parent

user

protected User user
Constructor Detail

LocalCollectionManagementService

public LocalCollectionManagementService(User user,
                                        BrokerPool pool,
                                        LocalCollection parent)
Constructor for the LocalCollectionManagementService object

Parameters:
pool - Description of the Parameter
parent - Description of the Parameter
user - Description of the Parameter
Method Detail

createCollection

public Collection createCollection(java.lang.String collName)
                            throws XMLDBException
Description of the Method

Parameters:
collName - Description of the Parameter
Returns:
Description of the Return Value
Throws:
XMLDBException - Description of the Exception

createCollection

public Collection createCollection(java.lang.String path,
                                   org.w3c.dom.Document configuration)
                            throws XMLDBException
Creates a new collection in the database identified by name and using the provided configuration.

Parameters:
path - the path of the new collection
configuration - the XML collection configuration to use for creating this collection.
Returns:
The newly created collection
Throws:
XMLDBException

getName

public java.lang.String getName()
                         throws XMLDBException
Gets the name attribute of the LocalCollectionManagementService object

Returns:
The name value
Throws:
XMLDBException - Description of the Exception

getProperty

public java.lang.String getProperty(java.lang.String property)
Gets the property attribute of the LocalCollectionManagementService object

Parameters:
property - Description of the Parameter
Returns:
The property value

getVersion

public java.lang.String getVersion()
                            throws XMLDBException
Gets the version attribute of the LocalCollectionManagementService object

Returns:
The version value
Throws:
XMLDBException - Description of the Exception

removeCollection

public void removeCollection(java.lang.String collName)
                      throws XMLDBException
Description of the Method

Parameters:
collName - Description of the Parameter
Throws:
XMLDBException - Description of the Exception

setCollection

public void setCollection(Collection parent)
                   throws XMLDBException
Sets the collection attribute of the LocalCollectionManagementService object

Parameters:
parent - The new collection value
Throws:
XMLDBException - Description of the Exception

setProperty

public void setProperty(java.lang.String property,
                        java.lang.String value)
Sets the property attribute of the LocalCollectionManagementService object

Parameters:
property - The new property value
value - The new property value


Copyright (C) Wolfgang Meier. All rights reserved.