public interface OrderRepository extends OrderSpringRepository
Modifier and Type | Method and Description |
---|---|
OrderStatus |
getEntity(GUID shopGuid,
GUID orderGuid)
Gets the entity for the passed identifier from the database.
|
OrderStatus |
getOrCreateEntity(GUID shopGuid,
GUID orderGuid)
Gets the entity for the passed identifier from the database.
|
OrderStatus |
saveEntity(OrderStatus entity)
Persists the passed entity in the underlying database.
|
findByShopIdAndOrderId
OrderStatus saveEntity(OrderStatus entity)
entity
- Entity to save.DataPersistenceException
- in case there was an error while persisting the entity.OrderStatus getOrCreateEntity(GUID shopGuid, GUID orderGuid)
shopGuid
- GUID of the desired shop.orderGuid
- Identifier of the desired order.DataPersistenceException
- in case there was an error while persisting the entity.OrderStatus getEntity(GUID shopGuid, GUID orderGuid)
shopGuid
- GUID of the desired entity.orderGuid
- Identifier of the desired order.OrderNotFoundException
- in case no order entity with the passed identifier was found.DataPersistenceException
- in case there was an error while persisting the entity.