|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dbxml.db.core.CollectionManager
CollectionManager is the base class for Collection, and as a result Database as well.
Method Summary | |
Collection |
createCollection(java.lang.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. |
abstract java.lang.String |
getCanonicalName()
getCanonicalName returns the canonical name for this Object. |
Collection |
getCollection(java.lang.String path)
getCollection retrieves a Collection by name. |
Configuration |
getConfig()
getConfig retrieves the configuration information for the Configurable object instance. |
abstract Database |
getDatabase()
getDatabase retrieves the Database that is associated with this CollectionManager. |
abstract java.lang.String |
getName()
getName returns the name for this Object. |
abstract SystemCollection |
getSystemCollection()
getSystemCollection returns the System Collection. |
java.lang.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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void setConfig(Configuration config) throws dbXMLException
Configurable
setConfig
in interface Configurable
config
- The configuration Node
dbXMLException
public Configuration getConfig()
Configurable
getConfig
in interface Configurable
public abstract java.lang.String getName()
public abstract java.lang.String getCanonicalName()
public abstract SystemCollection getSystemCollection() throws DBException
DBException
- If a Database Exception occurs*public abstract Database getDatabase()
public Collection getCollection(java.lang.String path) throws DBException
path
- The Collection path
DBException
- If a Database Exception occurspublic final java.lang.String[] listCollections() throws DBException
DBException
- If a Database Exception occurspublic boolean dropCollection(Collection collection) throws DBException
collection
- The Collection to drop
DBException
- If a Database Exception occurspublic Collection createCollection(java.lang.String path, Configuration cfg) throws DBException
path
- The relative path of the Collectioncfg
- The Collection's configuration
DBException
- If a Database Exception occurs
|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |