java.lang.Object
de.hybris.platform.odata2services.odata.processor.handler.persistence.batch.ChangeSetPersistenceHandler
All Implemented Interfaces:
ODataProcessorHandler<ChangeSetParam,org.apache.olingo.odata2.api.batch.BatchResponsePart>

public class ChangeSetPersistenceHandler extends Object implements ODataProcessorHandler<ChangeSetParam,org.apache.olingo.odata2.api.batch.BatchResponsePart>
ODataProcessor handler that persists a change set request
  • Constructor Details

    • ChangeSetPersistenceHandler

      public ChangeSetPersistenceHandler()
  • Method Details

    • handle

      public org.apache.olingo.odata2.api.batch.BatchResponsePart handle(ChangeSetParam param)
      Specified by:
      handle in interface ODataProcessorHandler<ChangeSetParam,org.apache.olingo.odata2.api.batch.BatchResponsePart>
    • getCurrentTransaction

      protected Transaction getCurrentTransaction()
    • handleRequestsInTransaction

      protected List<org.apache.olingo.odata2.api.processor.ODataResponse> handleRequestsInTransaction(ChangeSetParam param)
      Handle the requests in a transaction
      Parameters:
      param - Parameters from the request
      Returns:
      List of ODataResponses
    • commitTransaction

      protected void commitTransaction()
      Commits the changes in the transaction
    • rollbackTransaction

      protected void rollbackTransaction()
      Rolls back the changes in the transaction
    • beginTransaction

      protected void beginTransaction()
      Marks the beginning of the transaction
    • endTransaction

      protected void endTransaction(List<org.apache.olingo.odata2.api.processor.ODataResponse> responses)
      Marks the end of the transaction
      Parameters:
      responses - The responses from the persistence
    • createBatchResponsePart

      protected org.apache.olingo.odata2.api.batch.BatchResponsePart createBatchResponsePart(List<org.apache.olingo.odata2.api.processor.ODataResponse> responses)
      Creates a BatchResponsePart from the persistence responses
      Parameters:
      responses - List of persistence responses
      Returns:
      The BatchResponsePart
    • getModelService

      protected ModelService getModelService()
    • setModelService

      public void setModelService(ModelService modelService)