Retrieve APIs
This page describes different Java APIs to retrieve a record (also referred to as object) by primary key, queries.
Get
DSApi.get(String className, String id)className: the name of class as created using the workbench
(correspond to the table)
id: primary key (pass stringified value of the BigInteger/ long value)//fetch product information from the product table
String className = "shared.common.product";
String id = "12";
Object res = DSApi.get(className, id);If the object is found then it return a Java Map,
else Result with failed status and message.queryOne - whereClause (includeDeleted)
queryOne - sqlQuery
queryMany - whereClause (includeDeleted)
queryMany (SQL)
tenantByName
tenantByQuery
getUser
userByEmail
userByUserId
valueByKey
Last updated
Was this helpful?