|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xindice.core.DBObserver
Observer for Xindice DB activities
Constructor Summary | |
DBObserver()
|
Method Summary | |
abstract void |
createCollection(Collection col)
Called after Collection.create() |
abstract void |
dropCollection(Collection col)
Called before Collection.drop() |
abstract void |
dropDocument(Collection col,
Key key)
Called before Collection.remove(key) |
abstract void |
flushDatabaseConfig(Database db,
Configuration cfg)
Called after Database.flushConfig() |
static DBObserver |
getInstance()
Returns the observer instance, must be non-null |
abstract void |
loadDocument(Collection col,
Record record,
org.w3c.dom.Document document)
Called after Collection.getDocument() |
abstract void |
putDocument(Collection col,
Key key,
org.w3c.dom.Document document,
boolean create)
Called after Collection.putDocument() |
abstract void |
setCollectionConfig(Collection col,
Configuration cfg)
Called after Collection.setConfig() |
abstract void |
setDatabaseConfig(Database db,
Map collections,
Configuration cfg)
Called after Database.setConfig() |
static void |
setInstance(DBObserver obs)
Sets the default observer instance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DBObserver()
Method Detail |
public static void setInstance(DBObserver obs)
public static DBObserver getInstance()
public abstract void setDatabaseConfig(Database db, Map collections, Configuration cfg)
public abstract void setCollectionConfig(Collection col, Configuration cfg)
public abstract void flushDatabaseConfig(Database db, Configuration cfg)
public abstract void dropCollection(Collection col) throws DBException
DBException
public abstract void createCollection(Collection col) throws DBException
DBException
public abstract void putDocument(Collection col, Key key, org.w3c.dom.Document document, boolean create) throws DBException
DBException
public abstract void loadDocument(Collection col, Record record, org.w3c.dom.Document document) throws DBException
DBException
public abstract void dropDocument(Collection col, Key key) throws DBException
DBException
|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |