|
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.TriggerManager
TriggerManager manages Trigger instances
| Constructor Summary | |
TriggerManager(Collection collection)
|
|
| Method Summary | |
Trigger |
create(Configuration cfg)
create creates a new Trigger object and any associated system resources that the Trigger will need. |
boolean |
drop(java.lang.String name)
drop physically removes the specified Trigger and any associated system resources that the Trigger uses. |
void |
fireAfterDelete(Transaction tx,
Key key,
java.lang.Object oldObj)
fireAfterDelete fires afterDelete events to all of the registered Triggers, unless a DBException is thrown. |
void |
fireAfterGet(Transaction tx,
Key key,
java.lang.Object obj)
fireAfterGet fires afterGet events to all of the registered Triggers, unless a DBException is thrown. |
void |
fireAfterInsert(Transaction tx,
Key key,
java.lang.Object newObj)
fireAfterInsert fires afterInsert events to all of the registered Triggers, unless a DBException is thrown. |
void |
fireAfterUpdate(Transaction tx,
Key key,
java.lang.Object oldObj,
java.lang.Object newObj)
fireAfterUpdate fires afterUpdate events to all of the registered Triggers, unless a DBException is thrown. |
void |
fireBeforeDelete(Transaction tx,
Key key,
java.lang.Object oldObj)
fireBeforeDelete fires beforeDelete events to all of the registered Triggers, unless a DBException is thrown. |
void |
fireBeforeGet(Transaction tx,
Key key)
fireBeforeGet fires beforeGet events to all of the registered Triggers, unless a DBException is thrown. |
java.lang.Object |
fireBeforeInsert(Transaction tx,
Key key,
java.lang.Object newObj)
fireBeforeInsert fires beforeInsert events to all of the registered Triggers, unless a DBException is thrown. |
java.lang.Object |
fireBeforeUpdate(Transaction tx,
Key key,
java.lang.Object oldObj,
java.lang.Object newObj)
fireBeforeUpdate fires beforeUpdate events to all of the registered Triggers, unless a DBException is thrown. |
Trigger |
get(java.lang.String name)
get retrieves an Trigger by name, and will also do the work of instantiation and pool-retrieval. |
java.lang.String |
getCanonicalName(java.lang.String name)
|
java.lang.String[] |
list()
list returns a list of the Triggers that this TriggerManager has registered. |
void |
setConfig(Configuration config)
setConfig sets the configuration information for the Configurable object instance. |
| 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 |
| Constructor Detail |
public TriggerManager(Collection collection)
| Method Detail |
public void setConfig(Configuration config)
throws dbXMLException
Configurable
setConfig in interface ConfigurablesetConfig in class SimpleConfigurabledbXMLExceptionpublic java.lang.String[] list()
public boolean drop(java.lang.String name)
throws DBException
name - The Trigger to drop
DBException
public Trigger create(Configuration cfg)
throws DBException
cfg - The Trigger's configuration
DBException
public Trigger get(java.lang.String name)
throws DBException
name - The Trigger name
DBExceptionpublic java.lang.String getCanonicalName(java.lang.String name)
public java.lang.Object fireBeforeInsert(Transaction tx,
Key key,
java.lang.Object newObj)
throws DBException
tx - The controlling Transactionkey - The Object KeynewObj - the new Object
DBException
public void fireAfterInsert(Transaction tx,
Key key,
java.lang.Object newObj)
throws DBException
tx - The controlling Transactionkey - The Object KeynewObj - The new Object
DBException
public java.lang.Object fireBeforeUpdate(Transaction tx,
Key key,
java.lang.Object oldObj,
java.lang.Object newObj)
throws DBException
tx - The controlling Transactionkey - The Object KeyoldObj - The old ObjectnewObj - The new Object
DBException
public void fireAfterUpdate(Transaction tx,
Key key,
java.lang.Object oldObj,
java.lang.Object newObj)
throws DBException
tx - The controlling Transactionkey - The Object KeyoldObj - The old ObjectnewObj - The new Object
DBException
public void fireBeforeDelete(Transaction tx,
Key key,
java.lang.Object oldObj)
throws DBException
tx - The controlling Transactionkey - The Object KeyoldObj - The old Object
DBException
public void fireAfterDelete(Transaction tx,
Key key,
java.lang.Object oldObj)
throws DBException
tx - The controlling Transactionkey - The Object KeyoldObj - The old Object
DBException
public void fireBeforeGet(Transaction tx,
Key key)
throws DBException
tx - The controlling Transactionkey - The Object Key
DBException
public void fireAfterGet(Transaction tx,
Key key,
java.lang.Object obj)
throws DBException
tx - The controlling Transactionkey - The Object Keyobj - The Object
DBException
|
dbXML API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||