I'm curious as to the best place to put some code that I want to execute after save or retrieve completes. Currently I have done this in the Interceptor's onSave and onLoad methods, but these are called BEFOR save or load is completed. I believe I could cache all the objects I receive in onLoad or onSave and then iterate over them in postFlush, but is postFlush called after the objects has been successfully saved/retrieved? Also, how do I know that the postFlush was part of a save or load transaction.
|