|
Xindice API version 1.2m1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xindice.core.CollectionManager
CollectionManager is the base class for both Database and Collection.
| Constructor Summary | |
protected |
CollectionManager()
|
| Method Summary | |
protected void |
addCollection(Collection collection)
|
boolean |
close()
|
long |
countCollections()
Returns number of child collections |
Collection |
createCollection(String path,
Configuration cfg)
createCollection creates a new Collection object and any associated system resources that the Collection will need. |
boolean |
dropCollection(Collection collection)
dropCollection physically removes the specified Collection and any associated system resources that the Collection uses. |
Collection |
getCollection(String path)
getCollection retrieves a Collection by name. |
protected Map |
getCollections()
|
Configuration |
getConfig()
getConfig retrieves the configuration information for the Configurable object instance. |
String[] |
listCollections()
listCollections retrieves a list of Collections as an array of Strings. |
void |
setConfig(Configuration config)
setConfig sets the configuration information for the Configurable object instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected CollectionManager()
| Method Detail |
protected void addCollection(Collection collection)
collection - a collection to add
public final long countCollections()
throws DBException
DBException - never
public Collection createCollection(String path,
Configuration cfg)
throws DBException
path - The relative path of the Collectioncfg - The Collection's configuration
DBException - if operation failed
public boolean close()
throws DBException
DBException
public boolean dropCollection(Collection collection)
throws DBException
collection - The Collection to drop
DBException - if operation failed
public Collection getCollection(String path)
throws DBException
path - The Collection path
DBException - if operation failedprotected Map getCollections()
public Configuration getConfig()
Configurable
getConfig in interface ConfigurableConfigurable.getConfig()
public final String[] listCollections()
throws DBException
DBException - never
public void setConfig(Configuration config)
throws XindiceException
Configurable
setConfig in interface Configurableconfig - The configuration Node
XindiceExceptionConfigurable.setConfig(org.apache.xindice.util.Configuration)
|
Xindice API version 1.2m1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||