Ok, thank you :)
Or, maybe, I can contribute a complete UpsertOperation class.
For implementing custom upsert operation it would be nice to inherit it from "InsertOperation", because the SQL is build in same way, as for Insert just with replacing of "insert" with "upsert" in SQL. But because "InsertOperation" class's constructor is package-private I can't inherit from it. Could it be made public? Should I create a pull request for this?
Upsert support