Question: how api works in java?
Answer: Most tasks you perform using the Java Client API are handled by a manager object. For example, you use a QueryManager to search the database and a DocumentManager to read, update, and delete documents. You create manager objects using factory methods on DatabaseClient , such as newQueryManager and newDocumentManager .