|
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
org.apache.xindice.core.Collection
org.apache.xindice.core.Database
Database is the primary container for the Xindice Database Engine.
| Field Summary | |
static String |
DBROOT
|
static String |
DBROOT_DEFAULT
|
static String |
NAME
|
| Constructor Summary | |
Database()
|
|
| Method Summary | |
boolean |
close()
close closes the DBObject |
protected boolean |
close(boolean removeFromShutdown)
Checks to see if it has been closed to insure that it doesn't try to do it twice. |
boolean |
drop()
Database can not be dropped. |
void |
flushConfig()
flushConfig ensures that the Collection configuration has been properly flushed to disk after a modification. |
Database |
getDatabase()
getDatabase returns the Database owner for this Collection. |
static Database |
getDatabase(Configuration config)
This will return an instance of a Database for the given name if one has already been loaded, otherwise it will create and load a new database instance. |
static Database |
getDatabase(String name)
This will merely return an instance of a Database for the given name if one has already been loaded. |
DocumentCache |
getDocumentCache()
getDocumentCache returns the Database-level Document Cache. |
MetaSystemCollection |
getMetaSystemCollection()
Return the MetaSystem collection for this database. |
QueryEngine |
getQueryEngine()
getQueryEngine returns a reference to the Database's current operating QueryEngine implementation. |
SystemCollection |
getSystemCollection()
getSystemCollection returns the System Collection. |
protected Timer |
getTimer()
Return database's timer instance. |
boolean |
isMetaEnabled()
Return whether or not metadata is enabled on this database. |
static String[] |
listDatabases()
|
void |
setConfig(Configuration config)
setConfig sets the configuration information for the Configurable object instance. |
| Methods inherited from class org.apache.xindice.core.CollectionManager |
addCollection, countCollections, getCollection, getCollections, getConfig, listCollections |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.xindice.util.Named |
getName |
| Methods inherited from interface org.apache.xindice.util.Configurable |
getConfig |
| Field Detail |
public static final String DBROOT
public static final String NAME
public static final String DBROOT_DEFAULT
| Constructor Detail |
public Database()
| Method Detail |
public static Database getDatabase(Configuration config)
throws DBException
config - Database configuration
DBException - if database name is missing in the configuration,
or unable to load a database.public static Database getDatabase(String name)
name - Database name
public static String[] listDatabases()
protected boolean close(boolean removeFromShutdown)
throws DBException
removeFromShutdown - If true removes its self from the shutdown hook
DBException - if unable to close
public boolean close()
throws DBException
DBObject
close in interface DBObjectclose in class CollectionDBExceptionDBObject.close(),
close(boolean removeFromShutdown)public void flushConfig()
public Database getDatabase()
Collection
getDatabase in class CollectionCollection.getDatabase()public DocumentCache getDocumentCache()
public MetaSystemCollection getMetaSystemCollection()
public QueryEngine getQueryEngine()
getQueryEngine in class Collectionpublic SystemCollection getSystemCollection()
Collection
getSystemCollection in class CollectionCollection.getSystemCollection()protected Timer getTimer()
public boolean isMetaEnabled()
isMetaEnabled in class Collection
public void setConfig(Configuration config)
throws XindiceException
Configurable
setConfig in interface ConfigurablesetConfig in class CollectionXindiceExceptionConfigurable.setConfig(org.apache.xindice.util.Configuration)
public boolean drop()
throws DBException
drop in interface DBObjectdrop in class CollectionDBException - Always throws DBE_CANNOT_DROP fault code.DBObject.drop()
|
Xindice API version 1.2m1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||