|
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
SimpleTrigger
Constructor Summary | |
SimpleTrigger()
|
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. |
Collection |
getCollection()
getCollection returns the Collection context for this Trigger. |
java.lang.String |
getName()
getName returns the name of this Trigger. |
void |
setCollection(Collection collection)
setCollection sets the Collection context for this Trigger. |
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 |
Methods inherited from interface com.dbxml.util.Configurable |
getConfig |
Constructor Detail |
public SimpleTrigger()
Method Detail |
public void setCollection(Collection collection)
Trigger
setCollection
in interface Trigger
collection
- The Collectionpublic Collection getCollection()
Trigger
getCollection
in interface Trigger
public void setConfig(Configuration config) throws dbXMLException
Configurable
setConfig
in interface Configurable
setConfig
in class SimpleConfigurable
dbXMLException
public java.lang.String getName()
Trigger
getName
in interface Trigger
public java.lang.Object beforeInsert(Transaction tx, Key key, java.lang.Object newObj) throws DBException
Trigger
beforeInsert
in interface Trigger
tx
- The controlling Transactionkey
- The Object KeynewObj
- The new Object
DBException
public void afterInsert(Transaction tx, Key key, java.lang.Object newObj) throws DBException
Trigger
afterInsert
in interface Trigger
tx
- The controlling Transactionkey
- The Object KeynewObj
- The new Object
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
tx
- The controlling Transactionkey
- The Object KeyoldObj
- The old ObjectnewObj
- The new Object
DBException
public void afterUpdate(Transaction tx, Key key, java.lang.Object oldObj, java.lang.Object newObj) throws DBException
Trigger
afterUpdate
in interface Trigger
tx
- The controlling Transactionkey
- The Object KeyoldObj
- The old ObjectnewObj
- The new Object
DBException
public void beforeDelete(Transaction tx, Key key, java.lang.Object oldObj) throws DBException
Trigger
beforeDelete
in interface Trigger
tx
- The controlling Transactionkey
- The Object KeyoldObj
- The Object to be deleted
DBException
public void afterDelete(Transaction tx, Key key, java.lang.Object oldObj) throws DBException
Trigger
afterDelete
in interface Trigger
tx
- The controlling Transactionkey
- The Object KeyoldObj
- The Object that was deleted
DBException
public void beforeGet(Transaction tx, Key key) throws DBException
Trigger
beforeGet
in interface Trigger
tx
- The controlling Transactionkey
- The Object Key
DBException
public void afterGet(Transaction tx, Key key, java.lang.Object obj) throws DBException
Trigger
afterGet
in interface Trigger
tx
- The controlling Transactionkey
- The Object Key
DBException
|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |