Create and Update API
save
DSApi.save(String className, Object entity)
or
DSApi.save(String className, Object entity, String auditMsg)className: the name of class as created using the workbench
(correspond to the table)
entity:
auditMsg:String className = "shared.common.product";
Map<String, Object> entity = new HashMap<>();
entity.put("productName", "table");
entity.put("description", "foldable table");
entity.put("prices", 620);
Object res = DSApi.save(className, entity);saveMany
Update
UpdateMany
UpdateByQuery
executeSqlWriteStatement
Last updated
Was this helpful?