使用 java 的 Orientdb upsert

Orientdb upsert using java

我在 orient db 中有一个文档,例如

{"a":"1","b":"2","c":"3"}

如果 c 为 3,我如何使用 java

更新 b 的值

我需要使用 java

执行以下查询
UPDATE <document name >Merge {"a":25"} where c=3

请帮帮我

ODatabaseDocumentTx db = new ODatabaseDocumentTx(path);
db.open("root","root");
db.command(new OCommandSQL("update <document name > set a=30 where c=3")).execute();