Class DraftServiceImpl

All Implemented Interfaces:
ApplicationService, CqnService, DraftService, Service

public class DraftServiceImpl extends ApplicationServiceImpl implements DraftService
  • Field Details

  • Constructor Details

  • Method Details

    • saveDraft

      public com.sap.cds.Result saveDraft(com.sap.cds.ql.cqn.CqnSelect select, Object... paramValues)
      Specified by:
      saveDraft in interface DraftService
    • saveDraft

      public com.sap.cds.Result saveDraft(com.sap.cds.ql.cqn.CqnSelect select, Map<String,Object> namedValues)
      Specified by:
      saveDraft in interface DraftService
    • prepareDraft

      public com.sap.cds.Result prepareDraft(com.sap.cds.ql.cqn.CqnSelect select, String sideEffectsQualifier, Object... paramValues)
      Specified by:
      prepareDraft in interface DraftService
    • prepareDraft

      public com.sap.cds.Result prepareDraft(com.sap.cds.ql.cqn.CqnSelect select, String sideEffectsQualifier, Map<String,Object> namedValues)
      Specified by:
      prepareDraft in interface DraftService
    • editDraft

      public com.sap.cds.Result editDraft(com.sap.cds.ql.cqn.CqnSelect select, boolean preserveChanges, Object... paramValues)
      Specified by:
      editDraft in interface DraftService
    • editDraft

      public com.sap.cds.Result editDraft(com.sap.cds.ql.cqn.CqnSelect select, boolean preserveChanges, Map<String,Object> namedValues)
      Specified by:
      editDraft in interface DraftService
    • newDraft

      public com.sap.cds.Result newDraft(com.sap.cds.ql.cqn.CqnInsert insert)
      Specified by:
      newDraft in interface DraftService
    • patchDraft

      public com.sap.cds.Result patchDraft(com.sap.cds.ql.cqn.CqnUpdate update, Object... paramValues)
      Specified by:
      patchDraft in interface DraftService
    • patchDraft

      public com.sap.cds.Result patchDraft(com.sap.cds.ql.cqn.CqnUpdate update, Map<String,Object> namedValues)
      Specified by:
      patchDraft in interface DraftService
    • patchDraft

      public com.sap.cds.Result patchDraft(com.sap.cds.ql.cqn.CqnUpdate update, Iterable<Map<String,Object>> valueSets)
      Specified by:
      patchDraft in interface DraftService
    • cancelDraft

      public com.sap.cds.Result cancelDraft(com.sap.cds.ql.cqn.CqnDelete delete, Iterable<Map<String,Object>> valueSets)
      Specified by:
      cancelDraft in interface DraftService
    • cancelDraft

      public com.sap.cds.Result cancelDraft(com.sap.cds.ql.cqn.CqnDelete delete, Object... paramValues)
      Specified by:
      cancelDraft in interface DraftService
    • cancelDraft

      public com.sap.cds.Result cancelDraft(com.sap.cds.ql.cqn.CqnDelete delete, Map<String,Object> namedValues)
      Specified by:
      cancelDraft in interface DraftService
    • gcDrafts

      public com.sap.cds.Result gcDrafts()
      Specified by:
      gcDrafts in interface DraftService
    • readActive

      public com.sap.cds.Result readActive(com.sap.cds.ql.cqn.CqnSelect select, Object... paramValues)
      Reads the active draft-enabled entities. Only intended for internal usage. Triggered as part of draft-based implementation of CqnService.EVENT_READ. Instance based authorization or implicit sorting don't explicitly react on this event.
      Parameters:
      select - the CqnSelect to be executed
      paramValues - the optional positional parameter values
      Returns:
      the Result of the query
    • readActive

      public com.sap.cds.Result readActive(com.sap.cds.ql.cqn.CqnSelect select, Map<String,Object> namedValues)
      Reads the active draft-enabled entities. Only intended for internal usage. Triggered as part of draft-based implementation of CqnService.EVENT_READ. Instance based authorization or implicit sorting don't explicitly react on this event.
      Parameters:
      select - the CqnSelect to be executed
      namedValues - the named parameter values
      Returns:
      the Result of the query
    • readDraft

      public com.sap.cds.Result readDraft(com.sap.cds.ql.cqn.CqnSelect select, Object... paramValues)
      Reads the inactive draft-enabled entities. Only intended for internal usage. Triggered as part of draft-based implementation of CqnService.EVENT_READ. Instance based authorization or implicit sorting don't explicitly react on this event.
      Parameters:
      select - the CqnSelect to be executed
      paramValues - the optional positional parameter values
      Returns:
      the Result of the query
    • readDraft

      public com.sap.cds.Result readDraft(com.sap.cds.ql.cqn.CqnSelect select, Map<String,Object> namedValues)
      Reads the inactive draft-enabled entities. Only intended for internal usage. Triggered as part of draft-based implementation of CqnService.EVENT_READ. Instance based authorization or implicit sorting don't explicitly react on this event.
      Parameters:
      select - the CqnSelect to be executed
      namedValues - the named parameter values
      Returns:
      the Result of the query
    • createDraft

      public com.sap.cds.Result createDraft(com.sap.cds.ql.cqn.CqnInsert insert, boolean hasActiveEntity)
      Creates a draft entity by executing the insert statement. During execution of this method, no draft fields will be added. Hence, they must already be contained in the data of the insert statement.
      Parameters:
      insert - the statement to execute
      Returns:
      the Result of the statement