@Documented
@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface OATriggerMethod
Describes an OAObject trigger method.
This is used to avoid creating "far reaching" property path listeners, where a hub is listening to a propertyPath of objects.
Instead, a change to the end of a property path will then loop through and invoke the trigger for all objects that
are in the reversing of the property path.
Example: an order discount is dependent on the emp.dep.company.discount
instead of each order listening to the propPath, oa will loop through all emps of a company if the discount is changed.
method signature will be:
public void nameTrigger(HubEvent hubEvent)
example:
@OATriggerMethod(onlyUseLoadedData=true, runOnServer=true, runInBackgroundThread=true, properties= {"test"})
Note: the trigger method is not called if hub.isfetching, or oaobj.isLoading