|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dbxml.util.SimpleConfigurable
com.dbxml.db.core.trigger.SimpleTrigger
com.dbxml.db.common.scripting.ScriptTrigger
ScriptTrigger is the base class for all script-interpreted Triggers.
Constructor Summary | |
ScriptTrigger()
|
Method Summary | |
void |
afterDelete(Transaction tx,
Key key,
java.lang.Object oldObj)
afterDelete is fired after a Object is deleted from the Collection. |
void |
afterGet(Transaction tx,
Key key,
java.lang.Object obj)
afterGet is fired after a Object is retrieved from the Collection, but before it is actually returned. |
void |
afterInsert(Transaction tx,
Key key,
java.lang.Object newObj)
afterInsert is fired after a new Object is inserted into the Collection. |
void |
afterUpdate(Transaction tx,
Key key,
java.lang.Object oldObj,
java.lang.Object newObj)
afterUpdate is fired after a Object is updated in the Collection. |
void |
beforeDelete(Transaction tx,
Key key,
java.lang.Object oldObj)
beforeDelete is fired before a Object is deleted from the Collection. |
void |
beforeGet(Transaction tx,
Key key)
beforeGet is fired before a Object is retrieved from the Collection. |
java.lang.Object |
beforeInsert(Transaction tx,
Key key,
java.lang.Object newObj)
beforeInsert is fired before a new Object is inserted into the Collection. |
java.lang.Object |
beforeUpdate(Transaction tx,
Key key,
java.lang.Object oldObj,
java.lang.Object newObj)
beforeUpdate is fired before a Object is updated in the Collection. |
void |
setConfig(Configuration config)
setConfig sets the configuration information for the Configurable object instance. |
Methods inherited from class com.dbxml.db.core.trigger.SimpleTrigger |
getCollection, getName, setCollection |
Methods inherited from class com.dbxml.util.SimpleConfigurable |
getConfig |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.dbxml.util.Configurable |
getConfig |
Constructor Detail |
public ScriptTrigger()
Method Detail |
public void setConfig(Configuration config) throws dbXMLException
Configurable
setConfig
in interface Configurable
setConfig
in class SimpleTrigger
dbXMLException
public java.lang.Object beforeInsert(Transaction tx, Key key, java.lang.Object newObj) throws DBException
Trigger
beforeInsert
in interface Trigger
beforeInsert
in class SimpleTrigger
DBException
public void afterInsert(Transaction tx, Key key, java.lang.Object newObj) throws DBException
Trigger
afterInsert
in interface Trigger
afterInsert
in class SimpleTrigger
DBException
public java.lang.Object beforeUpdate(Transaction tx, Key key, java.lang.Object oldObj, java.lang.Object newObj) throws DBException
Trigger
beforeUpdate
in interface Trigger
beforeUpdate
in class SimpleTrigger
DBException
public void afterUpdate(Transaction tx, Key key, java.lang.Object oldObj, java.lang.Object newObj) throws DBException
Trigger
afterUpdate
in interface Trigger
afterUpdate
in class SimpleTrigger
DBException
public void beforeDelete(Transaction tx, Key key, java.lang.Object oldObj) throws DBException
Trigger
beforeDelete
in interface Trigger
beforeDelete
in class SimpleTrigger
DBException
public void afterDelete(Transaction tx, Key key, java.lang.Object oldObj) throws DBException
Trigger
afterDelete
in interface Trigger
afterDelete
in class SimpleTrigger
DBException
public void beforeGet(Transaction tx, Key key) throws DBException
Trigger
beforeGet
in interface Trigger
beforeGet
in class SimpleTrigger
DBException
public void afterGet(Transaction tx, Key key, java.lang.Object obj) throws DBException
Trigger
afterGet
in interface Trigger
afterGet
in class SimpleTrigger
DBException
|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |