Ejemplo n.º 1
0
 /**
  * This method performs delete operation. It internally calls internalDelMultiKey.
  *
  * @param id ID value
  * @param etag ETag Value
  * @throws DaoException Exception thrown
  */
 void internalDel(String id, String etag) throws DaoException {
   this.internalDelMultiKey("'" + Utils.escapeURI(id) + "'", etag);
 }
Ejemplo n.º 2
0
 /**
  * This method is used to retrieve the OData data for the specified ID. It internally calls
  * internalRetrieveMultikeyAsDcResponse.
  *
  * @param id ID value
  * @return Object of the result
  * @throws DaoException Exception thrown
  */
 DcResponse internalRetrieveAsDcResponse(String id) throws DaoException {
   return this.internalRetrieveMultikeyAsDcResponse("'" + Utils.escapeURI(id) + "'");
 }
Ejemplo n.º 3
0
 /**
  * This method performs update operation using Request Body and Etag value. It internally calls
  * internalUpdateMultiKey.
  *
  * @param id ID value
  * @param body PUT Request Body
  * @param etag ETag value
  * @throws DaoException Exception thrown
  */
 void internalUpdate(String id, HashMap<String, Object> body, String etag) throws DaoException {
   this.internalUpdateMultiKey("'" + Utils.escapeURI(id) + "'", body, etag);
 }
Ejemplo n.º 4
0
 /**
  * This method performs retrieve operation. It internally calls internalRetrieveMultikey.
  *
  * @param id ID value
  * @return Object of the result(JSONObject)
  * @throws DaoException Exception thrown
  */
 JSONObject internalRetrieve(String id) throws DaoException {
   return this.internalRetrieveMultikey("'" + Utils.escapeURI(id) + "'");
 }