|
dbXML API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.dbxml.client.xmldb.CommonConfigurable
|
+--org.dbxml.client.xmldb.services.CollectionManager
CollectionManager provides management facilities for a Collection instance. Administrative access is required for retrieval of the CollectionManager interface. User level access is provided through the underlying Collection itself.
| Constructor Summary | |
CollectionManager(CollectionManager manager,
Database db,
DatabaseImpl database)
Creates a new CollectionManager service |
|
| Method Summary | |
Collection |
createCollection(java.lang.String name)
Creates a simple collection with a basic default configuration. |
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. |
void |
createIndexer(org.w3c.dom.Document configuration)
Creates a new Indexer for this collection. |
void |
createXMLObject(org.w3c.dom.Document configuration)
Creates a new collection level XMLObject using the provided configuration. |
void |
dropCollection(java.lang.String name)
Drops a child collection from this collection. |
void |
dropIndexer(java.lang.String name)
Drops the indexer from the collection |
void |
dropXMLObject(java.lang.String name)
Drops a collection level XMLObject from the collection. |
java.lang.String |
getCanonicalName()
Returns the fully qualified name of the collection that this manager is associated with. |
java.lang.String |
getCollectionName()
Returns the name of the collection that this manager is associated with. |
java.lang.String |
getName()
Returns the name of the Service |
java.lang.String |
getVersion()
Returns the version of the Service |
java.lang.String[] |
listIndexers()
Returns a list of all indexers for this collection. |
java.lang.String[] |
listXMLObjects()
Returns a list of all collection level XMLObjects for this collection. |
void |
remove()
Removes the server side Servant for this object. |
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. |
| Methods inherited from class org.dbxml.client.xmldb.CommonConfigurable |
getProperty, setProperty |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xmldb.api.base.Configurable |
getProperty, setProperty |
| Constructor Detail |
public CollectionManager(CollectionManager manager,
Database db,
DatabaseImpl database)
manager - the server side CollectionManager to use.db - the root Database instance that the
CollectionManager is associated with.database - a reference to the XML:DB Database instance for the API.| Method Detail |
public java.lang.String getName()
getName in interface Servicepublic java.lang.String getVersion()
getVersion in interface Servicepublic void setCollection(Collection col)
setCollection in interface Servicecol - the XML:DB collection instance associated with this Service
public java.lang.String getCollectionName()
throws XMLDBException
XMLDBException -
public java.lang.String getCanonicalName()
throws XMLDBException
XMLDBException -
public Collection createCollection(java.lang.String path,
org.w3c.dom.Document configuration)
throws XMLDBException
path - the path of the new collectionconfiguration - the XML collection configuration to use for
creating this collection.XMLDBException -
public void dropCollection(java.lang.String name)
throws XMLDBException
collection - The child collection to drop.XMLDBException -
public java.lang.String[] listIndexers()
throws XMLDBException
XMLDBException -
public void createIndexer(org.w3c.dom.Document configuration)
throws XMLDBException
name - The name for this indexerconfiguration - The configuration to use for this indexer.XMLDBException -
public void dropIndexer(java.lang.String name)
throws XMLDBException
indexer - The indexer to drop.XMLDBException -
public java.lang.String[] listXMLObjects()
throws XMLDBException
XMLDBException -
public void createXMLObject(org.w3c.dom.Document configuration)
throws XMLDBException
name - The name of this XMLObjectconfiguration - The XML configuration to useXMLDBException -
public void dropXMLObject(java.lang.String name)
throws XMLDBException
object - The XMLObject to drop.XMLDBException -
public Collection createCollection(java.lang.String name)
throws XMLDBException
createCollection in interface CollectionManagementServiceorg.xmldb.api.modules.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 CollectionManagementServiceorg.xmldb.api.modules.CollectionManagementServicename - The name of the collection to remove.XMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.public void remove()
remove in interface ManagedObject
|
dbXML API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||