|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.orchestranetworks.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<osd: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<osd:trigger class="com.foo.MyInstanceTrigger"> <param1>...</param1> <param2>...</param2> </osd: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)
throws OperationException
Default implementation does nothing.
OperationException - when an exception occurred or for preventing the execution of the
subsequent creation (guard role).
Warning: in case of a mass update the whole transaction is aborted.
public void handleAfterCreate(AfterCreateInstanceContext aContext)
throws OperationException
Default implementation does nothing.
OperationException - when an exception occurred.
Warning: in case of a mass update the whole transaction is aborted.
public void handleBeforeDelete(BeforeDeleteInstanceContext aContext)
throws OperationException
Default implementation does nothing.
OperationException - when an exception occurred or for preventing the execution of the
subsequent deletion (guard role).
Warning: in case of a mass update the whole transaction is aborted.
public void handleAfterDelete(AfterDeleteInstanceContext aContext)
throws OperationException
Default implementation does nothing.
OperationException - when an exception occurred.
Warning: in case of a mass update the whole transaction is aborted.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
(report a bug)
EBX.Platform 4.5.2 [0601:0004]
Copyright Orchestra Networks 2000-2008. All rights reserved.