public interface ShopRepository extends ShopSpringRepository
Modifier and Type | Method and Description |
---|---|
ShopStatus |
createEntity(GUID shopGuid)
Creates a new entry for the passed identifier.
|
ShopStatus |
getEntity(GUID shopGuid)
Gets the entity for the passed identifier from the database.
|
ShopStatus |
getOrCreateEntity(GUID shopGuid)
Gets the entity for the passed identifier from the database.
|
ShopStatus |
saveEntity(ShopStatus entity)
Persists the passed entity in the underlying database.
|
boolean |
shopExists(GUID shopGuid)
Check if the shop already exists
|
ShopStatus saveEntity(ShopStatus entity)
entity
- Entity to save.DataPersistenceException
- in case there was an
error while persisting the entity.ShopStatus getOrCreateEntity(GUID shopGuid)
shopGuid
- GUID of the desired entity.DataPersistenceException
- in case there was an
error while persisting the entity.ShopStatus getEntity(GUID shopGuid)
shopGuid
- GUID of the desired entity.ShopNotFoundException
- in case no shop entity
with the passed identifier was found.DataPersistenceException
- in case there was an
error while persisting the entity.ShopStatus createEntity(GUID shopGuid)
shopGuid
- boolean shopExists(GUID shopGuid)
shopGuid
-