If you had created a new item and wanted to notify LCDS of the same, you need to do something similar to the below:
DataServiceTransaction dst = DataServiceTransaction.begin(/* True or False depending on whether you want to use JTA */);
dst.createItem(/* Name Of The Destination */, /* The created item instance */);
This call should be made after object has already been persisted.
I can have a number of changes happening to the database which I am not even aware of. So there might be more than one change and if there are more changes, I do not know what exactly the changes are. So, it is not possible to do a createItem for each change.
A full example would really help.
Thanks for yoyr reply.
What do you mean by "This call should be made after object has already been persisted"? How do you make sure the object has been persisted?