Class StorageRequest


  • public class StorageRequest
    extends CrudRequest
    Request which contains an item for persistence.
    • Method Detail

      • getPrePersistHook

        public java.lang.String getPrePersistHook()
      • getPostPersistHook

        public java.lang.String getPostPersistHook()
      • setPostPersistHook

        protected void setPostPersistHook​(java.lang.String postPersistHook)
      • setPrePersistHook

        protected void setPrePersistHook​(java.lang.String prePersistHook)
      • toLookupRequest

        public ItemLookupRequest toLookupRequest()
                                          throws org.apache.olingo.odata2.api.edm.EdmException
        Creates an ItemLookupRequest from this StorageRequest
        Returns:
        the newly constructed ItemLookupRequest
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException - if encounters an OData problem
      • getContentLocale

        public java.util.Locale getContentLocale()
      • setContentLocale

        protected void setContentLocale​(java.util.Locale contentLocale)
      • getContextItem

        public java.util.Optional<ItemModel> getContextItem()
                                                     throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • putItem

        public void putItem​(ItemModel item)
                     throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException