|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softwareag.mdm.schema.trigger.InstanceTrigger
Specifies methods that are automatically executed when some operations are performed on an instance.
The trigger must be declared under the element
xs:annotation/xs:appinfo
:
where<mdm:trigger class="com.foo.MyInstanceTrigger" />
com.foo.MyInstanceTrigger
is
the fully qualified name of the class implementing this interface.
It is also possible to set additional JavaBean properties:
where<mdm:trigger class="com.foo.MyInstanceTrigger"> <param1>...</param1> <param2>...</param2> </mdm:trigger>
param1
and param2
are JavaBean properties of the class specified.
For more information, read JavaBeans specification.
setParam1(...)
and
setParam2(...)
);setup(TriggerSetupContext)
is called on the new instance.handle...
are called each time the associated operation is executed.
If several operations are defined for the same instance, no specific ordering in their execution must be assumed.
Constructor Summary | |
InstanceTrigger()
|
Method Summary | |
void |
handleAfterCreate(AfterCreateInstanceContext aContext)
This method is called after the creation of an instance. |
void |
handleAfterDelete(AfterDeleteInstanceContext aContext)
This method is called after the deletion of an instance. |
void |
handleBeforeCreate(BeforeCreateInstanceContext aContext)
This method is called before the creation of an instance. |
void |
handleBeforeDelete(BeforeDeleteInstanceContext aContext)
This method is called before the deletion of an instance. |
abstract void |
setup(TriggerSetupContext aContext)
This method is called when the schema is loaded, for checking and preparing this instance. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InstanceTrigger()
Method Detail |
public abstract void setup(TriggerSetupContext aContext)
public void handleBeforeCreate(BeforeCreateInstanceContext aContext)
Default implementation does nothing.
public void handleAfterCreate(AfterCreateInstanceContext aContext)
Default implementation does nothing.
public void handleBeforeDelete(BeforeDeleteInstanceContext aContext)
Default implementation does nothing.
public void handleAfterDelete(AfterDeleteInstanceContext aContext)
Default implementation does nothing.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.