Skip to content

How to enforce a function to call a call back function

shoab shah

Asked Mar 23, 2016, 12:59 AM EDT1 answer
Share
LinkedInX
Hi All,
We have a situation. there are 2 classes in business logic layer. These classes have multiple functions which perform Insert / Update on a table.
There is another database operation which needs to be done after each of these function execution.  
 
Thus, wanted to know how we can enforce these to classes functions to call a call back function after their execution.
 
Eg:
 
Class C1 has f1 & f2 functions. there is other class called C2 which has a afterfunc() function. We want after f1 & f2 execution afterfunc() get called.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Surya Kant
    0
    Accoding to your Question ; what i get is that you need to call one method after each DML operation, so to do this you need to only call that same method after all DML operation.
     
    For eg:- I want the show method must execute after my Insert and Update method at that time what  i need to do is that i need to call the Show method after each Insert and Update method execution.
    Hope this help U.
    if won't work reply.
    0