|
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 ConfigurablesetConfig in class SimpleTriggerdbXMLException
public java.lang.Object beforeInsert(Transaction tx,
Key key,
java.lang.Object newObj)
throws DBException
Trigger
beforeInsert in interface TriggerbeforeInsert in class SimpleTriggerDBException
public void afterInsert(Transaction tx,
Key key,
java.lang.Object newObj)
throws DBException
Trigger
afterInsert in interface TriggerafterInsert in class SimpleTriggerDBException
public java.lang.Object beforeUpdate(Transaction tx,
Key key,
java.lang.Object oldObj,
java.lang.Object newObj)
throws DBException
Trigger
beforeUpdate in interface TriggerbeforeUpdate in class SimpleTriggerDBException
public void afterUpdate(Transaction tx,
Key key,
java.lang.Object oldObj,
java.lang.Object newObj)
throws DBException
Trigger
afterUpdate in interface TriggerafterUpdate in class SimpleTriggerDBException
public void beforeDelete(Transaction tx,
Key key,
java.lang.Object oldObj)
throws DBException
Trigger
beforeDelete in interface TriggerbeforeDelete in class SimpleTriggerDBException
public void afterDelete(Transaction tx,
Key key,
java.lang.Object oldObj)
throws DBException
Trigger
afterDelete in interface TriggerafterDelete in class SimpleTriggerDBException
public void beforeGet(Transaction tx,
Key key)
throws DBException
Trigger
beforeGet in interface TriggerbeforeGet in class SimpleTriggerDBException
public void afterGet(Transaction tx,
Key key,
java.lang.Object obj)
throws DBException
Trigger
afterGet in interface TriggerafterGet in class SimpleTriggerDBException
|
dbXML API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||