Hi Sulaiman,
Thank you very much for your message.
Currently, there is no way for a batch store operation to implement the INSERT .. ON DUPLICATE KEY UPDATE or MERGE semantics that you intend for it to do. Batch store is simply a batch version of the ordinary UpdatableRecord.store() operation, which makes the decision whether to INSERT or UPDATE the record in the client, not the server.
I suggest you actually run a set based INSERT .. ON DUPLICATE KEY UPDATE statement, or a MERGE statement instead.
I hope this helps,
Lukas