Interface PersistenceService
- All Known Implementing Classes:
DefaultPersistenceService
public interface PersistenceService
Service to create or update platform items.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.olingo.odata2.api.ep.entry.ODataEntrycreateEntityData(StorageRequest storageRequest) Create or update a commerce suite item and return it as an ODataEntryvoiddeleteItem(ItemLookupRequest lookupRequest) Deprecated, for removal: This API element is subject to removal in a future version.ItemLookupResult<org.apache.olingo.odata2.api.ep.entry.ODataEntry>getEntities(ItemLookupRequest lookupRequest, ConversionOptions options) Searches for items matching the conditions of the specified requestorg.apache.olingo.odata2.api.ep.entry.ODataEntrygetEntityData(ItemLookupRequest lookupRequest, ConversionOptions options) Get a commerce suite item as an ODataEntry
-
Method Details
-
createEntityData
org.apache.olingo.odata2.api.ep.entry.ODataEntry createEntityData(StorageRequest storageRequest) throws org.apache.olingo.odata2.api.edm.EdmException Create or update a commerce suite item and return it as an ODataEntry- Parameters:
storageRequest- Parameter object that holds values for creating or updating an item.- Returns:
- the ODataEntry that was created or updated
- Throws:
org.apache.olingo.odata2.api.edm.EdmException- when not being able to persist the given info
-
getEntityData
org.apache.olingo.odata2.api.ep.entry.ODataEntry getEntityData(ItemLookupRequest lookupRequest, ConversionOptions options) throws org.apache.olingo.odata2.api.edm.EdmException Get a commerce suite item as an ODataEntry- Parameters:
lookupRequest- Parameter object that holds values for getting an item.options- Parameter that indicates options to be used during item conversion.- Returns:
- the ODataEntry that was required
- Throws:
org.apache.olingo.odata2.api.edm.EdmException- when not being able to persist the given info
-
getEntities
ItemLookupResult<org.apache.olingo.odata2.api.ep.entry.ODataEntry> getEntities(ItemLookupRequest lookupRequest, ConversionOptions options) throws org.apache.olingo.odata2.api.edm.EdmException Searches for items matching the conditions of the specified request- Parameters:
lookupRequest- specifies what items need to be found and conditions for matching the items existing in the platform.options- Parameter that indicates options to be used during item conversion- Returns:
- result of searching for ODataEntries matching the specified request conditions in the platform
- Throws:
org.apache.olingo.odata2.api.edm.EdmException- when not being able to retrieve the entities
-
deleteItem
@Deprecated(since="2205", forRemoval=true) void deleteItem(ItemLookupRequest lookupRequest) throws org.apache.olingo.odata2.api.edm.EdmException Deprecated, for removal: This API element is subject to removal in a future version.useItemDeletionServiceinsteadDeletes the item matching the conditions of the specified request- Parameters:
lookupRequest- Parameter object that holds values for searching for an item.- Throws:
org.apache.olingo.odata2.api.edm.EdmException- when there was an unexpected odataexception
-
ItemDeletionServiceinstead