net.sf.fastxmldb.impl
Class CollectionBroker
java.lang.Object
|
+--net.sf.fastxmldb.impl.CollectionBroker
- public class CollectionBroker
- extends java.lang.Object
The CollectionBroker is responsible for keeping track
of all created collections and the default collection
- Author:
- jbirchfield
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static CollectionBroker getInstance()
- Returns:
- CollectionBroker the static instance
getCollection
public org.xmldb.api.base.Collection getCollection(java.lang.String name)
- Parameters:
name
- the name of the collection- Returns:
- Collection the Collection object
addCollection
public void addCollection(org.xmldb.api.base.Collection collection)
throws org.xmldb.api.base.XMLDBException
- Parameters:
collection
- the collection to add- Throws:
org.xmldb.api.base.XMLDBException
- if an exception occurs during the
getName of a collection
getCollectionCount
public int getCollectionCount()
- Returns:
- int the number of collections. Should always be at least 1
clearCollections
public void clearCollections()
- Clear all the collections and recreate the default one
Copyright © 2003-2003 Birchfield & Associates, Inc.. All Rights Reserved.