public class ODataUtils extends Object
| Constructor and Description |
|---|
ODataUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildLocation(String baseURL,
org.apache.olingo.commons.api.data.Entity entity,
String enitySetName,
org.apache.olingo.commons.api.edm.EdmEntityType type)
This method creates access uri for the entity.
|
static String |
generateETag(String configID,
String tableName,
ODataEntry entry)
This method generates an unique ETag for each data row entry.
|
public static String generateETag(String configID, String tableName, ODataEntry entry)
tableName - Name of the tableentry - Data row entrypublic static String buildLocation(String baseURL, org.apache.olingo.commons.api.data.Entity entity, String enitySetName, org.apache.olingo.commons.api.edm.EdmEntityType type) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
baseURL - base URLentity - entityenitySetName - entity Set Nametype - entity Typeorg.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionCopyright © 2018 WSO2. All rights reserved.