public class DraftProcessor extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<Map<String,Object>> |
combinedEntries(org.apache.olingo.odata2.api.edm.EdmEntityType entityType,
List<Map<String,Object>> activeCollection,
List<Map<String,Object>> draftCollection) |
static CreateEntityInfo |
createInfoForDraftAdminData(String userName) |
static ResultSet |
fetchResultSetFromDraftTable(org.apache.olingo.odata2.api.uri.UriInfo uriInfo,
org.apache.olingo.odata2.api.processor.ODataContext context,
List<String> filterExpressions,
SAPStatistics timings,
Connection conn,
ODataToCDSProcessor cdsprocessor) |
static String |
generateCDSStatementForReadingFromDraftsTable(QueryHelper qH) |
static List<Map<String,Object>> |
handleAndExecuteFromDraftTable(org.apache.olingo.odata2.api.uri.UriInfo uriInfo,
org.apache.olingo.odata2.api.processor.ODataContext context,
List<String> filterExpressions,
SAPStatistics timings,
Connection conn,
ODataToCDSProcessor cdsprocessor) |
static List<Map<String,Object>> |
lockedByOtherActiveInstances(org.apache.olingo.odata2.api.edm.EdmEntityType entityType,
List<Map<String,Object>> activeCollection,
List<Map<String,Object>> draftCollection,
String userName) |
static void |
modifyCreateEntityInfoForDraft(CreateEntityInfo cEInfo,
org.apache.olingo.odata2.api.ep.entry.ODataEntry content) |
static List<Map<String,Object>> |
ownDraftInstances(org.apache.olingo.odata2.api.edm.EdmEntityType entityType,
List<Map<String,Object>> activeCollection,
List<Map<String,Object>> draftCollection,
String userName) |
static List<Map<String,Object>> |
processResultSetForDraftsTable(ResultSet result,
QueryHelper qH,
org.apache.olingo.odata2.api.processor.ODataContext context) |
static DeleteEntityInfo |
transformToDeleteEntityInfo(String entityName,
Map<String,Object> keyValue) |
static CreateEntityInfo |
transformToDraftsEntityInfo(org.apache.olingo.odata2.api.uri.UriInfo uriInfo,
org.apache.olingo.odata2.api.ep.entry.ODataEntry content) |
static UpdateEntityInfo |
transormToUpdateEntityInfoForAutoSaveDrafts(org.apache.olingo.odata2.api.uri.info.PutMergePatchUriInfo uriInfo,
org.apache.olingo.odata2.api.ep.entry.ODataEntry content,
boolean merge) |
static List<Map<String,Object>> |
unchangedActiveInstances(org.apache.olingo.odata2.api.edm.EdmEntityType entityType,
List<Map<String,Object>> activeCollection,
List<Map<String,Object>> draftCollection) |
static List<Map<String,Object>> |
unsavedActiveInstances(org.apache.olingo.odata2.api.edm.EdmEntityType entityType,
List<Map<String,Object>> activeCollection,
List<Map<String,Object>> draftCollection) |
static UpdateEntityInfo |
updateInfoForDraftAdminData(String userName,
UUID draftAdminUUID) |
public static CreateEntityInfo createInfoForDraftAdminData(String userName)
public static UpdateEntityInfo updateInfoForDraftAdminData(String userName, UUID draftAdminUUID)
public static CreateEntityInfo transformToDraftsEntityInfo(org.apache.olingo.odata2.api.uri.UriInfo uriInfo, org.apache.olingo.odata2.api.ep.entry.ODataEntry content)
public static void modifyCreateEntityInfoForDraft(CreateEntityInfo cEInfo, org.apache.olingo.odata2.api.ep.entry.ODataEntry content)
public static List<Map<String,Object>> handleAndExecuteFromDraftTable(org.apache.olingo.odata2.api.uri.UriInfo uriInfo, org.apache.olingo.odata2.api.processor.ODataContext context, List<String> filterExpressions, SAPStatistics timings, Connection conn, ODataToCDSProcessor cdsprocessor) throws org.apache.olingo.odata2.api.exception.ODataException, SQLException
org.apache.olingo.odata2.api.exception.ODataExceptionSQLExceptionpublic static ResultSet fetchResultSetFromDraftTable(org.apache.olingo.odata2.api.uri.UriInfo uriInfo, org.apache.olingo.odata2.api.processor.ODataContext context, List<String> filterExpressions, SAPStatistics timings, Connection conn, ODataToCDSProcessor cdsprocessor) throws org.apache.olingo.odata2.api.exception.ODataException, SQLException
org.apache.olingo.odata2.api.exception.ODataExceptionSQLExceptionpublic static String generateCDSStatementForReadingFromDraftsTable(QueryHelper qH)
public static List<Map<String,Object>> processResultSetForDraftsTable(ResultSet result, QueryHelper qH, org.apache.olingo.odata2.api.processor.ODataContext context) throws org.apache.olingo.odata2.api.exception.ODataApplicationException
org.apache.olingo.odata2.api.exception.ODataApplicationExceptionpublic static UpdateEntityInfo transormToUpdateEntityInfoForAutoSaveDrafts(org.apache.olingo.odata2.api.uri.info.PutMergePatchUriInfo uriInfo, org.apache.olingo.odata2.api.ep.entry.ODataEntry content, boolean merge) throws org.apache.olingo.odata2.api.exception.ODataException
org.apache.olingo.odata2.api.exception.ODataExceptionpublic static DeleteEntityInfo transformToDeleteEntityInfo(String entityName, Map<String,Object> keyValue)
public static List<Map<String,Object>> ownDraftInstances(org.apache.olingo.odata2.api.edm.EdmEntityType entityType, List<Map<String,Object>> activeCollection, List<Map<String,Object>> draftCollection, String userName) throws org.apache.olingo.odata2.api.edm.EdmException
org.apache.olingo.odata2.api.edm.EdmExceptionpublic static List<Map<String,Object>> unsavedActiveInstances(org.apache.olingo.odata2.api.edm.EdmEntityType entityType, List<Map<String,Object>> activeCollection, List<Map<String,Object>> draftCollection) throws org.apache.olingo.odata2.api.edm.EdmException
org.apache.olingo.odata2.api.edm.EdmExceptionpublic static List<Map<String,Object>> unchangedActiveInstances(org.apache.olingo.odata2.api.edm.EdmEntityType entityType, List<Map<String,Object>> activeCollection, List<Map<String,Object>> draftCollection) throws org.apache.olingo.odata2.api.edm.EdmException
org.apache.olingo.odata2.api.edm.EdmExceptionpublic static List<Map<String,Object>> lockedByOtherActiveInstances(org.apache.olingo.odata2.api.edm.EdmEntityType entityType, List<Map<String,Object>> activeCollection, List<Map<String,Object>> draftCollection, String userName) throws org.apache.olingo.odata2.api.edm.EdmException
org.apache.olingo.odata2.api.edm.EdmExceptionpublic static List<Map<String,Object>> combinedEntries(org.apache.olingo.odata2.api.edm.EdmEntityType entityType, List<Map<String,Object>> activeCollection, List<Map<String,Object>> draftCollection) throws org.apache.olingo.odata2.api.edm.EdmException
org.apache.olingo.odata2.api.edm.EdmExceptionCopyright © 2020 SAP. All Rights Reserved.