|
Xindice API version 1.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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
- public final long countCollections() throws DBException
public Collection createCollection(String path, Configuration cfg) throws DBException
path
- The relative path of the Collectioncfg
- The Collection's configurationpublic boolean close() throws DBException
public boolean dropCollection(Collection collection) throws DBException
collection
- The Collection to droppublic Collection getCollection(String path) throws DBException
path
- The Collection pathprotected Map getCollections()
public Configuration getConfig()
Configurable
getConfig
in interface Configurable
Configurable.getConfig()
public final String[] listCollections() throws DBException
public void setConfig(Configuration config) throws XindiceException
Configurable
setConfig
in interface Configurable
Configurable.setConfig(org.apache.xindice.util.Configuration)
|
Xindice API version 1.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |